:root {
  --bg-dark: #07070b;
  --bg-light: #12121c;
  --accent-primary: #a970ff;
  --accent-primary-glow: rgba(169, 112, 255, 0.4);
  --accent-danger: #ff4785;
  --accent-danger-glow: rgba(255, 71, 133, 0.4);
  --text-main: #f0f0f5;
  --text-muted: #a0a0b0;
  --card-bg: rgba(18, 18, 28, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(169, 112, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 71, 133, 0.1) 0%, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Orbs */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(169, 112, 255, 0.15);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 71, 133, 0.1);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.12);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 50px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.container-fluid {
  position: relative;
  z-index: 1;
}

/* Typography & Headers */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #bf94ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.6s ease-out;
}

h1.display-4 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(to right, #ffffff, #a0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.lead.text-muted {
  font-size: 1.25rem;
  color: var(--text-muted) !important;
  font-weight: 400;
  letter-spacing: -0.2px;
  animation: fadeInUp 1s ease-out;
}

/* Glassmorphism Cards */
.app-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: rgba(22, 22, 32, 0.7);
}

.app-card[data-extension-id="eobjmannddhkoibinhjfojedgfbkbkjf"]:hover {
  border-color: rgba(169, 112, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(169, 112, 255, 0.1);
}

.app-card[data-extension-id="ahmmnkmhmidpggdipmmijaiphnaoeidh"]:hover {
  border-color: rgba(255, 71, 133, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 71, 133, 0.1);
}

.app-card[data-extension-id="jhkklkjhdfanpjmdilfmgoiefdkpgcep"]:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.1);
}

/* Card Icons */
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card:hover .app-icon {
  transform: scale(1.08) translateY(-4px);
}

.bg-primary {
  background: linear-gradient(135deg, #a970ff 0%, #6b21a8 100%) !important;
  box-shadow: 0 10px 24px var(--accent-primary-glow);
}

.bg-danger {
  background: linear-gradient(135deg, #ff4785 0%, #be123c 100%) !important;
  box-shadow: 0 10px 24px var(--accent-danger-glow);
}

.bg-sketch {
  background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%) !important;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.4);
}

/* Card Content */
.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.app-description {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.app-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.app-features li {
  padding: 8px 0;
  color: #c0c0d0;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.app-features li i {
  color: #10b981;
  margin-right: 12px;
  font-size: 1.1rem;
}

/* Buttons */
.app-button {
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-primary);
  box-shadow: 0 4px 14px var(--accent-primary-glow);
}

.btn-primary:hover {
  background: #b582ff;
  box-shadow: 0 6px 20px var(--accent-primary-glow);
  color: white;
}

.btn-danger {
  background: var(--accent-danger);
  box-shadow: 0 4px 14px var(--accent-danger-glow);
}

.btn-danger:hover {
  background: #ff5e95;
  box-shadow: 0 6px 20px var(--accent-danger-glow);
  color: white;
}

.btn-sketch {
  background: #06b6d4;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.btn-sketch:hover {
  background: #22d3ee;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  color: white;
}

