/* ==========================================================================
   Automation Community — Exact Visual Match to Reference Mockup
   Clean, Light, Rounded Modern Dashboard Canvas (Pixel-Perfect)
   ========================================================================== */

:root {
  /* Page Palette */
  --bg-page: #d4e5f7;
  --bg-canvas: #ffffff;
  --bg-sidebar: #fbfcfe;
  --bg-input: #f1f5f9;
  --bg-pill-nav: #0b63e5;

  /* Typography Colors */
  --text-dark: #1e293b;
  --text-heading: #0f172a;
  --text-body: #64748b;
  --text-muted: #94a3b8;
  --text-light: #ffffff;

  /* Accent Colors from Mockup */
  --color-blue-pill: #0b63e5;
  --color-cyan-badge: #00d2c4;
  --color-cyan-badge-dark: #0284c7;
  --color-cyan-btn: #00d2c4;
  --color-orange-fire: #f97316;
  --color-share-blue: #0284c7;
  --color-live-red: #ef4444;
  --color-dot-cyan: #00d2c4;
  --color-chat-bar: #0b3a82;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Radii */
  --radius-canvas: 36px;
  --radius-card: 24px;
  --radius-image: 20px;
  --radius-pill: 9999px;
  --radius-badge: 12px;

  /* Shadows */
  --shadow-canvas: 0 25px 70px -10px rgba(15, 60, 120, 0.15);
  --shadow-card: 0 2px 14px rgba(15, 23, 42, 0.04);
  --shadow-pill: 0 4px 12px rgba(11, 99, 229, 0.35);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, #cde1f9 0%, #dbe9f9 50%, #e6f0fa 100%);
  color: var(--text-dark);
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Page Outer Frame */
.page-wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

/* Main Rounded Dashboard Canvas */
.dashboard-canvas {
  background: var(--bg-canvas);
  border-radius: var(--radius-canvas);
  box-shadow: var(--shadow-canvas);
  display: grid;
  grid-template-columns: 220px 1fr 290px;
  min-height: 840px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   1. LEFT SIDEBAR (Logo, Search, Groups & Friends)
   ========================================================================== */
.sidebar-left {
  background: var(--bg-sidebar);
  border-right: 1px solid #f1f5f9;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-sphere-logo {
  width: 36px;
  height: 36px;
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.sidebar-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-search-box:focus-within {
  border-color: #cbd5e1;
  background: #fff;
}

.sidebar-search-box .search-ico {
  color: var(--text-muted);
}

.sidebar-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-dark);
  width: 100%;
}

.sidebar-search-box input::placeholder {
  color: var(--text-muted);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.group-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.group-item-row:hover {
  background: #f1f5f9;
}

.group-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.icon-figma { background: #e0e7ff; color: #4338ca; }
.icon-sketch { background: #ffedd5; color: #c2410c; }

.group-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
}

/* Friends List with Online Dots */
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-item-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.friend-item-row:hover {
  background: #f1f5f9;
}

.friend-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-heading);
}

.friend-online-dot {
  width: 7px;
  height: 7px;
  background: #00d2c4;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 210, 196, 0.6);
}

.friend-time-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   2. CENTER MAIN COLUMN (Nav, Stories, Tabs & Feed Cards)
   ========================================================================== */
.main-content-center {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 840px;
}

/* Top Floating Nav Bar */
.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-pill-group {
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  color: var(--text-dark);
}

.nav-icon-btn.active {
  background: var(--color-blue-pill);
  color: #ffffff;
  box-shadow: var(--shadow-pill);
}

/* Profile Header in Top Nav */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.bell-dot-alert {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--color-live-red);
  border-radius: 50%;
}

.user-chip-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.user-chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.chevron-down {
  color: var(--text-muted);
}

/* Stories / Authors Row (Fixed & Perfect Alignment) */
.stories-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 2px 14px;
  min-height: 96px;
}

.stories-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-circle-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 62px;
}

.story-ring-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.story-circle-unit:hover .story-ring-box {
  transform: scale(1.06);
}

/* Ring Gradients Matching Mockup */
.ring-pink { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.ring-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.ring-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.ring-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%); }
.ring-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
.ring-orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }

