/* Стиль перенесён и адаптирован из @primer (primer/cs.css) под интерфейс "Дурак 2026". */

:root {
  --bg: #111;
  --frame-bg: #000;
  --frame-border: #1f1f1f;

  --surface-1: #1c1c1e; /* карточки / панели */
  --surface-2: #2c2c2e; /* вторичный фон */
  --stroke: rgba(255, 255, 255, 0.06);

  --primary: #f7b91c;
  --danger: #ef4444;
    --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);

  --radius-lg: 30px;
  --radius-md: 16px;

  --nav-height: 72px;
  --safe-bottom: 0px;
  
  /* Быстрые переходы для отзывчивости */
  --transition-fast: 80ms ease-out;
  --transition-normal: 150ms ease-out;
}

/* --- RESET & BASE (из @primer) --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* --- PERFORMANCE OPTIMIZATIONS --- */
/* GPU-ускорение для интерактивных элементов */
button, .btn, .nav-item, .lobby-item, .card, 
.notification-item, .friend-item, .history-item,
.modal-content, .toast {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Быстрый отклик на касание */
button, .btn, .nav-item, .clickable {
  touch-action: manipulation;
}

/* Мгновенный фидбек при нажатии */
button:active, .btn:active, .nav-item:active, 
.lobby-item:active, .clickable:active {
  transition: transform 30ms ease-out !important;
  transform: scale(0.96) translateZ(0) !important;
}

/* Предварительная загрузка анимаций для частых элементов */
.view, .modal-overlay, .toast {
  will-change: opacity;
}

.card, .lobby-item, .notification-item {
  will-change: transform;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
    color: var(--text);
    overflow: hidden;
    user-select: none;
}

/* Плавный скролл с инерцией на iOS/Android */
* {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto; /* Instant scroll for faster response */
}

/* Оптимизация изображений */
img {
  content-visibility: auto;
}

/* Режим пониженных анимаций (для экономии батареи и ускорения) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
  display: none !important;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* --- UTILITIES (из @primer) --- */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* --- MOBILE FRAME (из @primer) --- */
.mobile-frame {
  width: 390px;
  height: 844px;
  background-color: var(--frame-bg);
  border-radius: 50px;
  border: 8px solid var(--frame-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px -15px rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
}

@media (max-width: 420px) {
  body { padding: 0; }
  .mobile-frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }
}

/* notch / home-indicator intentionally removed */

/* --- APP LAYOUT --- */
#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.view { 
    display: none; 
    flex: 1; 
  min-height: 0;
  position: relative;
    flex-direction: column;
  /* Мгновенное переключение видов */
  opacity: 0;
  transition: opacity 50ms ease-out; 
}
.view.active { 
  display: flex; 
  opacity: 1;
}

#view-home,
#view-leaderboard,
#view-profile {
  overflow: hidden; /* скролл у конкретных списков/контента, чтобы не "сжимало" весь экран */
}

.leaderboard-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.section-hint {
  padding: 12px 16px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- COMMON UI --- */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
    text-align: center;
}

.loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
  margin-top: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- LOBBY / PROFILE --- */
.lobby-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 16px 10px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.lobby-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

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

.header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.10s ease, background-color 0.15s ease;
}
.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}
.header-icon-btn:active { transform: scale(0.96); }

/* --- Toasts (top-right fly-out) --- */
.toast-container {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 220;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 180px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  transform: translateX(18px);
  opacity: 0;
  animation: toast-in 100ms ease-out forwards;
}

.toast.success { border-color: rgba(247, 185, 28, 0.35); }
.toast.danger { border-color: rgba(239, 68, 68, 0.35); }
.toast.info { border-color: rgba(255, 255, 255, 0.14); }

.toast.leaving {
  animation: toast-out 80ms ease-in forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}

/* --- Modal (create game) --- */
.modal-overlay {
    position: absolute;
    inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
  padding: 16px;
  /* Быстрое появление */
  animation: fadeIn 100ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(360px, 100%);
  border-radius: 24px;
  background: rgba(28, 28, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  padding: 14px;
  /* Быстрая анимация появления */
  animation: modalSlideIn 120ms ease-out;
}

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

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

.modal-title {
  font-weight: 900;
  font-size: 16px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.10s ease, background-color 0.15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.10); }
