/* ============================================================

   live.css — Live Streaming Styles for MercaNexo

   ============================================================ */



/* ─── Live Hall / Lobby ───────────────────────────────────── */

.live-page {

  max-width: 1200px;

  margin: 0 auto;

  padding: 20px;

}



.live-header {

  background: linear-gradient(135deg, #ff4d6a 0%, #ff3366 50%, #e6004c 100%);

  border-radius: 16px;

  padding: 32px 40px;

  margin-bottom: 24px;

  color: white;

}



.live-header h1 {

  margin: 0;

  font-size: 28px;

  font-weight: 700;

  display: flex;

  align-items: center;

  gap: 10px;

}



.live-dot {

  display: inline-block;

  width: 14px;

  height: 14px;

  background: #fff;

  border-radius: 50%;

  animation: pulse-dot 1.5s infinite;

}



@keyframes pulse-dot {

  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }

  50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }

}



.live-subtitle {

  margin: 8px 0 0;

  opacity: 0.9;

  font-size: 15px;

}



/* Search & Filters */

.live-search-bar {

  display: flex;

  gap: 12px;

  margin-bottom: 20px;

}



.live-search-input {

  flex: 2;

  padding: 12px 18px;

  border: 1px solid #ddd;

  border-radius: 10px;

  font-size: 15px;

  outline: none;

  transition: border-color 0.2s;

}



