/**
 * Landing Page Styles
 * Kingshot Alliance Tools
 *
 * Landing-specific styles that extend the shared design system.
 * This file contains ONLY styles unique to the landing page.
 *
 * Dependencies:
 * - /shared/styles/reset.css
 * - /shared/styles/tokens.css
 * - /shared/styles/typography.css
 * - /shared/styles/layout.css
 * - /shared/styles/components.css
 * - /shared/styles/utilities.css
 * - /shared/styles/icons.css
 */

/* ========================================
   VIEW SWITCHING
   ======================================== */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Auth view needs flex display for centering */
.view.auth-view.active {
  display: flex;
}

/* Dashboard view uses app shell layout */
.view.app {
  display: none;
}

.view.app.active {
  display: block;
}

/* ========================================
   AUTH VIEW
   ======================================== */
.auth-view {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  overflow: hidden;
}

/* Auth Background Glow Effect */
.auth-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bg-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 92, 255, 0.2) 0%,
    rgba(34, 211, 238, 0.08) 40%,
    transparent 70%
  );
  filter: blur(80px);
}

.auth-bg-glow::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 92, 255, 0.1) 0%,
    transparent 60%
  );
  filter: blur(100px);
}

/* Light theme glow adjustments */
html[data-theme="light"] .auth-bg-glow::before {
  background: radial-gradient(
    ellipse at center,
    rgba(107, 70, 229, 0.1) 0%,
    rgba(34, 211, 238, 0.04) 40%,
    transparent 70%
  );
}

html[data-theme="light"] .auth-bg-glow::after {
  background: radial-gradient(
    ellipse at center,
    rgba(107, 70, 229, 0.06) 0%,
    transparent 60%
  );
}

/* Auth Theme Toggle (top-right corner) */
.auth-theme-toggle {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r12);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 100;
}

.auth-theme-toggle:hover {
  background: var(--surface2);
  color: var(--text);
}

.auth-theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.auth-theme-toggle .icon-sun {
  display: none;
}

.auth-theme-toggle .icon-moon {
  display: block;
}

html[data-theme="light"] .auth-theme-toggle .icon-sun {
  display: block;
}

html[data-theme="light"] .auth-theme-toggle .icon-moon {
  display: none;
}

/* Centered Container */
.auth-centered {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand / Logo */
.auth-brand {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.auth-logo span {
  color: var(--accent);
}

.auth-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-top: var(--space-1);
}

/* Auth Card (extends .card) */
.auth-card {
  width: 100%;
  border-radius: var(--r20);
}

.auth-card .card-b {
  padding: var(--space-5);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--surface);
  padding: var(--space-1);
  gap: var(--space-1);
}

.auth-tab {
  flex: 1;
  padding: var(--space-3);
  background: transparent;
  border: none;
  border-radius: var(--r8);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.auth-tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

/* Auth Tab Content */
.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.auth-divider span {
  font-size: 0.85rem;
  color: var(--faint);
}

/* Auth Hint / Demo Link */
.auth-hint {
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
  margin-top: var(--space-3);
}

.auth-demo-link {
  text-align: center;
  margin-top: var(--space-4);
}

/* Auth Message */
#authMessage:not(:empty) {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r12);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
}

#authMessage.error {
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

#authMessage.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

#authMessage.info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid var(--info);
  color: var(--info);
}

/* Field Row (input + button side by side) */
.field-row {
  display: flex;
  gap: var(--space-2);
}

.field-row .control {
  flex: 1;
  min-width: 0;
}

/* Discord Button */
.btn.discord {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5865F2;
  color: white;
  border-color: #5865F2;
}

.btn.discord svg {
  flex-shrink: 0;
}

.btn.discord:hover {
  background: #4752C4;
  border-color: #4752C4;
}

/* Alliance Grid (Auth Context) */
.auth-view .alliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.auth-view .alliance-option {
  background: var(--surface);
  border: 2px solid var(--stroke);
  border-radius: var(--r12);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.auth-view .alliance-option:hover {
  border-color: var(--stroke-strong);
  background: var(--surface2);
}

.auth-view .alliance-option.selected {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
}

.auth-view .alliance-option:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ========================================
   SERVER SEARCH (Auth Context)
   ======================================== */

.auth-view .server-search-wrapper {
  position: relative;
  width: 100%;
}

.auth-view .server-search-input {
  width: 100%;
  padding-right: var(--space-8);
}

.auth-view .server-search-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

/* Dropdown container */
.auth-view .server-search-dropdown {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r12);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    visibility var(--duration-fast);
}