.modal-close:active { transform: scale(0.96); }

.modal-body { display: flex; flex-direction: column; }

.modal-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 8px;
}

.modal-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
  font-weight: 900;
}
.modal-input:focus {
  border-color: rgba(247, 185, 28, 0.35);
  box-shadow: 0 0 0 3px rgba(247, 185, 28, 0.14);
}

.modal-help {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Game Mode Selector --- */
.game-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 80ms ease-out;
}

.mode-btn i {
  font-size: 20px;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mode-btn.active {
  border-color: var(--primary);
  background: rgba(247, 185, 28, 0.12);
  color: var(--primary);
}

.mode-btn:active {
  transform: scale(0.97);
}

/* --- Players Count Selector --- */
.players-count-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.players-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 80ms ease-out;
}

.players-btn.active {
  border-color: var(--primary);
  background: rgba(247, 185, 28, 0.12);
  color: var(--primary);
}

.players-btn:active {
  transform: scale(0.97);
}

/* --- Lobby Players Count --- */
.lobby-players-count {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-size: 12px;
}

.lobby-players-count i {
  font-size: 11px;
  margin-right: 2px;
}

/* --- Game Info Line (in lobby) --- */
.game-info-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.game-info-line i {
  margin-right: 4px;
}

.game-info-divider {
  color: rgba(255, 255, 255, 0.3);
}

/* --- Toggle Switch --- */
.private-room-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: background 150ms ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 150ms ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* --- Code Input --- */
.code-input {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 8px;
  padding: 16px;
}

.code-input::placeholder {
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.2);
}

/* --- Private Room Code Display --- */
.private-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(247, 185, 28, 0.08);
  border: 1px solid rgba(247, 185, 28, 0.2);
  border-radius: 12px;
}

.private-code-value {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--primary);
}

.private-code-copy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 80ms ease-out;
}

.private-code-copy:hover {
  background: rgba(255, 255, 255, 0.15);
}

.private-code-copy:active {
  transform: scale(0.95);
}

.funds-payout-row {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(247, 185, 28, 0.08);
  border: 1px solid rgba(247, 185, 28, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.funds-payout-label {
  font-size: 13px;
  color: var(--text-muted);
}
.funds-payout-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}

.segmented {
  display: flex;
  gap: 10px;
}

.seg-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.10s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.seg-btn:hover { background: rgba(255, 255, 255, 0.10); }
.seg-btn:active { transform: scale(0.98); }
.seg-btn.active {
  background: rgba(247, 185, 28, 0.16);
  border-color: rgba(247, 185, 28, 0.35);
}

.modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.lobby-controls {
    padding: 14px 16px;
  display: flex;
  gap: 10px;
}

.lobby-list {
  list-style: none;
  padding: 0 16px calc(var(--nav-height) + 28px);
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.lobby-list.is-empty {
  justify-content: center;
}

.lobby-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.lobby-item {
  background: var(--surface-1);
  padding: 14px 14px;
    border-radius: 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 50ms ease-out, background-color 80ms ease-out;
}
.lobby-item:hover { background: rgba(255, 255, 255, 0.04); }
.lobby-item:active { transform: scale(0.97); }

.lobby-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lobby-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
}

.lobby-meta { min-width: 0; }
.lobby-mode {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  text-transform: capitalize;
  white-space: nowrap;
}

.lobby-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-join-stake {
  align-self: center;
  height: auto;
  min-height: 36px;
  line-height: 1.25;
  padding: 8px 14px;
  flex-shrink: 0;
}

.lobby-stake {
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
}

/* --- PROFILE --- */
.profile-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px calc(var(--nav-height) + 28px);
}

.profile-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.profile-avatar {
  width: 76px;
  height: 76px;
}
.profile-avatar .avatar-img {
  width: 72px;
  height: 72px;
}