.story-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.story-label-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-heading);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

/* App Hero Showcase (Modern Creative 2-Column Hero - Full Width & 50% Taller) */
.app-hero-showcase {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 255px;
  background: linear-gradient(135deg, #0b1528 0%, #0d213f 50%, #071224 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 34px 36px;
  box-shadow: 0 16px 40px rgba(11, 21, 40, 0.28), 0 2px 12px rgba(0, 210, 196, 0.12);
  overflow: hidden;
  margin-bottom: 6px;
  display: block;
}

/* Radiant Background Glow Orbs */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.orb-primary {
  width: 260px;
  height: 260px;
  background: #00d2c4;
  top: -40px;
  right: 12%;
}

.orb-secondary {
  width: 300px;
  height: 300px;
  background: #0b63e5;
  bottom: -60px;
  left: -40px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

.hero-showcase-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: center;
}

/* Left Column: Typography & Badges */
.hero-intro-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 196, 0.16);
  border: 1px solid rgba(0, 210, 196, 0.45);
  color: #00f0e0;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  width: fit-content;
  text-shadow: 0 0 12px rgba(0, 210, 196, 0.5);
}

.pulse-indicator-dot {
  width: 8px;
  height: 8px;
  background: #00f0e0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 240, 224, 0.7);
  animation: pulseDotCyan 1.8s infinite;
}

@keyframes pulseDotCyan {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 224, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(0, 240, 224, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 224, 0); }
}

.hero-showcase-title {
  margin: 0;
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.28;
  background: linear-gradient(135deg, #ffffff 35%, #7dd3fc 80%, #00d2c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-showcase-desc {
  margin: 0;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.hero-showcase-desc strong {
  color: #f1f5f9;
}

.hero-chips-metrics-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.hero-stat-chip strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-stat-chip.chip-glow {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.hero-stat-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* Right Column: Creative 3D Floating Glassmorphism Graphic */
.hero-graphic-column {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-glass-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: floatCardSlow 4.5s ease-in-out infinite alternate;
}

@keyframes floatCardSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(-0.5deg); }
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.glass-card-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
}

.status-live-dot {
  width: 7px;
  height: 7px;
  background: #00d2c4;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d2c4;
}

.glass-score-pill {
  background: #00d2c4;
  color: #043834;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.flow-interactive-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.flow-mini-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.flow-mini-node .node-emoji {
  font-size: 16px;
}

.flow-mini-node .node-name {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.flow-mini-node.active-pulse {
  position: relative;
}

.flow-mini-node.active-pulse .node-name {
  color: #38bdf8;
  font-weight: 800;
}

.flow-link-arrow {
  color: #00d2c4;
  font-size: 11px;
  opacity: 0.8;
  animation: pulseArrow 1.5s infinite;
}

@keyframes pulseArrow {
  0% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(2px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.4; }
}

.glass-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

.tag-status-ok {
  color: #34d399;
  font-weight: 700;
}

/* Satellite Floating Badges */
.sat-floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sat-top-right {
  top: -10px;
  right: -10px;
  animation: floatSatTop 3.8s ease-in-out infinite alternate;
}

.sat-bottom-left {
  bottom: -8px;
  left: -8px;
  animation: floatSatBottom 4.2s ease-in-out infinite alternate;
}

@keyframes floatSatTop {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes floatSatBottom {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(6px) rotate(-2deg); }
}

.sat-tag {
  background: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
}

/* Feed Tab Switcher */
.feed-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tab-pill-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-pill);
}

