/* ==========================================================
   DOTA 2 BOOSTER WEB PANEL — DESIGN SYSTEM & STYLES
   ========================================================== */

:root {
  --bg-base: #0a0d14;
  --bg-surface: #111622;
  --bg-card: #171f30;
  --bg-card-hover: #1e293f;
  --bg-card-active: #22304c;
  --bg-input: #0d121c;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(59, 130, 246, 0.35);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.3);
  
  --accent-gold: #f59e0b;
  --accent-gold-soft: rgba(245, 158, 11, 0.15);
  
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-soft: rgba(239, 68, 68, 0.15);
  
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.15);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --bubble-incoming: #172133;
  --bubble-outgoing: #1d4ed8;
  --bubble-outgoing-grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Rajdhani', 'Inter', sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

/* App Shell Layout */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 50% 0%, #141b2b 0%, #0a0d14 60%);
}

/* ==========================================================
   TOP NAVIGATION BAR
   ========================================================== */
.top-nav {
  height: 56px;
  background: rgba(17, 22, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  flex-shrink: 0;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand-text {
  color: #fff;
}
.brand-text b {
  color: var(--primary);
}
.game-tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-indicator.online .status-dot {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.status-indicator.connecting .status-dot {
  background-color: var(--accent-gold);
  animation: pulse 1s infinite alternate;
}
.status-indicator.offline .status-dot {
  background-color: var(--danger);
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.nav-btn.btn-outline {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.nav-btn.btn-outline:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
}

/* ==========================================================
   WORKSPACE SPLIT VIEW
   ========================================================== */
.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 56px);
}

/* ==========================================================
   SIDEBAR: CHAT LIST
   ========================================================== */
.sidebar {
  width: 360px;
  min-width: 300px;
  max-width: 420px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sidebar-search {
  padding: 12px 14px 8px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  transition: border-color 0.2s;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.search-icon {
  margin-right: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 13px;
  width: 100%;
}
.search-box input::placeholder {
  color: var(--text-dim);
}

.sidebar-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-weight: 600;
}

.chats-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Chat Item Card */
.chat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}
.chat-card:hover {
  background: var(--bg-card);
}
.chat-card.active {
  background: var(--bg-card-active);
  border-color: var(--border-highlight);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.chat-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}
.chat-card.active .chat-card-avatar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #60a5fa;
}

.chat-card-body {
  flex: 1;
  min-width: 0;
}
.chat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.chat-card-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-card-time {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.chat-card-msg {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-card.unread .chat-card-msg {
  color: #fff;
  font-weight: 500;
}

.chat-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.fp-unread-badge {
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.order-mini-badge {
  background: var(--accent-gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

/* ==========================================================
   MAIN CHAT VIEWPORT
   ========================================================== */
.chat-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  overflow: hidden;
  position: relative;
}

/* Placeholder state */
.chat-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.placeholder-content {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.placeholder-icon {
  font-size: 54px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.placeholder-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.placeholder-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.placeholder-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.tip-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: left;
}

/* Active Chat View */
.chat-active-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Chat Header */
.chat-header {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
}
.chat-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-to-list-btn {
  display: none;
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #60a5fa;
  text-transform: uppercase;
}
.user-details {
  display: flex;
  flex-direction: column;
}
.user-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-name-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.fp-profile-link {
  font-size: 11.5px;
  color: #60a5fa;
  text-decoration: none;
  background: rgba(59, 130, 246, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.fp-profile-link:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}
.user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.meta-tag {
  font-size: 11.5px;
  color: var(--text-dim);
}
.order-tag {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buyer Looking Lot Banner */
.buyer-looking-banner {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.banner-icon {
  font-size: 18px;
}
.banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  overflow: hidden;
}
.banner-title {
  color: var(--text-dim);
  white-space: nowrap;
}
.banner-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* ==========================================================
   MESSAGES CONTAINER
   ========================================================== */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.messages-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: min-content;
}

/* Message Bubble */
.msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  animation: fadeIn 0.15s ease;
}
.msg-wrapper.incoming {
  align-self: flex-start;
}
.msg-wrapper.outgoing {
  align-self: flex-end;
}
.msg-wrapper.system {
  align-self: center;
  max-width: 85%;
  margin: 8px 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.msg-wrapper.incoming .msg-bubble {
  background: var(--bubble-incoming);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-sm);
}
.msg-wrapper.outgoing .msg-bubble {
  background: var(--bubble-outgoing-grad);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.msg-wrapper.system .msg-bubble {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a;
  font-size: 12.5px;
  border-radius: var(--radius-md);
  text-align: center;
  padding: 6px 14px;
}

.msg-image-thumb {
  max-width: 240px;
  max-height: 200px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 6px;
  display: block;
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s;
}
.msg-image-thumb:hover {
  transform: scale(1.02);
}

.msg-footer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  margin-top: 3px;
  padding: 0 4px;
}
.msg-wrapper.incoming .msg-footer {
  align-self: flex-start;
  color: var(--text-dim);
}
.msg-wrapper.outgoing .msg-footer {
  align-self: flex-end;
  color: var(--text-dim);
}

/* ==========================================================
   QUICK REPLIES BAR
   ========================================================== */
.quick-replies-bar {
  background: rgba(17, 22, 34, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  flex-shrink: 0;
}
.quick-replies-label {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
}
.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.reply-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.reply-chip:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  color: #93c5fd;
}

/* ==========================================================
   CHAT INPUT BAR
   ========================================================== */
.chat-input-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.input-container {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  transition: border-color 0.2s;
  display: flex;
}
.input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.input-container textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.4;
  resize: none;
  max-height: 120px;
}
.input-container textarea::placeholder {
  color: var(--text-dim);
}

.send-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================
   BUTTONS & COMMON COMPONENTS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--bubble-outgoing-grad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-warning-soft {
  background: var(--accent-gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
}
.btn-warning-soft:hover {
  background: rgba(245, 158, 11, 0.25);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-block {
  width: 100%;
}

/* ==========================================================
   MODALS & OVERLAYS
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.login-card {
  max-width: 380px;
  text-align: center;
  border-top: 3px solid var(--primary);
}
.brand-logo-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.login-title {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 4px;
}
.login-subtitle {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 24px;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  letter-spacing: 2px;
}
.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.input-wrapper .toggle-password {
  position: absolute;
  right: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

/* Refund Modal Specifics */
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.warning-icon {
  font-size: 24px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.modal-body {
  font-size: 13.5px;
  color: var(--text-muted);
}
.refund-info-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.refund-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.modal-alert {
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: 8px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Lightbox Modal */
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* Loading Spinner */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-dim);
  gap: 12px;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  .sidebar {
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 20;
  }
  .sidebar.mobile-hidden {
    transform: translateX(-100%);
  }
  .chat-viewport {
    width: 100%;
  }
  .back-to-list-btn {
    display: flex;
  }
}