.profile-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.profile-name {
  font-size: 18px;
  font-weight: 900;
}
.profile-balance {
  font-size: 20px;
  font-weight: 900;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.section {
  margin-top: 16px;
}

.section-title {
  padding: 0 2px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.10s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.pager-btn:hover { background: rgba(255, 255, 255, 0.10); }
.pager-btn:active { transform: scale(0.96); }
.pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
}

/* --- Referral section --- */
#referral-section {
  background: linear-gradient(145deg, rgba(247, 185, 28, 0.06) 0%, rgba(247, 185, 28, 0.02) 100%);
  border: 1px solid rgba(247, 185, 28, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
}

#referral-section .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 15px;
  padding-bottom: 8px;
}

#referral-section .section-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f7b91c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
}

#referral-section .text-muted {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding: 0 2px;
}

.referral-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

#referral-link-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-size: 12px;
  padding: 10px 14px;
  letter-spacing: 0.02em;
}

#referral-link-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(247, 185, 28, 0.2);
}

#referral-section .btn-referral-copy {
  flex-shrink: 0;
  background: var(--primary);
  color: #0b0b0c;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}

#referral-section .btn-referral-copy:hover {
  opacity: 0.95;
  box-shadow: 0 4px 14px rgba(247, 185, 28, 0.35);
}

#referral-section .btn-referral-copy:active {
  transform: scale(0.97);
}

#referral-stats {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#referral-stats .stat-card {
  background: var(--surface-1);
  border-color: rgba(255, 255, 255, 0.08);
}

#referral-stats .stat-value {
  color: var(--primary);
  font-size: 20px;
}

.history-list {
  list-style: none;
  margin: 0;
    padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.history-title {
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.history-right {
  font-weight: 900;
  white-space: nowrap;
}

.history-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(28, 28, 30, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

/* Bootstrap buttons: чуть подровняем под стиль @primer */
.btn {
  border-radius: 14px;
  transition: transform 50ms ease-out, background-color 80ms ease-out, opacity 80ms ease-out;
}
.btn:active {
  transform: scale(0.96);
}
.btn.btn-warning {
  background: var(--primary);
  border-color: rgba(0,0,0,0.2);
  color: #0b0b0c;
    font-weight: 800;
}
.btn.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.20);
}
.btn.btn-danger {
  background: rgba(239, 68, 68, 0.95);
  border-color: rgba(0,0,0,0.2);
}

/* --- AVATARS & TIMERS --- */
.avatar-container {
    position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 50px;
  height: 50px;
    border-radius: 50%;
  background: #2b2b2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
    object-fit: cover;
}

.timer-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
    transform: rotate(-90deg);
    z-index: 1;
}
.timer-circle {
  fill: none;
  stroke: transparent;
  stroke-width: 3;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-name { 
    font-size: 12px; 
  font-weight: 800;
  margin-top: -2px;
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    white-space: nowrap;
}

.player-status-bubble {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  color: black;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    z-index: 10;
  display: none;
}

/* --- GAME TABLE --- */
#view-game {
  background: radial-gradient(circle at center, #2b2b2b 0%, #0b0b0c 100%);
  perspective: 1000px;
  overflow: hidden;
}

/* Игровой контент ниже overlay, чтобы кнопка «Выход» всегда была сверху и кликабельна */
#game-interface {
  position: relative;
  z-index: 1;
}

.game-header-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 500;
  pointer-events: auto;
}

.btn-close-game {
  position: relative;
  z-index: 501;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 80ms ease-out;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn-close-game:hover {
  background: rgba(239, 68, 68, 0.8);
}
.btn-close-game:active { transform: scale(0.95); }

.lobby-panel {
  position: absolute;
  top: 120px; /* Поднимаем выше чтобы не закрывать кнопки */
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
}
.lobby-panel.hidden { display: none !important; }
.lobby-panel-inner {
  width: 320px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  text-align: center;
}

.lobby-panel-inner h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: white;
}

/* Players list in game lobby */
.lobby-players-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.lobby-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.lobby-player-card.empty {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px;
}

.lobby-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.lobby-player-info {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.lobby-player-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-player-status {
  font-size: 11px;
  margin-top: 2px;
}

.lobby-player-status.ready {
  color: #22c55e;
}

.lobby-player-status.waiting {
  color: var(--primary);
}

.lobby-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Lobby buttons */
.lobby-buttons {
  display: none;
  gap: 10px;
  margin-top: 16px;
}

.lobby-buttons.visible {
  display: flex;
}

.lobby-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 80ms ease-out;
}