.live-search-input:focus { border-color: #ff4d6a; }



.live-filter-select {

  flex: 1;

  padding: 12px;

  border: 1px solid #ddd;

  border-radius: 10px;

  font-size: 14px;

  background: #fff;

  cursor: pointer;

}



/* Tabs */

.live-tabs {

  display: flex;

  gap: 8px;

  margin-bottom: 24px;

}



.live-tab {

  padding: 10px 24px;

  border: 1px solid #e0e0e0;

  border-radius: 24px;

  background: #fff;

  font-size: 14px;

  cursor: pointer;

  transition: all 0.2s;

  display: flex;

  align-items: center;

  gap: 6px;

}



.live-tab:hover { border-color: #ff4d6a; color: #ff4d6a; }



.live-tab.active {

  background: #ff4d6a;

  color: #fff;

  border-color: #ff4d6a;

}



.tab-live-dot {

  display: inline-block;

  width: 8px;

  height: 8px;

  background: currentColor;

  border-radius: 50%;

}



/* Grid */

.live-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

  gap: 20px;

}



.live-loading, .live-error {

  grid-column: 1 / -1;

  text-align: center;

  padding: 60px 20px;

  color: #888;

  font-size: 16px;

}



.live-card {

  background: #fff;

  border-radius: 14px;

  overflow: hidden;

  cursor: pointer;

  transition: transform 0.2s, box-shadow 0.2s;

  border: 1px solid #eee;

}



.live-card:hover {

  transform: translateY(-4px);

  box-shadow: 0 8px 24px rgba(0,0,0,0.1);

}



.live-card-cover {

  position: relative;

  height: 170px;

  background: #f0f0f0;

  overflow: hidden;

}



.live-card-cover img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.live-card-placeholder {

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 48px;

  height: 100%;

}



.live-badge {

  position: absolute;

  top: 12px;

  left: 12px;

  padding: 4px 10px;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 600;

  display: flex;

  align-items: center;

  gap: 4px;

}



.live-badge-live {

  background: #ff4d6a;

  color: #fff;

}



.live-badge-upcoming {

  background: #4a90d9;

  color: #fff;

}



.live-badge-ended {

  background: #888;

  color: #fff;

}



.live-dot-small {

  display: inline-block;

  width: 7px;

  height: 7px;

  background: #fff;

  border-radius: 50%;

  animation: pulse-dot 1.5s infinite;

}



.live-card-viewers {

  position: absolute;

  bottom: 12px;

  left: 12px;

  background: rgba(0,0,0,0.65);

  color: #fff;

  padding: 3px 10px;

  border-radius: 6px;

  font-size: 13px;

}



.live-card-body { padding: 14px; }



.live-card-title {

  font-size: 15px;

  font-weight: 600;

  margin-bottom: 8px;

  line-height: 1.4;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

}



.live-card-seller {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 13px;

  color: #555;

  margin-bottom: 10px;

}



.live-card-avatar {

  width: 24px;

  height: 24px;

  border-radius: 50%;

  object-fit: cover;

}



.live-card-avatar-placeholder { font-size: 20px; }



.live-card-meta {

  display: flex;

  justify-content: space-between;

  font-size: 12px;

  color: #888;

}



/* Empty State */

.live-empty {

  text-align: center;

  padding: 80px 20px;

  color: #888;

}



.live-empty-icon { font-size: 64px; margin-bottom: 16px; }



.live-empty h3 { margin: 0 0 8px; color: #555; }



/* ============================================================

   LIVE ROOM

   ============================================================ */

.live-room-container {

  max-width: 1400px;

  margin: 0 auto;

  padding: 0;

  height: calc(100vh - 60px);

  display: flex;

  flex-direction: column;

}



.live-room-main {

  display: flex;

  flex: 1;

  min-height: 0;

}



/* Video Area */

.live-video-area {

  flex: 1;

  min-width: 0;

  position: relative;

  background: #000;

}



.live-video-placeholder {

  width: 100%;

  height: 100%;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);

}



.live-video-overlay {

  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  padding: 40px 30px 20px;

  background: linear-gradient(transparent, rgba(0,0,0,0.8));

  color: #fff;

}



.live-video-overlay h2 {

  margin: 8px 0 6px;

  font-size: 20px;

  font-weight: 600;

}



.live-status-badge {

  display: inline-block;

  padding: 4px 12px;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 700;

}



.badge-live {

  background: #ff4d6a;

  color: #fff;

  display: inline-flex;

  align-items: center;

  gap: 5px;

}



.badge-upcoming { background: #4a90d9; color: #fff; }

.badge-ended { background: #666; color: #ccc; }



.live-info-row {

  display: flex;

  gap: 20px;

  font-size: 14px;

  opacity: 0.85;

  margin-top: 4px;

}



.live-error-state {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  height: 100%;

  color: #fff;

  font-size: 18px;

}



/* Chat Panel */

.live-chat-panel {

  width: 340px;

  background: #fff;

  border-left: 1px solid #eee;

  display: flex;

  flex-direction: column;

  flex-shrink: 0;

}



.live-chat-header {

  padding: 14px 16px;

  border-bottom: 1px solid #eee;

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.live-chat-header h3 { margin: 0; font-size: 15px; }

.live-chat-header span { font-size: 12px; color: #888; }



.live-chat-messages {

  flex: 1;

  overflow-y: auto;

  padding: 12px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.chat-empty {

  text-align: center;

  color: #bbb;

  font-size: 13px;

  padding: 40px 10px;

}



.chat-msg {

  font-size: 13px;

  line-height: 1.5;

  padding: 4px 0;

}



.chat-user {

  font-weight: 600;

  color: #ff4d6a;

  margin-right: 6px;

}



.chat-own .chat-user { color: #4a90d9; }



.chat-system {

  text-align: center;

}



.chat-system-text {

  color: #ff4d6a;

  font-size: 12px;

  background: #fff0f3;

  padding: 4px 12px;

  border-radius: 12px;

}



.chat-text { color: #333; }



.live-chat-input {

  padding: 12px 16px;

  border-top: 1px solid #eee;

  display: flex;

  gap: 8px;

  align-items: center;

}



.live-chat-input input {

  flex: 1;

  padding: 10px 14px;

  border: 1px solid #ddd;

  border-radius: 20px;

  font-size: 14px;

  outline: none;

}



.live-chat-input input:focus { border-color: #ff4d6a; }



.live-chat-input button {

  padding: 10px 18px;

  background: #ff4d6a;

  color: #fff;

  border: none;

  border-radius: 20px;

  cursor: pointer;

  font-size: 14px;

  font-weight: 600;

  transition: opacity 0.2s;

}



.live-chat-input button:hover { opacity: 0.9; }



.chat-login-prompt {

  display: block;

  width: 100%;

  text-align: center;

  color: #ff4d6a;

  text-decoration: none;

  padding: 10px;

  font-size: 14px;

}



/* Bottom Panel */

.live-bottom-panel {

  background: #fff;

  border-top: 1px solid #eee;

  padding: 0;

}



/* Featured Banner */

.live-featured-banner {

  background: linear-gradient(135deg, #ff4d6a, #e6004c);

  padding: 16px 24px;

  color: #fff;

}



.featured-label {

  font-size: 11px;

  font-weight: 700;

  margin-bottom: 8px;

  letter-spacing: 1px;

}



.featured-info {

  display: flex;

  align-items: center;

  gap: 16px;

}



.featured-info img {

  width: 56px;

  height: 56px;

  border-radius: 8px;

  object-fit: cover;

  background: rgba(255,255,255,0.2);

}



.featured-text { flex: 1; }



.featured-text h4 {

  margin: 0 0 4px;

  font-size: 16px;

  font-weight: 600;

}



.featured-price {

  font-size: 20px;

  font-weight: 700;

}



.featured-buy-btn {

  padding: 8px 20px;

  background: #fff;

  color: #ff4d6a;

  border: none;

  border-radius: 8px;

  font-weight: 700;

  font-size: 14px;

  cursor: pointer;

  transition: transform 0.15s;

}



.featured-buy-btn:hover { transform: scale(1.05); }



/* Products Section */

.live-products-section {

  padding: 16px 24px;

}



.live-products-section h3 {

  margin: 0 0 12px;

  font-size: 16px;

  color: #333;

}



.live-products-grid {

  display: flex;

  gap: 12px;

  overflow-x: auto;

  padding-bottom: 8px;

}



.live-product-card {

  min-width: 180px;

  max-width: 180px;

  background: #fff;

  border: 1px solid #eee;

  border-radius: 12px;

  overflow: hidden;

  cursor: pointer;

  transition: transform 0.15s, box-shadow 0.15s;

  flex-shrink: 0;

}



.live-product-card:hover {

  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

}



.live-product-card.featured {

  border-color: #ff4d6a;

  box-shadow: 0 0 0 2px #ff4d6a33;

}



.lp-card-img {

  height: 120px;

  background: #f5f5f5;

  position: relative;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: center;

}



.lp-card-img img { width: 100%; height: 100%; object-fit: cover; }



.lp-no-img { font-size: 36px; }



.lp-feat-tag {

  position: absolute;

  top: 6px;

  right: 6px;

  background: #ff4d6a;

  color: #fff;

  font-size: 10px;

  padding: 2px 6px;

  border-radius: 4px;

  font-weight: 600;

}



.lp-card-body { padding: 10px; }



.lp-card-title {

  font-size: 13px;

  font-weight: 500;

  margin-bottom: 6px;

  line-height: 1.3;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

}



.lp-card-price { margin-bottom: 8px; }



.lp-price {

  font-size: 16px;

  font-weight: 700;

  color: #333;

}



.lp-old-price {

  font-size: 12px;

  color: #999;

  text-decoration: line-through;

  margin-left: 6px;

}



.lp-card-actions {

  display: flex;

  gap: 6px;

}



.lp-btn {

  flex: 1;

  padding: 7px 10px;

  border: none;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 600;

  cursor: pointer;

  transition: opacity 0.15s;

}



.lp-btn:hover { opacity: 0.85; }



.lp-btn:disabled {

  opacity: 0.4;

  cursor: not-allowed;

}



.lp-btn-cart {

  background: #f0f0f0;

  color: #555;

}



.lp-btn-buy {

  background: #ff4d6a;

  color: #fff;

}



.loading-text {

  padding: 20px;

  color: #888;

  font-size: 14px;

  text-align: center;

}



/* Mobile chat toggle */

.mobile-chat-toggle {

  display: none;

  position: fixed;

  bottom: 16px;

  right: 16px;

  padding: 12px 20px;

  background: #ff4d6a;

  color: #fff;

  border: none;

  border-radius: 24px;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  z-index: 100;

  box-shadow: 0 4px 12px rgba(255,77,106,0.4);

}



/* ============================================================

   SELLER LIVE PANEL (inlined for seller.ejs)

   ============================================================ */

.live-seller-panel {

  padding: 20px;

}



.live-seller-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 24px;

}



.live-seller-header h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; }



.btn-create-live {

  padding: 10px 24px;

  background: #ff4d6a;

  color: #fff;

  border: none;

  border-radius: 10px;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: opacity 0.2s;

}



.btn-create-live:hover { opacity: 0.9; }



/* Create Live Form */

.create-live-form {

  background: #fff;

  border: 1px solid #eee;

  border-radius: 14px;

  padding: 24px;

  margin-bottom: 24px;

  display: none;

}



.create-live-form.show { display: block; }



.create-live-form h3 { margin: 0 0 20px; font-size: 18px; }



.form-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

}



.form-group { margin-bottom: 16px; }

.form-group.full { grid-column: 1 / -1; }



.form-group label {

  display: block;

  font-size: 13px;

  font-weight: 600;

  margin-bottom: 6px;

  color: #555;

}



.form-group input, .form-group select, .form-group textarea {

  width: 100%;

  padding: 10px 14px;

  border: 1px solid #ddd;

  border-radius: 8px;

  font-size: 14px;

  outline: none;

  transition: border-color 0.2s;

  box-sizing: border-box;

}



.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #ff4d6a; }



.form-group textarea { min-height: 80px; resize: vertical; }



.form-group .checkbox-label {

  display: flex;

  align-items: center;

  gap: 8px;

  font-weight: 400;

  font-size: 14px;

}



.form-actions {

  display: flex;

  gap: 12px;

  justify-content: flex-end;

  margin-top: 8px;

}



.btn-primary {

  padding: 10px 24px;

  background: #ff4d6a;

  color: #fff;

  border: none;

  border-radius: 8px;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

}



.btn-secondary {

  padding: 10px 24px;

  background: #f0f0f0;

  color: #555;

  border: none;

  border-radius: 8px;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

}



/* Seller Live List */

.seller-live-list {

  display: grid;

  gap: 14px;

}



.seller-live-item {

  background: #fff;

  border: 1px solid #eee;

  border-radius: 12px;

  padding: 18px;

  display: flex;

  align-items: center;

  gap: 16px;

  transition: box-shadow 0.2s;

}



.seller-live-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }



.seller-live-info { flex: 1; }



.seller-live-title {

  font-size: 16px;

  font-weight: 600;

  margin-bottom: 4px;

}



.seller-live-meta {

  font-size: 13px;

  color: #888;

  display: flex;

  gap: 16px;

}



.seller-live-status {

  padding: 4px 12px;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 600;

  white-space: nowrap;

}



.status-scheduled { background: #e3f2fd; color: #1976d2; }

.status-live { background: #fce4ec; color: #e6004c; }

.status-ended { background: #f5f5f5; color: #777; }

.status-takedown { background: #fff3e0; color: #e65100; }



.seller-live-actions {

  display: flex;

  gap: 8px;

}



.btn-small {

  padding: 6px 14px;

  border: none;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 600;

  cursor: pointer;

}



.btn-go-live { background: #ff4d6a; color: #fff; }

.btn-end-live { background: #333; color: #fff; }

.btn-edit-live { background: #f0f0f0; color: #555; }

.btn-manage-live { background: #e3f2fd; color: #1976d2; }



.empty-state {

  text-align: center;

  padding: 60px 20px;

  color: #888;

}



.empty-state-icon { font-size: 48px; margin-bottom: 12px; }



/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {

  .live-search-bar { flex-direction: column; }

  

  .live-room-main { flex-direction: column; }



  .live-video-area { height: 40vh; min-height: 250px; }



  .live-chat-panel {

    width: 100%;

    height: calc(60vh - 100px);

    border-left: none;

    border-top: 1px solid #eee;

    display: none;

  }



  .live-chat-panel.open { display: flex; }



  .mobile-chat-toggle { display: block; }



  .live-products-grid { gap: 8px; }



  .live-product-card { min-width: 150px; max-width: 150px; }



  .form-grid { grid-template-columns: 1fr; }



  .live-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

}



/* Live Gifts */

.live-gifts-section{margin-top:18px;background:#fff;border-radius:18px;padding:18px;border:1px solid #ffe0e8;box-shadow:0 8px 24px rgba(255,77,106,.08)}

.live-gifts-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.live-gifts-header h3{margin:0;font-size:18px}.live-gifts-header span{font-size:13px;color:#ff4d6a;font-weight:800}.live-wallet-mini{font-size:13px;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:9px 12px;margin-bottom:12px}.live-wallet-mini a{color:#ff4d6a;font-weight:800;text-decoration:none}.live-gifts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}.live-gift-btn{border:1px solid #ffe0e8;background:linear-gradient(180deg,#fff,#fff7fa);border-radius:14px;padding:10px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;transition:.16s}.live-gift-btn:hover{transform:translateY(-2px);border-color:var(--gift-color);box-shadow:0 8px 18px rgba(255,77,106,.14)}.gift-emoji{font-size:26px}.gift-name{font-weight:800;font-size:12px;color:#111827}.gift-price{font-size:12px;color:#ff4d6a;font-weight:900}.live-gift-feed{display:flex;flex-direction:column;gap:7px;margin-top:12px}.gift-feed-row{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:7px 9px}.gift-feed-row small{margin-left:auto;color:#9a3412;font-weight:800}.gift-feed-empty{font-size:13px;color:#94a3b8;text-align:center;padding:8px}.chat-gift{background:linear-gradient(90deg,#fff7ed,#fff1f2)!important;border:1px solid #fed7aa!important;border-radius:12px;padding:8px!important}.gift-burst{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);font-size:76px;z-index:99999;animation:giftBurst 1.35s ease-out forwards;pointer-events:none;text-shadow:0 12px 30px rgba(0,0,0,.25)}@keyframes giftBurst{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-12deg)}25%{opacity:1;transform:translate(-50%,-62%) scale(1.25) rotate(8deg)}100%{opacity:0;transform:translate(-50%,-115%) scale(.9) rotate(18deg)}}

@media(max-width:768px){.live-gifts-grid{grid-template-columns:repeat(3,1fr)}.live-gifts-section{padding:14px;border-radius:14px}.gift-emoji{font-size:22px}}





/* Live Moderation */

.live-moderation-panel{margin-top:18px;background:#0f172a;color:#e5e7eb;border-radius:18px;padding:16px;border:1px solid rgba(148,163,184,.28);box-shadow:0 10px 24px rgba(15,23,42,.18)}.live-moderation-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.live-moderation-header h3{margin:0;font-size:18px;color:#fff}.live-moderation-header span{font-size:12px;color:#94a3b8}.live-moderation-actions{display:flex;flex-wrap:wrap;gap:8px}.live-moderation-actions button,.chat-mod-actions button{border:0;border-radius:999px;background:#334155;color:#fff;padding:7px 11px;font-weight:800;font-size:12px;cursor:pointer}.live-moderation-actions button:hover,.chat-mod-actions button:hover{background:#ff4d6a}.moderation-help{font-size:12px;color:#cbd5e1;margin:10px 0}.moderation-list{display:flex;flex-direction:column;gap:6px}.moderation-row{display:grid;grid-template-columns:90px 1fr 1fr;gap:8px;align-items:center;background:rgba(255,255,255,.06);border-radius:10px;padding:8px;font-size:12px}.moderation-row small{color:#cbd5e1}.moderation-empty{font-size:12px;color:#94a3b8;text-align:center;padding:8px}.chat-mod-actions{display:inline-flex;gap:5px;margin-left:8px;vertical-align:middle}.chat-mod-actions button{padding:4px 7px;font-size:11px;background:#e2e8f0;color:#334155}@media(max-width:768px){.moderation-row{grid-template-columns:1fr}.live-moderation-actions button{flex:1}}





/* Live Gift Leaderboard */

.live-gift-leaderboard{margin-top:14px;background:linear-gradient(135deg,#fff7ed,#fff1f2);border:1px solid #fed7aa;border-radius:14px;padding:12px}

.gift-rank-title{font-size:13px;font-weight:900;color:#9a3412;margin-bottom:8px;display:flex;align-items:center;gap:6px}

.gift-rank-rows{display:flex;flex-direction:column;gap:7px}

.gift-rank-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:8px;background:#fff;border:1px solid rgba(251,146,60,.28);border-radius:12px;padding:8px 10px;font-size:13px;color:#334155}

.gift-rank-row strong{font-weight:900;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.gift-rank-row small{font-weight:800;color:#c2410c;white-space:nowrap}

.gift-rank-pos{font-weight:950;color:#f97316;background:#ffedd5;border-radius:999px;text-align:center;padding:3px 0;font-size:12px}

@media(max-width:768px){.gift-rank-row{grid-template-columns:36px 1fr}.gift-rank-row small{grid-column:2;white-space:normal;font-size:12px}}





/* Live Follow + Notifications */

.live-follow-btn {

  border: 1px solid rgba(255,255,255,.35);

  background: rgba(255,255,255,.14);

  color: #fff;

  border-radius: 999px;

  padding: 6px 12px;

  font-size: 13px;

  font-weight: 800;

  cursor: pointer;

  transition: all .18s ease;

}

.live-follow-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }

.live-follow-btn.is-following { background: #f59e0b; border-color: #f59e0b; color: #111827; }

.live-notification-hint {

  color: #64748b;

  font-size: 12px;

  margin-top: 4px;

}

@media (max-width: 768px) {

  .live-follow-btn { padding: 5px 10px; font-size: 12px; }

}



/* Live Hall Notifications */
.live-notify-btn {
  position: relative;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.10);
  color: #fff;
  border-radius: 999px;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-weight: 900;
  transition: all .18s ease;
}
.live-notify-btn:hover,
.live-notify-btn.has-unread {
  background: #ff4d6a;
  border-color: #ff4d6a;
  transform: translateY(-1px);
}
#liveNotifyCount {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 18px;
  padding: 0 5px;
}
.live-notifications-panel {
  background: #fff;
  border: 1px solid #ffe0e8;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  margin: -6px 0 22px;
  padding: 16px;
}
.live-notifications-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.live-notifications-head strong {
  display: block;
  color: #111827;
  font-size: 16px;
  margin-bottom: 3px;
}
.live-notifications-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.live-notifications-head button {
  border: 0;
  border-radius: 999px;
  background: #fff1f2;
  color: #ff4d6a;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.live-notifications-head button:hover { background: #ffe0e8; }
.live-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-notification-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 13px;
  padding: 10px;
  cursor: pointer;
  transition: all .16s ease;
}
.live-notification-item:hover {
  border-color: #ff4d6a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,77,106,.10);
}
.live-notification-item.unread {
  border-color: #ffb3c1;
  background: #fff7fa;
}
.live-notification-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg,#ff4d6a,#f59e0b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.live-notification-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.live-notification-copy strong {
  color: #111827;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-notification-copy span {
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}
.live-notification-copy small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}
.live-notifications-empty {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 18px 12px;
  background: #f8fafc;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .live-notifications-head { flex-direction: column; }
  .live-notifications-head button { width: 100%; }
  .live-notify-btn { min-width: 38px; height: 32px; }
}