.auth-view .server-search-dropdown[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Empty state */
.auth-view .server-search-empty {
  padding: var(--space-6);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Result items */
.auth-view .server-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap); /* 44px for mobile */
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  border-bottom: 1px solid var(--stroke);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.auth-view .server-search-item:last-child {
  border-bottom: none;
}

.auth-view .server-search-item:hover {
  background: var(--surface);
}

.auth-view .server-search-item.highlighted {
  background: var(--surface2);
  border-left: 3px solid var(--accent);
}

.auth-view .server-search-item[aria-selected="true"] {
  background: rgba(124, 92, 255, 0.1);
  border-left: 3px solid var(--accent);
}

/* Item content */
.auth-view .server-search-item-name {
  font-weight: 500;
  color: var(--text);
}

.auth-view .server-search-item-id {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}

/* Helper text */
.auth-view #serverSearchHelper {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-view #serverSearchSelectedName {
  color: var(--accent);
  font-weight: 500;
}

/* Mobile optimizations */
@media (max-width: 599px) {
  .auth-view .server-search-dropdown {
    max-height: 300px;
  }

  .auth-view .server-search-item {
    padding: var(--space-4);
  }
}

.auth-view .alliance-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.auth-view .alliance-name {
  font-size: 0.7rem;
  color: var(--faint);
  margin-top: var(--space-1);
}

/* Auth responsive */
@media (max-width: 480px) {
  .auth-view {
    padding: var(--space-3);
  }

  .auth-card .card-b {
    padding: var(--space-4);
  }

  .field-row {
    flex-direction: column;
  }

  .field-row .btn {
    width: 100%;
  }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: var(--panel);
  border-radius: var(--r12);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--stroke);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  pointer-events: auto;
  animation: toastSlideIn var(--duration-normal) var(--ease-out);
  transition: all var(--duration-normal) var(--ease-out);
}

.toast.removing {
  animation: toastSlideOut var(--duration-normal) var(--ease-out) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

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

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--muted);
  word-wrap: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.toast-close:hover {
  opacity: 1;
}

/* Toast variants */
.toast.error {
  border-left-color: var(--error);
}

.toast.error .toast-icon,
.toast.error .toast-title {
  color: var(--error);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.success .toast-icon,
.toast.success .toast-title {
  color: var(--success);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.warning .toast-icon,
.toast.warning .toast-title {
  color: var(--warning);
}

.toast.info {
  border-left-color: var(--info);
}

.toast.info .toast-icon,
.toast.info .toast-title {
  color: var(--info);
}

@media (max-width: 599px) {
  .toast-container {
    left: var(--space-3);
    right: var(--space-3);
    max-width: none;
  }
}

/* ========================================
   TOOL ICON (Dashboard Cards)
   ======================================== */
.tool-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon .icon {
  width: 2rem;
  height: 2rem;
}

/* ========================================
   ALLIANCE SELECTOR (Dashboard Context)
   ======================================== */
.alliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.alliance-option {
  background: var(--surface);
  border: 2px solid var(--stroke);
  border-radius: var(--r12);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.alliance-option:hover {
  border-color: var(--stroke-strong);
}

.alliance-option.selected {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
}

.alliance-code {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.alliance-name {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: var(--space-1);
}

/* ========================================
   USER LIST (Manage Members Modal)
   ======================================== */
#usersList {
  max-height: 60vh;
  overflow-y: auto;
}

.user-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--surface);
  border-radius: var(--r12);
  margin-bottom: var(--space-2);
}

.user-list-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-list-avatar {
  width: 36px;
  height: 36px;
  background: var(--info);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.user-list-details {
  display: flex;
  flex-direction: column;
}

.user-list-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-list-username {
  font-size: 0.75rem;
  color: var(--faint);
}

.user-list-role {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.role-select {
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--r8);
  color: var(--text);
  font-size: 0.8rem;
}

/* Role Badges */
.role-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.role-badge.super_admin {
  background: rgba(251, 113, 133, 0.15);
  color: var(--error);
}

.role-badge.server_admin {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.role-badge.r5 {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.role-badge.r4 {
  background: rgba(96, 165, 250, 0.15);
  color: var(--info);
}

.role-badge.member {
  background: var(--surface);
  color: var(--faint);
}

/* Status Badges */
.status-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.status-badge.approved {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.status-badge.rejected {
  background: rgba(251, 113, 133, 0.15);
  color: var(--error);
}

/* ========================================
   INVITE CODES
   ======================================== */
.invite-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.invite-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r12);
  padding: var(--space-4);
}

.invite-item .invite-code {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.invite-item .invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--faint);
}

.invite-item .invite-meta span {
  background: var(--bg);
  padding: 2px var(--space-2);
  border-radius: var(--r4);
}

.invite-item .invite-meta .auto-approve {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.invite-item .invite-actions {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
}

/* Invite Code Info (Registration) */
.invite-code-info {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r12);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.invite-code-info.valid {
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.1);
}

.invite-code-info h4 {
  margin: 0 0 var(--space-2);
  font-size: 0.9rem;
}

.invite-code-info p {
  margin: var(--space-1) 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========================================
   GAME ACCOUNT VERIFICATION
   ======================================== */
.game-verify-result {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r12);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.game-verify-result.success {
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.1);
}

.game-verify-result .player-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.game-verify-result .player-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg);
}