.tab-pill-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-pill-btn.active {
  background: #ffffff;
  color: var(--color-blue-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.badge-count-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  color: var(--text-dark);
}

.tab-pill-btn.active .badge-count-pill {
  background: #eff6ff;
  color: var(--color-blue-pill);
}

/* Hero Highlight Refresh Button with Incredible Animations */
.btn-refresh-highlight {
  position: relative;
  background: linear-gradient(135deg, #0b63e5 0%, #0284c7 45%, #00d2c4 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 210, 196, 0.42), 0 2px 8px rgba(11, 99, 229, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
}

.btn-content-inner {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.refresh-icon-svg {
  transition: transform 0.4s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Shimmer Light Reflection Sweep */
.btn-shimmer-sheen {
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  z-index: 2;
  pointer-events: none;
  animation: shimmerSweep 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmerSweep {
  0% { left: -85%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* Subtle Breathing Glow Aura */
.btn-glow-aura {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #0b63e5, #00d2c4);
  opacity: 0.5;
  filter: blur(8px);
  z-index: 1;
  transition: opacity 0.3s ease;
  animation: auraBreath 2.8s infinite alternate ease-in-out;
}

@keyframes auraBreath {
  0% { opacity: 0.35; filter: blur(6px); }
  100% { opacity: 0.75; filter: blur(10px); }
}

/* Hover & Active Micro-interactions */
.btn-refresh-highlight:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 26px rgba(0, 210, 196, 0.6), 0 3px 12px rgba(11, 99, 229, 0.45);
  background-position: 100% 0%;
}

.btn-refresh-highlight:hover:not(:disabled) .refresh-icon-svg {
  transform: rotate(45deg);
}

.btn-refresh-highlight:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0, 210, 196, 0.35);
}

/* Loading State (Animated Radar Waves & Fluid Spin) */
.btn-refresh-highlight.loading {
  cursor: wait;
  background-size: 300% 300%;
  animation: gradientFlow 2s ease infinite;
}

.btn-refresh-highlight.loading .refresh-icon-svg {
  animation: spinSmooth 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.btn-refresh-highlight.loading::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(0, 210, 196, 0.8);
  animation: radarWave 1.4s infinite cubic-bezier(0.1, 0.7, 0.1, 1);
  z-index: 1;
}

@keyframes spinSmooth {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes radarWave {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Success Burst State */
.btn-refresh-highlight.success {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #00d2c4 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
  transform: scale(1.06);
}

/* Actions Buttons Group (Email + Refresh) */
.actions-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Email Action Button */
.btn-email-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-email-action:hover {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 101, 52, 0.12);
}

.btn-email-action svg {
  color: #16a34a;
}

/* Email Modal Styles */
.modal-dialog-email {
  max-width: 540px;
}

.email-modal-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.email-modal-badge-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.email-form-group {
  display: flex;
  flex-direction: column;
}

.email-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.email-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.email-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.email-preview-callout {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-callout-text strong {
  font-size: 12px;
  color: #0f172a;
}

.preview-callout-text span {
  font-size: 11px;
  color: #64748b;
}

.btn-preview-html-link {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-preview-html-link:hover {
  background: #1e293b;
  transform: scale(1.04);
}

.btn-send-email-confirm {
  background: linear-gradient(135deg, #183b2b 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
  transition: all 0.25s ease;
}

.btn-send-email-confirm:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.45);
}

.btn-send-email-confirm:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Feed Cards List */
.feed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual Post Card (Exact Match to Mockup) */
.post-item-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 26px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  cursor: pointer;
}

.post-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #e2e8f0;
}

.card-cover-container {
  width: 210px;
  height: 200px;
  min-height: 200px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-item-card:hover .card-cover-img {
  transform: scale(1.04);
}

.card-info-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.card-top-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Square Cyan Badge (e.g. MAY 08 / TOP 01) */
.square-cyan-badge {
  background: #00d5c8;
  color: #044b47;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.05;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 213, 200, 0.32);
}

.badge-month-txt {
  font-size: 9.5px;
  letter-spacing: 0.6px;
  font-weight: 800;
}

.badge-day-txt {
  font-size: 16px;
  font-weight: 800;
}

.card-title-group {
  flex: 1;
}

.card-post-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-line {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

.card-menu-dots {
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.card-post-snippet {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.author-mini-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
}

.author-mini-tag {
  font-size: 11px;
  color: var(--text-muted);
}

.author-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--color-blue-pill);
  font-weight: 700;
}

/* Card Bottom Metrics (Pill 73 Participants + 🔥 12 + ↗ 30) */
.card-bottom-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.metrics-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-participants {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #0057e7;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 87, 231, 0.35);
  transition: transform 0.2s ease;
}

.pill-participants:hover {
  transform: scale(1.03);
}

.pill-participants svg {
  fill: currentColor;
}

.metric-fire-unit,
.metric-share-unit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.metric-share-unit {
  color: var(--color-share-blue);
}

/* ==========================================================================
   3. RIGHT SIDEBAR (Live Stream, Live Chat & Pinned)
   ========================================================================== */
.sidebar-right {
  background: #ffffff;
  border-left: 1px solid #f1f5f9;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 840px;
  overflow: hidden;
}

/* Top Live Stream Hero Video Card */
.stream-hero-card {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.stream-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-live-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.live-divider {
  opacity: 0.6;
}

.video-overlay-participants {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.streamer-chip-item {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 8px 2px 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-chip-item img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.video-fire-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

/* Live Chat Dark Blue Bar */
.stream-live-chat-bar {
  background: var(--color-chat-bar);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(11, 58, 130, 0.25);
}

.live-chat-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-chat-title-text {
  font-size: 12px;
  font-weight: 800;
}

.live-chat-peoples-pill {
  font-size: 10px;
  opacity: 0.85;
}

.live-chat-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-tool-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.8;
}

.chat-tool-btn:hover {
  opacity: 1;
}

/* Pinned Card */
.pinned-chat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pinned-icon-sphere {
  width: 22px;
  height: 22px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.pinned-text-box {
  flex: 1;
}

.pinned-badge-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-blue-pill);
}

.pinned-desc-text {
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

/* Live Chat Message Stream (Clean Format) */
.live-chat-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
  max-height: 260px;
}

.chat-message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-message-bubble {
  flex: 1;
}

.chat-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.chat-username {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.chat-timestamp {
  font-size: 10px;
  color: var(--text-muted);
}

.chat-text-line {
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.35;
}

/* Bottom Vibrant Cyan Comment Input Bar */
.chat-comment-bar-unit {
  background: var(--color-cyan-btn);
  border-radius: var(--radius-pill);
  padding: 5px 8px 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 210, 196, 0.35);
}

.chat-emoji-trigger {
  font-size: 14px;
  cursor: pointer;
}

.chat-comment-bar-unit input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 600;
  color: #044b47;
}

.chat-comment-bar-unit input::placeholder {
  color: rgba(4, 75, 71, 0.7);
}

.chat-send-btn {
  background: #044b47;
  color: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chat-send-btn:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   4. LOGS VIEW TABLE
   ========================================================================== */
.logs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logs-header-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logs-header-title h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
}

.logs-header-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.logs-stats-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-metric {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.chip-success { background: #dcfce7; color: #166534; }
.chip-info { background: #e0f2fe; color: #0369a1; }

.logs-table-wrapper {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-card);
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.logs-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid #e2e8f0;
}

.logs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-dark);
}

.lvl-badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

.lvl-SUCCESS { background: #dcfce7; color: #166534; }
.lvl-INFO    { background: #e0f2fe; color: #0369a1; }
.lvl-WARNING { background: #fef3c7; color: #92400e; }
.lvl-ERROR   { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   5. MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog-box {
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-rank-pill {
  background: #00d2c4;
  color: #044b47;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modal-sub-pill {
  background: #f1f5f9;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.modal-body-scroll {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-post-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
}

.modal-author-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-author-profile h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-author-role {
  font-size: 12px;
  color: var(--color-blue-pill);
  font-weight: 600;
  display: block;
}

.modal-date-text {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 2px;
}

.modal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-badge-pill {
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modal-content-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-text-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dark);
  white-space: pre-line;
}

.original-toggle-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
}

.original-toggle-box summary {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.original-raw-content {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
  white-space: pre-line;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: #fafbfd;
}

.btn-clean {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-blue {
  background: var(--color-blue-pill);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive */
@media (max-width: 1100px) {
  .dashboard-canvas {
    grid-template-columns: 200px 1fr;
  }
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 780px) {
  body {
    padding: 8px;
  }
  .dashboard-canvas {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .sidebar-left {
    display: none;
  }
  .post-item-card {
    grid-template-columns: 1fr;
  }
  .card-cover-container {
    height: 150px;
  }
}