.lobby-btn:active {
  transform: scale(0.97);
}

.lobby-btn.btn-warning {
  background: var(--primary);
  border: none;
  color: #0b0b0c;
}

.lobby-btn.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

/* Opponent Position: Top Center */
.opponent-area {
  position: absolute;
  top: 18px;
  left: 50%;
    transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opponent-hand {
  display: flex;
  justify-content: center;
  margin-top: -10px;
    height: 40px;
}

.card-back {
  width: 30px;
  height: 45px;
    background: linear-gradient(135deg, #b91c1c, #991b1b);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  margin-left: -15px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.35);
}
.card-back:first-child { margin-left: 0; }

/* --- Table Center --- */
.table-center {
  position: absolute;
  top: 45%;
  left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
    z-index: 5;
}

.play-pair {
    position: relative;
  width: 70px;
  height: 100px;
    margin: 0 10px;
    transition: transform 0.3s;
}

.play-pair .card.attack { 
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
    transform: rotate(calc(var(--rnd-angle, 0deg)));
}
.play-pair .card.defended { 
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  transform: rotate(15deg);
}

/* --- Deck & Trump --- */
.deck-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.deck-stack {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 800;
  color: white;
    position: relative; 
    z-index: 5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}
.deck-stack span {
  color: white;
  font-weight: 900;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    z-index: 6;
}
.trump-card-slot {
    position: relative;
  width: 58px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
    overflow: hidden;
    z-index: 4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}
.trump-card-slot .card {
  /* override "fan" card transform/origin for a stable mini-trump rendering */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.42);
  transform-origin: center;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: none;
}

/* --- Player Hand (Fan Effect) --- */
.my-area {
  position: absolute;
  bottom: calc(30px + var(--safe-bottom));
  left: 0;
  width: 100%;
    height: 150px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
    z-index: 20;
  perspective: 1000px;
}

.my-avatar-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  bottom: -40px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.hand-fan {
    position: relative;
    width: min(92vw, 420px);
    height: 140px;
  display: flex;
  justify-content: center;
}

.card {
    position: absolute;
  width: 70px;
  height: 105px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-weight: 900;
    font-size: 18px;
  transform-origin: 50% 150%;
  transition: box-shadow 0.2s, transform 0.08s ease;
    cursor: pointer;
    will-change: transform;
}

.card:active { transform: translateY(-2px); }

.card:hover {
  box-shadow: 0 0 0 2px rgba(247, 185, 28, 0.35), 0 -2px 18px rgba(0, 0, 0, 0.28);
}

.card.selected {
  box-shadow: 0 0 0 3px rgba(247, 185, 28, 0.85), 0 -2px 18px rgba(0, 0, 0, 0.28);
}

.card.red { color: #d93025; }
.card.black { color: #111; }

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    line-height: 1;
    opacity: 1;
}

.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1;
}
.card-corner.top {
  top: 7px;
  left: 7px;
}
.card-corner.bottom {
  bottom: 7px;
  right: 7px;
    transform: rotate(180deg);
    transform-origin: center;
}

/* --- Action Buttons --- */
.game-actions-floating {
  position: absolute;
  bottom: calc(140px + var(--safe-bottom));
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
    z-index: 30;
}

.btn-game {
  width: 60px;
  height: 60px;
    border-radius: 50%;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
    padding: 0;
    line-height: 1.05;
}
.btn-game:active { transform: scale(0.95); }
.btn-game:disabled { opacity: 0.55; filter: grayscale(1); }
.btn-game span { line-height: 1.05; }

.btn-transfer-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  display: none !important; /* Убрана - заменена на слот */
}

.btn-transfer-toggle.active {
  background: rgba(247, 185, 28, 0.16);
  border-color: rgba(247, 185, 28, 0.35);
  color: rgba(255, 255, 255, 0.98);
}

/* --- Transfer Slot (переводной режим) --- */
.transfer-slot {
  width: 70px;
  height: 100px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 100ms ease-out;
  margin-left: 8px;
  flex-shrink: 0;
}

.transfer-slot:hover {
  border-color: rgba(247, 185, 28, 0.5);
  background: rgba(247, 185, 28, 0.1);
}