.game-verify-result .player-details h4 {
  margin: 0 0 var(--space-1);
  font-size: 1rem;
}

.game-verify-result .player-details span {
  font-size: 0.85rem;
  color: var(--faint);
}

/* ========================================
   ANNOUNCEMENTS
   ======================================== */
.announcement-card {
  background: var(--panel);
  border-radius: var(--r16);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  border-left: 4px solid var(--info);
  position: relative;
}

.announcement-card.server {
  border-left-color: var(--warning);
}

.announcement-card.alliance {
  border-left-color: var(--info);
}

.announcement-card.priority-high {
  border-left-color: #f97316;
}

.announcement-card.priority-urgent {
  border-left-color: var(--error);
  background: rgba(251, 113, 133, 0.05);
}

.announcement-card.unread {
  background: rgba(96, 165, 250, 0.08);
}

.announcement-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-2);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.announcement-title {
  flex: 1;
  min-width: 150px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: 0.75rem;
  color: var(--faint);
}

.announcement-badge {
  padding: 2px var(--space-2);
  border-radius: var(--r-full);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.announcement-badge.server {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.announcement-badge.alliance {
  background: rgba(96, 165, 250, 0.15);
  color: var(--info);
}

.announcement-badge.priority-high {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.announcement-badge.priority-urgent {
  background: rgba(251, 113, 133, 0.15);
  color: var(--error);
}

.announcement-content {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.announcement-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
  margin-left: auto;
}

.announcement-action-btn {
  background: none;
  border: none;
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  color: var(--faint);
  font-size: 0.8rem;
  border-radius: var(--r4);
  transition: all var(--duration-fast);
}

.announcement-action-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.announcement-action-btn.delete:hover {
  color: var(--error);
}

.announcements-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--faint);
  font-size: 0.9rem;
}

/* ========================================
   LOADING VIEW
   ======================================== */
.loading-view.active {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-view .logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.loading-view .logo span {
  color: var(--accent);
}

/* ========================================
   BUTTON LOADING STATE
   (Extends shared button with spinner overlay)
   ======================================== */
.btn.loading {
  position: relative;
  pointer-events: none;
}

.btn.loading .btn-text {
  visibility: hidden;
}

.btn.loading .btn-spinner {
  display: inline-block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ========================================
   PULSE ANIMATION
   ======================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .alliance-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .alliance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Small tablet / large phone (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .alliance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (below 600px) */
@media (max-width: 599px) {
  .alliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ========================================
   TOGGLE LABEL (Checkbox with text)
   ======================================== */
.toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.toggle-text {
  font-size: 0.9rem;
  color: var(--text);
}

/* ========================================
   AVATAR COMPONENTS
   ======================================== */
.avatar-wrapper {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  font-weight: 600;
  color: var(--text-muted);
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.avatar-img.loaded {
  opacity: 1;
}