/* Stats */
.app-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.app-rating,
.app-users {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.app-rating i {
  color: #fbbf24;
}

.app-users i {
  color: #60a5fa;
}

/* Info Button & Modal */
.info-button {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.info-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.info-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.info-modal.active {
  display: flex;
}

.info-modal-content {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.info-modal-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-modal-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.info-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.info-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.info-modal-body {
  padding: 24px;
  color: #c0c0d0;
  font-size: 0.95rem;
}

.info-modal-body p {
  margin-bottom: 16px;
}

.info-modal-body strong {
  color: white;
}

.info-modal-body ul {
  list-style: none;
  margin: 24px 0;
}

.info-modal-body ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-modal-body ul li i {
  color: #10b981;
  margin-right: 12px;
  font-size: 1.1rem;
}

.info-note {
  background: rgba(169, 112, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  border-left: 3px solid var(--accent-primary);
  margin-top: 24px;
  display: flex;
  align-items: center;
  color: #e5d5ff;
}

.info-note i {
  color: var(--accent-primary);
  margin-right: 12px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  h1.display-4 {
    font-size: 2.25rem;
  }

  .app-card {
    padding: 32px 24px;
  }

  .info-button {
    top: 16px;
    right: 16px;
  }
}

/* ===== TOTAL USERS BAR ===== */
.total-users-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  display: flex;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
}

.total-users-inner {
  position: relative;
  pointer-events: auto;
  margin-top: 16px;
  margin-left: 24px;
  padding: 10px 28px;
  background: rgba(14, 14, 22, 0.55);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(169, 112, 255, 0.15);
  border-radius: 40px;
  display: flex;
  align-items: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(169, 112, 255, 0.08);
  animation: totalBarSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

.total-users-glow {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(90deg,
      rgba(169, 112, 255, 0.06) 0%,
      rgba(255, 71, 133, 0.06) 50%,
      rgba(169, 112, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: totalBarGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes totalBarGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes totalBarSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.total-users-content {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.total-users-content>i {
  font-size: 1.1rem;
  background: linear-gradient(135deg, #a970ff, #ff4785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(169, 112, 255, 0.4));
}

.total-users-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.total-users-count {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d4b8ff 0%, #ff6b9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  min-width: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .total-users-inner {
    margin-top: 12px;
    padding: 8px 20px;
  }

  .total-users-label {
    font-size: 0.75rem;
  }

  .total-users-count {
    font-size: 1rem;
  }
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.main-content {
  flex: 1;
  min-width: 0;
  transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CHAT SIDEBAR — Glassmorphism ===== */
.chat-sidebar {
  width: 380px;
  min-width: 380px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 18, 0.35);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-left: 1px solid rgba(169, 112, 255, 0.1);
  box-shadow:
    -8px 0 40px rgba(0, 0, 0, 0.35),
    inset 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-sidebar.collapsed {
  transform: translateX(100%);
}

/* Chat Header */
.chat-header {
  flex-shrink: 0;
  background: linear-gradient(180deg,
      rgba(20, 20, 30, 0.7) 0%,
      rgba(10, 10, 18, 0.3) 100%);
  border-bottom: 1px solid rgba(169, 112, 255, 0.1);
  position: relative;
}

.chat-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(169, 112, 255, 0.3),
      transparent);
}

.chat-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(239, 239, 241, 0.95);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.chat-header-title i {
  font-size: 1.2rem;
  color: #bf94ff;
  filter: drop-shadow(0 0 6px rgba(169, 112, 255, 0.5));
}

/* Live indicator dot */
.chat-header-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 8px rgba(83, 252, 24, 0.6);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.chat-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(173, 173, 184, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.chat-toggle-btn:hover {
  background: rgba(169, 112, 255, 0.15);
  border-color: rgba(169, 112, 255, 0.3);
  color: #d4b8ff;
  transform: scale(1.05);
}

/* Chat Messages Area */
/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 112, 255, 0.15) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 3px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(169, 112, 255, 0.2);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(169, 112, 255, 0.35);
}

/* Chat Message Item */
.chat-message {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
  animation: chatMsgIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
  position: relative;
}

.chat-message:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(169, 112, 255, 0.1);
  transform: translateX(-2px);
}

.chat-message:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a970ff, #772ce8);
  box-shadow: 0 0 8px rgba(169, 112, 255, 0.4);
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.chat-avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.chat-author {
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-unfollowers {
  background: rgba(169, 112, 255, 0.15);
  color: #bf94ff;
  border-color: rgba(169, 112, 255, 0.3);
}

.tag-dmcleaner {
  background: rgba(255, 71, 133, 0.15);
  color: #ff6b9d;
  border-color: rgba(255, 71, 133, 0.3);
}

.tag-websketch {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.chat-stars {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.chat-stars i {
  font-size: 0.6rem;
  color: #ffc107;
  filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.3));
}

.chat-stars i.empty {
  color: rgba(255, 255, 255, 0.1);
  filter: none;
}

.chat-message-text {
  color: rgba(220, 220, 230, 0.85);
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: 38px;
  word-break: break-word;
}

.chat-message-date {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  padding-left: 38px;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* Chat Loading */
.chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 50px 20px;
  color: rgba(173, 173, 184, 0.7);
  font-size: 0.85rem;
}

.chat-spinner {
  width: 30px;
  height: 30px;
  border: 2.5px solid rgba(169, 112, 255, 0.1);
  border-top-color: #a970ff;
  border-radius: 50%;
  animation: chatSpin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(169, 112, 255, 0.15);
}

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

/* Chat Empty State */
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: rgba(173, 173, 184, 0.5);
  text-align: center;
}

.chat-empty i {
  font-size: 2.8rem;
  color: rgba(169, 112, 255, 0.15);
}

.chat-empty span {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Chat Footer */
.chat-footer {
  flex-shrink: 0;
  padding: 14px 14px;
  border-top: 1px solid rgba(169, 112, 255, 0.08);
  background: rgba(15, 15, 25, 0.4);
  position: relative;
}

.chat-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(169, 112, 255, 0.2),
      transparent);
}

.chat-store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg,
      rgba(169, 112, 255, 0.1) 0%,
      rgba(119, 44, 232, 0.06) 100%);
  border: 1px solid rgba(169, 112, 255, 0.15);
  color: rgba(212, 184, 255, 0.85);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chat-store-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(169, 112, 255, 0.15) 0%,
      rgba(119, 44, 232, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-store-link:hover {
  border-color: rgba(169, 112, 255, 0.35);
  color: #e5d5ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(169, 112, 255, 0.15);
}

.chat-store-link:hover::before {
  opacity: 1;
}

.chat-store-link i,
.chat-store-link span {
  position: relative;
  z-index: 1;
}

.chat-store-link i {
  font-size: 0.85rem;
}

/* Chat Reopen Button */
.chat-reopen-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(100%);
  width: 40px;
  height: 80px;
  border: none;
  border-radius: 12px 0 0 12px;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(169, 112, 255, 0.15);
  border-right: none;
  color: #bf94ff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 901;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.chat-reopen-btn.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: all;
}

.chat-reopen-btn:hover {
  width: 48px;
  background: rgba(169, 112, 255, 0.2);
  color: #e5d5ff;
  box-shadow: -6px 0 30px rgba(169, 112, 255, 0.15);
}

/* Mobile Chat Toggle */
.chat-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a970ff 0%, #772ce8 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 950;
  box-shadow:
    0 4px 24px rgba(169, 112, 255, 0.4),
    0 0 0 4px rgba(169, 112, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
}

.chat-mobile-toggle:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow:
    0 8px 32px rgba(169, 112, 255, 0.5),
    0 0 0 6px rgba(169, 112, 255, 0.15);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff6b9d, #e0245e);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(10, 10, 18, 0.8);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

.chat-badge:empty {
  display: none;
}

/* ===== MAIN CONTENT MARGIN WHEN SIDEBAR OPEN ===== */
.main-content {
  margin-right: 380px;
}

.chat-sidebar.collapsed~.main-content,
.main-content.expanded {
  margin-right: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .chat-sidebar {
    width: 340px;
    min-width: 340px;
  }

  .main-content {
    margin-right: 340px;
  }
}

@media (max-width: 992px) {
  .chat-sidebar {
    width: 100%;
    min-width: unset;
    max-width: 380px;
    transform: translateX(100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  }

  .chat-sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-right: 0 !important;
  }

  .chat-mobile-toggle {
    display: flex;
  }

  .chat-toggle-btn {
    display: flex;
  }

  .chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 899;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .chat-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

@media (max-width: 576px) {
  .chat-sidebar {
    max-width: 100%;
  }

  .chat-mobile-toggle {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
}