.transfer-slot:active {
  transform: scale(0.95);
}

.transfer-slot.active {
  border-color: var(--primary);
  border-style: solid;
  background: rgba(247, 185, 28, 0.15);
  box-shadow: 0 0 12px rgba(247, 185, 28, 0.3);
}

.transfer-slot i {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.transfer-slot.active i {
  color: var(--primary);
}

.transfer-slot span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.transfer-slot.active span {
  color: var(--primary);
}

/* --- Bottom Nav (из @primer, адаптация) --- */
.bottom-nav {
  height: var(--nav-height);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  width: auto;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(28, 28, 30, 0.80);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);

  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 18px;
    z-index: 50;
}

.nav-item {
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
    cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-size: 24px;
  line-height: 1;
  border-radius: 16px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.10s ease;
}

/* bootstrap btn-link overrides */
.bottom-nav .btn.btn-link.nav-item {
    text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
}

.bottom-nav .btn.btn-link.nav-item.active,
.nav-item.active {
  color: white;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.nav-item:active { transform: scale(0.96); }
.nav-item:hover { color: rgba(255, 255, 255, 0.92); }

/* Animations */
@keyframes dealCard {
    from { transform: translate(-100vw, -100vh) rotate(720deg); opacity: 0; }
    to { opacity: 1; }
}
.animate-deal { animation: dealCard 0.5s ease-out backwards; }

/* --- FRIENDS PAGE --- */
.friends-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-height) + 28px);
}

.friends-content .section {
  margin-top: 0;
  margin-bottom: 16px;
}

.friends-content .section-title {
  padding-top: 10px;
}

/* Friend item styling */
.friend-item {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 50ms ease-out, background-color 80ms ease-out;
}

.friend-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.friend-item:active {
  transform: scale(0.99);
}

.friend-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.friend-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.friend-item-info {
  min-width: 0;
  flex: 1;
}

.friend-item-name {
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-item-username {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.friend-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.10s ease, background-color 0.15s ease;
  font-size: 16px;
}

.friend-action-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.friend-action-btn:active {
  transform: scale(0.96);
}

.friend-action-btn.accept {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.friend-action-btn.decline {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.friend-action-btn.invite {
  background: rgba(247, 185, 28, 0.2);
  border-color: rgba(247, 185, 28, 0.4);
  color: var(--primary);
}

/* Search results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.search-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}

.search-result-info {
  min-width: 0;
}

.search-result-name {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-username {
  font-size: 11px;
  color: var(--text-muted);
}

.search-result-btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.10s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.search-result-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.search-result-btn:active {
  transform: scale(0.96);
}

.search-result-btn.added {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
  cursor: default;
}

.search-result-btn.pending {
  background: rgba(247, 185, 28, 0.15);
  border-color: rgba(247, 185, 28, 0.3);
  color: var(--primary);
  cursor: default;
}

/* Empty state */
.friends-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
}

.friends-empty i {
  font-size: 48px;
  opacity: 0.5;
  margin-bottom: 10px;
}

/* Clickable profile items in leaderboard */
.lobby-item.clickable {
  cursor: pointer;
}

.lobby-item.clickable:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* --- NOTIFICATIONS --- */
.notifications-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Notification badge on nav items */
.nav-item {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  animation: badge-pulse 2s ease-in-out infinite;
}

.notification-badge.hidden {
  display: none;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Notification item */
.notification-item {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 50ms ease-out, background-color 80ms ease-out;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
  border-left: 3px solid var(--primary);
  background: rgba(247, 185, 28, 0.05);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notification-icon.friend {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.notification-icon.game {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.notification-icon.money {
  background: rgba(247, 185, 28, 0.2);
  color: var(--primary);
}

.notification-icon.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notification-amount {
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

.notification-amount.positive {
  color: #22c55e;
}

.notification-amount.negative {
  color: #ef4444;
}

/* Clickable notifications */
.notification-item.clickable {
  cursor: pointer;
}

.notification-item.clickable:active {
  transform: scale(0.98);
}

.notification-arrow {
  color: var(--text-muted);
  font-size: 16px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Empty notifications state */
.notifications-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.notifications-empty i {
  font-size: 48px;
  opacity: 0.4;
  margin-bottom: 12px;
}
