/* ==========================================================================
   HatoHato Social - Modern Design System (Vanilla CSS)
   Dual Themes: 'dark' (Slate/Violet) & 'night' (AMOLED Pure Black)
   Accents: Vibrant Purple Spectrum
   Font: JK Maru Gothic (Embedded)
   ========================================================================== */

@font-face {
  font-family: "JK Maru Gothic";
  src: url("./JK-Maru-Gothic-M.otf") format("opentype"),
       url("../JK-Maru-Gothic-M.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "JK Maru Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Brand Purple Spectrum */
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-glow: rgba(139, 92, 246, 0.28);
  --purple-tint: rgba(139, 92, 246, 0.12);

  /* Semantic Filled Icon Colors */
  --icon-home: #a855f7;
  --icon-profile: #c084fc;
  --icon-like: #f43f5e;
  --icon-comment: #34d399;
  --icon-media: #10b981;
  --icon-admin: #eab308;
  --icon-quota: #fb923c;
  --icon-notifications: #fbbf24;
  --icon-theme: #c084fc;
  --icon-logout: #f87171;
  --icon-danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   THEMES: Dark (Dim) & Night (AMOLED)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-base: #0f111a;
  --bg-surface: #181926;
  --bg-surface-elevated: #222336;
  --bg-surface-hover: #2a2b42;
  --bg-input: #121320;
  --border-subtle: #2b2d42;
  --border-hover: #3d405e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --header-glass: rgba(15, 17, 26, 0.85);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.5);
  --toast-bg: #1e2033;
}

[data-theme="night"] {
  --bg-base: #000000;
  --bg-surface: #101014;
  --bg-surface-elevated: #19191e;
  --bg-surface-hover: #22222a;
  --bg-input: #0a0a0d;
  --border-subtle: #24242d;
  --border-hover: #363642;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --header-glass: rgba(0, 0, 0, 0.88);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.7);
  --shadow-elevated: 0 10px 35px rgba(0, 0, 0, 0.85);
  --toast-bg: #16161b;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* Covers the page until Firebase has restored the persisted auth session. */
.initial-loading-screen {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-base);
  color: var(--text-main);
}

.initial-loading-content {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.initial-loading-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  box-shadow: 0 0 30px var(--purple-glow);
}

.initial-loading-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--purple-400);
  border-radius: 50%;
  animation: initial-loading-spin 0.8s linear infinite;
}

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

.initial-loading-screen.is-ready {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--purple-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--purple-300);
  text-decoration: underline;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 2px;
}

img, video {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   ICON UTILITIES (Colored & Filled)
   -------------------------------------------------------------------------- */
.icon-home { color: var(--icon-home) !important; }
.icon-profile { color: var(--icon-profile) !important; }
.icon-like { color: var(--icon-like) !important; }
.icon-comment { color: var(--icon-comment) !important; }
.icon-media { color: var(--icon-media) !important; }
.icon-admin { color: var(--icon-admin) !important; }
.icon-quota { color: var(--icon-quota) !important; }
.icon-notifications { color: var(--icon-notifications) !important; }
.icon-theme { color: var(--icon-theme) !important; }
.icon-logout { color: var(--icon-logout) !important; }
.icon-danger { color: var(--icon-danger) !important; }
.icon-purple { color: var(--purple-400) !important; }

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background-color: var(--toast-bg);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--purple-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 360px;
  animation: toastSlideIn 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-error {
  border-left-color: var(--icon-danger);
}
.toast.toast-success {
  border-left-color: var(--icon-media);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   AUTH & ONBOARDING (Logged-Out State)
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top center, rgba(139, 92, 246, 0.12), transparent 50%), var(--bg-base);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.auth-back-btn:hover {
  color: var(--text-main);
  border-color: var(--purple-500);
  transform: translateX(-2px);
}

.guest-card {
  padding: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.guest-composer-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.feed-guest-prompt {
  margin: 2rem 1.25rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.feed-guest-prompt i {
  font-size: 2.2rem;
  color: var(--purple-400);
  margin-bottom: 0.25rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 16px var(--purple-glow);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(--bg-base);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  padding: 0.55rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-align: center;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background-color: var(--bg-surface-elevated);
  color: var(--purple-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px var(--purple-glow);
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px var(--purple-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.theme-toggle-inline:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

/* ==========================================================================
   AUTHENTICATION EXPERIENCE (Desktop Split-Screen with 50% Fade Background)
   Fits entirely on screen with zero page-level scrollbars
   ========================================================================== */
.auth-body {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-base);
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.auth-page-wrapper {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Unified Top Navigation Bar across the entire Auth Screen */
.auth-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  pointer-events: none;
}

.auth-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  pointer-events: auto;
}

.auth-brand-pill i {
  color: var(--purple-400);
  font-size: 1.25rem;
}

.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.auth-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-theme-toggle:hover {
  color: var(--text-main);
  border-color: var(--purple-500);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Main Split Layout: 50% / 50% split on desktop */
.auth-split-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Left: Fixed Background Area (Hidden on mobile) */
.auth-bg-side {
  display: none;
}

/* Right: Auth Form Panel (Centered, fits entirely on screen) */
.auth-form-side {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4.5rem 1.5rem 1.5rem;
  position: relative;
  background-color: var(--bg-base);
  box-sizing: border-box;
  overflow-y: auto;
}

/* Compact Auth Card tailored to fit entirely on screen */
.auth-card {
  width: 100%;
  max-width: 410px;
  margin: auto;
  border-radius: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.65rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 4px 12px var(--purple-glow);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.auth-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Compact Tab Navigation */
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background-color: var(--bg-base);
  padding: 3px;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.25rem;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.auth-tab-btn i {
  font-size: 0.75rem;
}

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

.auth-tab-btn.active {
  background-color: var(--bg-surface-elevated);
  color: var(--purple-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

/* Compact Form Groups and Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-leading-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  pointer-events: none;
  transition: color var(--transition-fast);
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 0.52rem 0.8rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input.has-leading-icon {
  padding-left: 2.3rem;
}

.form-input.has-trailing-icon {
  padding-right: 2.4rem;
}

.input-with-icon:focus-within .input-leading-icon {
  color: var(--purple-400);
}

.input-trailing-action {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 0.3rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  z-index: 2;
}

.input-trailing-action:hover {
  color: var(--text-main);
}

.form-helper-text {
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.uppercase-input {
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Primary Button */
.auth-submit-btn {
  width: 100%;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  padding: 0.62rem 1rem;
  cursor: pointer;
  border: none;
}

/* Switch Prompt */
.auth-switch-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.auth-inline-link {
  background: none;
  border: none;
  color: var(--purple-400);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.auth-inline-link:hover {
  color: var(--purple-300);
}

/* Info Callout for Request Tab */
.auth-info-banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  margin-bottom: 0.2rem;
}

.auth-info-icon-wrap {
  color: var(--purple-400);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-info-text strong {
  font-size: 0.76rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.12rem;
}

.auth-info-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

/* Bottom Card Security Footer */
.auth-footer-bar {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.auth-footer-bar i {
  font-size: 0.72rem;
}

/* ==========================================================================
   DESKTOP 50% SPLIT SCREEN WITH SEAMLESS 50% WIDTH FADE-OUT
   ========================================================================== */
@media (min-width: 992px) {
  .auth-split-layout {
    display: grid;
    /* Exactly 50% left, 50% right */
    grid-template-columns: 50% 50%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  /*
    Fixed Background Area (Spans 0% to 50% of the screen width).
    Fades out as it reaches 50% of screen width (the right edge of this 50% column).
  */
  .auth-bg-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 2.5rem 3.5rem;
    position: relative;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    box-sizing: border-box;
    background-color: transparent;

    /* Background image with fixed attachment going all the way to top edge */
    background-image: var(
      --auth-bg-image,
      radial-gradient(circle at 18% 25%, rgba(139, 92, 246, 0.42) 0%, transparent 60%),
      radial-gradient(circle at 55% 70%, rgba(109, 40, 217, 0.45) 0%, transparent 65%),
      linear-gradient(145deg, #181926 0%, #0f111a 100%)
    );
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Mask image: smoothly fades to 100% transparency when reaching 50% screen width (the right edge of this panel) */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.15) 85%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.15) 85%, rgba(0, 0, 0, 0) 100%);
  }

  /* Horizontal and vertical fade-out overlay blending into --bg-base */
  .auth-bg-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right, transparent 0%, transparent 25%, rgba(15, 17, 26, 0.7) 70%, var(--bg-base) 100%),
      linear-gradient(180deg, rgba(15, 17, 26, 0.1) 0%, rgba(15, 17, 26, 0.5) 60%, rgba(15, 17, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .auth-bg-bottom-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
  }

  .auth-bg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
  }

  .auth-bg-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.55rem;
  }

  .auth-bg-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
  }

  .auth-form-side {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-base);
    overflow-y: auto;
  }
}

/* Night (AMOLED Pure Black) Mode Adjustments */
[data-theme="night"] .auth-page-wrapper,
[data-theme="night"] .auth-form-side {
  background-color: #000000;
}

[data-theme="night"] .auth-bg-side {
  background-image: var(
    --auth-bg-image,
    radial-gradient(circle at 18% 25%, rgba(139, 92, 246, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 55% 70%, rgba(109, 40, 217, 0.35) 0%, transparent 65%),
    linear-gradient(145deg, #101014 0%, #000000 100%)
  );
}

[data-theme="night"] .auth-bg-overlay {
  background:
    linear-gradient(to right, transparent 0%, transparent 25%, rgba(0, 0, 0, 0.75) 70%, #000000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 60%, #000000 100%);
}

/* --------------------------------------------------------------------------
   3-COLUMN SOCIAL APP SHELL (Desktop)
   -------------------------------------------------------------------------- */
.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 620px) 300px;
  justify-content: center;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100vh;
}

/* LEFT NAVIGATION */
.sidebar-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.5rem 1.25rem 0;
  border-right: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.nav-brand i {
  color: var(--purple-400);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  transition: all var(--transition-fast);
}

.nav-item-btn i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.nav-item-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

.nav-item-btn.active {
  color: var(--text-main);
  background-color: var(--purple-tint);
}
.nav-item-btn.active .nav-label {
  color: var(--purple-300);
  font-weight: 700;
}

.nav-compose-btn {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.sidebar-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.user-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-header {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.avatar-nav {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.avatar-mobile {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}

.header-user-session {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.65rem 0.2rem 0.2rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.header-profile-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--purple-500);
  box-shadow: 0 0 0 2px var(--purple-glow);
}
.header-profile-btn.active {
  border-color: var(--purple-500);
  background-color: var(--purple-tint);
}
.header-profile-name {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--icon-logout);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}
.header-logout-btn:hover {
  background-color: rgba(248, 113, 113, 0.15);
  border-color: var(--icon-logout);
}

/* Direct messaging */
.messages-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
  height: calc(100vh - 7rem);
  min-height: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.messages-view { overflow: hidden; }
.messages-people-panel {
  position: relative;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  min-height: 0;
  overflow: hidden;
}
.messages-panel-heading, .conversation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}
.messages-panel-heading { justify-content: space-between; }
.messages-panel-heading h3, .conversation-header h3 { font-size: 1.05rem; }
.messages-panel-heading p, .conversation-handle { color: var(--text-muted); font-size: 0.78rem; }
.messages-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.8rem 0.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-dim);
}
.messages-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-main); }
.messages-people-list { display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.5rem 0.75rem; }
.messages-people-panel.searching .messages-people-list {
  position: absolute;
  z-index: 3;
  top: 6rem;
  right: 0.7rem;
  left: 0.7rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-elevated);
}
.message-person {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.65rem; border-radius: var(--radius-md); text-align: left;
}
.message-person:hover, .message-person.active { background: var(--purple-tint); }
.avatar-message-person { width: 36px; height: 36px; font-size: 0.85rem; }
.message-person-details { display: flex; flex-direction: column; min-width: 0; }
.message-person-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; }
.message-person-details small { display: block; overflow: hidden; color: var(--text-dim); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.messages-list-empty { color: var(--text-dim); font-size: 0.75rem; }
.messages-list-empty { padding: 1rem; text-align: center; }
.conversation-panel { min-width: 0; display: flex; }
.conversation-empty { margin: auto; padding: 2rem; text-align: center; color: var(--text-muted); }
.conversation-empty i { color: var(--purple-400); font-size: 2.4rem; margin-bottom: 0.7rem; }
.conversation-empty h3 { color: var(--text-main); margin-bottom: 0.3rem; }
.conversation-empty p { margin-bottom: 1rem; font-size: 0.85rem; }
.conversation-active { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.conversation-header { border-bottom: 1px solid var(--border-subtle); }
.conversation-back-btn { display: none; color: var(--text-muted); padding: 0.35rem; }
.message-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem; }
.message-bubble { max-width: 78%; padding: 0.6rem 0.8rem; border-radius: 1rem; font-size: 0.86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble.sent { align-self: flex-end; background: var(--purple-600); color: #fff; border-bottom-right-radius: 0.25rem; }
.message-bubble.received { align-self: flex-start; background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-bottom-left-radius: 0.25rem; }
.conversation-messages-empty { margin: auto; color: var(--text-dim); font-size: 0.85rem; }
.message-composer { display: flex; gap: 0.55rem; padding: 0.8rem; border-top: 1px solid var(--border-subtle); }
.message-composer input { flex: 1; min-width: 0; padding: 0.65rem 0.8rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); background: var(--bg-input); outline: 0; }
.message-composer input:focus { border-color: var(--purple-500); }
.message-composer button { min-width: 42px; padding: 0.55rem; }

@media (min-width: 721px) {
  /* The desktop header keeps the page title uncluttered; these actions remain available in the sidebar. */
  .sticky-header .header-user-session,
  .sticky-header #headerSettingsBtn { display: none; }
}

.user-mini-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.2;
}

.user-mini-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-mini-email {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logout-btn {
  margin-left: auto;
  padding: 0.45rem;
  color: var(--icon-logout);
  border-radius: var(--radius-full);
  font-size: 1rem;
}
.user-logout-btn:hover {
  background-color: rgba(248, 113, 113, 0.15);
}

/* --------------------------------------------------------------------------
   CENTER STREAM (Main Feed & Post Composer)
   -------------------------------------------------------------------------- */
.main-column {
  min-height: 100vh;
  border-right: 1px solid var(--border-subtle);
  padding-bottom: 5rem;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: var(--header-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* COMPOSER CARD */
.composer-card {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  gap: 0.9rem;
}

.mobile-header-logo {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mobile-header-logo i { color: var(--purple-400); }

/* Facebook-like Post Composer Trigger Card */
.composer-trigger-card {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem 0.5rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.composer-trigger-card:hover {
  border-color: var(--border-hover);
}

.composer-trigger-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.composer-trigger-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  user-select: none;
}

.composer-trigger-input:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--text-main);
}

.composer-trigger-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.75rem 0 0.35rem;
}

.composer-trigger-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.trigger-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all var(--transition-fast);
}

.trigger-action-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
}

.icon-media-green {
  color: #22c55e !important;
  font-size: 1.1rem;
}

.icon-audience-blue {
  color: #38bdf8 !important;
  font-size: 1rem;
}

.icon-thought-purple {
  color: var(--purple-400) !important;
  font-size: 1rem;
}
/* ==========================================================================
   RESTYLED FACEBOOK-LIKE COMPOSER POPUP
   ========================================================================== */
.composer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.composer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.composer-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-height: min(90vh, 680px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: modalSlideUp 200ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.composer-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.composer-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  text-align: center;
}

.composer-modal-header .modal-icon-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
}

.composer-modal-header .modal-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  transform: translateY(-50%) scale(1.05);
}

.composer-modal-card .composer-card {
  border-bottom: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* User identity header inside popup */
.composer-user-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.composer-user-row .avatar-circle {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  border: 2px solid var(--border-subtle);
}

.composer-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.composer-user-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

/* Facebook-like Audience Selector Pill & Dropdown */
.post-visibility-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.7rem 0.28rem 0.65rem;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.post-visibility-control:hover,
.post-visibility-control:focus-within {
  background: var(--bg-surface-hover);
  border-color: var(--purple-400);
  box-shadow: 0 0 0 2px var(--purple-glow), 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.5px);
}

.post-visibility-control i:first-child {
  color: #38bdf8;
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.post-visibility-control select {
  border: none;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0.08rem 0.15rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.post-visibility-control select:focus {
  outline: none;
}

/* Styled Dropdown Options */
.post-visibility-control select option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
}

[data-theme="dark"] .post-visibility-control select option {
  background-color: #1a1b2b;
  color: #f8fafc;
}

[data-theme="night"] .post-visibility-control select option {
  background-color: #121217;
  color: #ffffff;
}

.post-visibility-control .visibility-arrow {
  font-size: 0.62rem;
  color: var(--text-muted);
  pointer-events: none;
  margin-left: 2px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.post-visibility-control:hover .visibility-arrow,
.post-visibility-control:focus-within .visibility-arrow {
  color: var(--purple-300);
  transform: translateY(1px);
}
.post-visibility-control:active {
  transform: translateY(0);
  box-shadow: 0 0 0 2px var(--purple-glow);
}

/* Textarea styling */
.composer-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 240px;
  background: transparent;
  border: none;
  resize: none;
  color: var(--text-main);
  font-size: 1.12rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  box-sizing: border-box;
}

.composer-textarea::placeholder {
  color: var(--text-dim);
  font-size: 1.12rem;
}

.composer-textarea:focus {
  outline: none;
}

/* Facebook-style 'Add to your post' Toolbar */
.composer-add-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  margin: 0.75rem 0 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.composer-add-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.composer-add-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.composer-add-actions .composer-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.composer-add-actions .composer-tool-btn:hover {
  background: rgba(34, 197, 94, 0.16);
  transform: scale(1.1);
}

.composer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.composer-char-box {
  display: flex;
  justify-content: flex-end;
}

.btn-post-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--purple-glow);
  transition: all var(--transition-fast);
}

.btn-post-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--purple-glow);
}

@media (max-width: 600px) {
  .composer-modal-overlay { padding: 1rem; }
  .composer-modal-card {
    width: 100%;
    max-height: 90vh;
    min-height: 0;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 720px) {
  .mobile-header-logo:not([hidden]) { display: flex; }
  .page-title.mobile-feed-title { display: none; }
  .auth-body .auth-navbar,
  .auth-body .auth-footer-bar {
    display: none !important;
  }
}

.composer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.composer-textarea {
  width: 100%;
  min-height: 85px;
  background: transparent;
  border: none;
  resize: vertical;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.45;
}
.composer-textarea::placeholder {
  color: var(--text-dim);
}
.composer-textarea:focus {
  outline: none;
}

/* Media Attachment Previews in Composer */
.media-preview-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.media-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
}

.media-preview-item img,
.media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.media-preview-remove:hover {
  background: var(--icon-danger);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.composer-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--icon-media);
  background-color: var(--bg-surface-elevated);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.composer-tool-btn:hover {
  background-color: rgba(16, 185, 129, 0.18);
  transform: scale(1.05);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.char-counter {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.char-counter.warning {
  color: var(--icon-quota);
}
.char-counter.danger {
  color: var(--icon-danger);
  font-weight: 700;
}

.btn-post {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   POST FEED & SOCIAL CARDS
   -------------------------------------------------------------------------- */
.feed-empty-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.feed-empty-state i {
  font-size: 2.5rem;
  color: var(--purple-400);
  margin-bottom: 0.75rem;
}

.post-card {
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  margin-bottom: 1.15rem;
  display: flex;
  gap: 1.1rem;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.post-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.post-card.post-highlight {
  animation: postHighlightGlow 2.5s ease-out;
  border-color: var(--purple-400);
}

@keyframes postHighlightGlow {
  0% {
    box-shadow: 0 0 0 4px var(--purple-glow), 0 8px 28px rgba(139, 92, 246, 0.35);
  }
  100% {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  }
}

.avatar-circle.post-avatar {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-circle.post-avatar:hover {
  border-color: var(--purple-400);
  box-shadow: 0 0 10px var(--purple-glow);
  transform: scale(1.05);
}

.avatar-circle.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.post-card-main {
  flex: 1;
  min-width: 0;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}

.post-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.post-author-top-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.post-author-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.post-author-name[style*="cursor: pointer"]:hover {
  color: var(--purple-300);
  text-decoration: underline;
}

.post-author-handle {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 500;
}

.post-author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

.post-author-sub-row {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.post-meta-dot {
  color: var(--text-dim);
  font-size: 0.75rem;
  user-select: none;
}

.post-timestamp {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-timestamp:hover {
  color: var(--text-muted);
  cursor: default;
}

/* Facebook-like Visibility Indicator Badge on Posts */
.post-visibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.74rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  cursor: help;
}

.post-visibility-badge:hover {
  color: var(--purple-400);
  transform: scale(1.18);
}

.post-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-body-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.post-link {
  color: var(--purple-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  transition: color var(--transition-fast);
}

.post-link:hover {
  color: var(--purple-300);
}

.post-hashtag {
  color: #38bdf8;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.post-hashtag:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.post-mention {
  color: var(--purple-300);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.post-mention:hover {
  color: #e9d5ff;
  text-decoration: underline;
}

/* RESPONSIVE MEDIA GRID */
.post-media-grid {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.95rem;
  display: grid;
  gap: 6px;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.post-media-grid.grid-1 {
  grid-template-columns: 1fr;
  max-height: 480px;
}

.post-media-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
}

.post-media-grid.grid-3 {
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 16 / 9;
}

.post-media-grid.grid-3 .media-item:first-child {
  grid-row: span 2;
}

.post-media-grid.grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
}

.media-item {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-surface-elevated);
  overflow: hidden;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  cursor: zoom-in;
}

.media-item img:hover {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   FACEBOOK-LIKE STATS & 3-ACTION BAR
   ========================================================================== */

/* Facebook-style Reaction & Comments Summary Bar */
.post-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.25rem 0.55rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.post-stats-likes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-stats-reaction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), #3b82f6);
  color: #ffffff;
  font-size: 0.65rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.post-stats-likes-count {
  font-weight: 600;
  color: var(--text-muted);
}

.post-stats-comments {
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.post-stats-comments:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Facebook-style 3-Action Bar (Like / Comment / Share) */
.post-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
  margin-top: 0.25rem;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.post-action-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

.post-action-btn.btn-like:hover {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.post-action-btn.btn-like.liked {
  color: #3b82f6;
  font-weight: 700;
}

.post-action-btn.btn-like.liked i {
  animation: fbLikePop 320ms cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes fbLikePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(-10deg); }
  100% { transform: scale(1); }
}

.post-action-btn.btn-comment:hover {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.1);
}

.post-action-btn.btn-share:hover,
.post-action-btn.btn-share.share-active {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

.post-action-btn.btn-share:hover i {
  transform: translateY(-2px);
  transition: transform 150ms ease;
}

.share-container {
  flex: 1;
  display: flex;
  position: relative;
}

.share-container .post-action-btn {
  width: 100%;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.75rem;
  transition: all var(--transition-fast);
  background-color: transparent;
  border: 1px solid transparent;
}

.action-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.action-btn.btn-delete:hover {
  color: var(--icon-danger);
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
}

/* --------------------------------------------------------------------------
   SHARE BUTTON & POPOVER
   -------------------------------------------------------------------------- */
.share-container {
  position: relative;
  display: inline-block;
}

.share-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 0.4rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(16px);
  animation: sharePopoverIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sharePopoverIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.share-popover-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.share-popover-item:hover {
  background-color: var(--purple-tint);
  color: var(--purple-300);
}

.share-popover-item i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: var(--purple-400);
  transition: color var(--transition-fast);
}

.share-popover-item:hover i {
  color: var(--purple-300);
}

.text-success {
  color: #34d399 !important;
}

/* --------------------------------------------------------------------------
   INLINE COMMENT DRAWER
   -------------------------------------------------------------------------- */
.comments-drawer {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.comment-bubble {
  flex: 1;
  background-color: var(--bg-base);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--purple-300);
}

.comment-timestamp {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-main);
  word-break: break-word;
}

.comment-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 0.6rem 0.95rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 2px var(--purple-glow);
  outline: none;
}

.comment-submit-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.84rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   MEDIA LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.media-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  animation: fadeIn 200ms ease;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: lightboxZoomIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   RIGHT SIDEBAR (Widgets)
   -------------------------------------------------------------------------- */
.sidebar-widgets {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.widget-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

/* STORAGE QUOTA BAR */
.quota-meter-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quota-meter-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-base);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.quota-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-500), var(--icon-quota));
  border-radius: var(--radius-full);
  transition: width 400ms ease;
}

.quota-meter-fill.warning {
  background: linear-gradient(90deg, var(--icon-quota), #f59e0b);
}
.quota-meter-fill.danger {
  background: linear-gradient(90deg, #f59e0b, var(--icon-danger));
}

.quota-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   PROFILE & ADMIN VIEWS
   -------------------------------------------------------------------------- */
.view-panel {
  padding: 1.5rem 1.25rem;
}

.profile-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   MOBILE NAVIGATION (Sticky Bottom Bar)
   -------------------------------------------------------------------------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--header-glass);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-btn {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0.25rem 0.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-btn i {
  font-size: 1.25rem;
  line-height: 1;
}
.mobile-nav-btn span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.mobile-nav-btn:hover,
.mobile-nav-btn:active {
  color: var(--text-main);
}
.mobile-nav-btn.active {
  color: var(--purple-300);
}

/* --------------------------------------------------------------------------
   NAV ICON WRAP & BADGES
   -------------------------------------------------------------------------- */
.nav-icon-wrap,
.mobile-nav-icon-wrap {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.notification-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.65);
  color: #ffffff;
  font-size: 0.65rem !important;
  line-height: 1.15rem;
  text-align: center;
  font-weight: 800;
  border: 2px solid var(--bg-surface);
  pointer-events: none;
  animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-icon-wrap .notification-badge {
  top: -0.3rem;
  right: -0.45rem;
}

@keyframes badgePop {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   NOTIFICATIONS SYSTEM
   -------------------------------------------------------------------------- */
.notifications-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Header Card (Compact & Streamlined) */
.notifications-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notifications-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.notifications-bell-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.notifications-title {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.notifications-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  padding: 0;
}

.notif-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notif-filter-tab:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
}

.notif-filter-tab.active {
  background: var(--purple-tint);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--purple-300);
  font-weight: 700;
}

.notif-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.notif-filter-tab.active .notif-tab-count {
  background: var(--purple-600);
  color: #ffffff;
}

.notif-header-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-subtle);
}

.btn-mark-all-read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-mark-all-read:hover:not(:disabled) {
  background: var(--purple-tint);
  border-color: var(--purple-500);
  color: var(--purple-300);
  box-shadow: 0 0 8px var(--purple-glow);
}

.btn-mark-all-read:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 580px) {
  .notifications-header-card {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }
  .notifications-header-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-subtle);
  }
  .notif-header-divider {
    display: none;
  }
}

/* Notifications List & Items */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notification-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.notification-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.notification-item.is-unread {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-surface) 100%);
  border-color: rgba(139, 92, 246, 0.32);
  border-left: 3px solid var(--purple-500);
}

[data-theme="night"] .notification-item.is-unread {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, var(--bg-surface) 100%);
}

.notification-item.is-unread:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.14) 0%, var(--bg-surface-elevated) 100%);
  border-color: var(--purple-400);
}

/* Avatar Wrap with Badge */
.notification-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.notification-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-type-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #ffffff;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.notification-type-badge.type-like {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.notification-type-badge.type-comment {
  background: linear-gradient(135deg, #10b981, #059669);
}

.notification-type-badge.type-friend-request {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.notification-type-badge.type-friend-accepted {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

/* Content */
.notification-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.notification-message {
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.notification-actor-name {
  color: var(--text-main);
  font-weight: 700;
  margin-right: 0.25rem;
}

.notification-action-text {
  color: var(--text-muted);
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.notification-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.notification-time i {
  font-size: 0.7rem;
}

.notification-target-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  color: var(--purple-300);
  border: 1px solid var(--border-subtle);
}

/* Trailing Elements */
.notification-trailing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 8px var(--purple-500);
  flex-shrink: 0;
}

.notification-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.notification-item:hover .notification-arrow {
  color: var(--purple-300);
  transform: translateX(3px);
}

/* Skeleton Loading for Notifications */
.notifications-skeleton-stream {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.skeleton-notif-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.skeleton-notif-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-notif-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-notif-line-1 {
  height: 14px;
  width: 60%;
  border-radius: var(--radius-xs);
}

.skeleton-notif-line-2 {
  height: 11px;
  width: 30%;
  border-radius: var(--radius-xs);
}

/* Empty State Card */
.notifications-empty-card {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.empty-notif-illustration {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(251, 191, 36, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--purple-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.notifications-empty-card h3 {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.notifications-empty-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 320px;
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 620px);
  }
  .sidebar-widgets {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .sidebar-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .main-column {
    border-right: none;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    padding-top: 3.2rem;
  }
  .sticky-header {
    position: fixed;
    inset: 0 0 auto;
    min-height: 3.2rem;
    z-index: 200;
  }
  .messages-view {
    /* Remove generic main-column bottom padding so shell fills edge-to-edge */
    padding: 0 !important;
  }
  .messages-shell {
    display: block;
    /* sticky header ~3.2rem + dock ~4rem + safe-area inset */
    height: calc(100dvh - 3.2rem - 4rem - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    max-height: calc(100dvh - 3.2rem - 4rem - env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
  .messages-shell.chat-open .messages-people-panel { display: none; }
  .messages-shell.chat-open .conversation-panel { display: flex; height: 100%; min-height: 0; }
  .messages-shell:not(.chat-open) .conversation-panel { display: none; }
  .conversation-back-btn { display: inline-flex; align-items: center; justify-content: center; }
  .messages-panel-heading { padding: 0.75rem; }
  .messages-panel-heading p, .messages-panel-heading .action-btn { display: none; }
  .messages-panel-heading h3 { font-size: 0.92rem; }
  .messages-search { margin: 0 0.45rem 0.55rem; padding: 0.45rem; }
  .message-person { gap: 0.4rem; padding: 0.5rem 0.35rem; }
  .avatar-message-person { width: 30px; height: 30px; font-size: 0.72rem; }
  .message-person-details strong, .message-person-details small { font-size: 0.7rem; }
  .conversation-panel { min-height: 0; }
  .conversation-active { min-height: 0; height: 100%; }
  .message-list { min-height: 0; max-height: none; flex-basis: 0; }
  .conversation-header { padding: 0.75rem; }
  .conversation-header h3 { font-size: 0.88rem; }
  .conversation-handle { font-size: 0.68rem; }
  .message-bubble { max-width: 90%; font-size: 0.75rem; padding: 0.5rem 0.65rem; }
  .message-composer { padding: 0.55rem; }
  .message-composer input { font-size: 0.75rem; }
}

/* --------------------------------------------------------------------------
   DEDICATED SETTINGS & THEME PICKER
   -------------------------------------------------------------------------- */
.theme-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .theme-picker-grid {
    grid-template-columns: 1fr;
  }
}

.theme-choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-choice-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.theme-choice-card.active {
  border-color: var(--purple-500);
  background-color: var(--purple-tint);
  box-shadow: 0 0 0 2px var(--purple-glow);
}

.theme-choice-preview {
  width: 100%;
  height: 60px;
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
}

.preview-dark {
  background-color: #0f111a;
}
.preview-night {
  background-color: #000000;
}

.preview-bar {
  width: 45%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--purple-500);
}

.preview-bubble {
  width: 70%;
  height: 14px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.12);
}

.theme-choice-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.theme-choice-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.theme-choice-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.theme-choice-check {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.1rem;
  color: var(--purple-500);
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition-fast);
}

.theme-choice-card.active .theme-choice-check {
  opacity: 1;
  transform: scale(1);
}
.avatar-circle img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.avatar-circle,.avatar-large{overflow:hidden;border-radius:50%}.avatar-large img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-body {
  background-color: var(--bg-base);
  min-height: 100vh;
}

.admin-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  min-height: 100vh;
}

.admin-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: var(--header-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}
.admin-brand-link:hover {
  text-decoration: none;
  color: var(--purple-300);
}
.admin-brand-link i {
  color: var(--purple-400);
  font-size: 1.35rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-full);
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.admin-back-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--purple-300);
  text-decoration: none;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.avatar-admin-nav {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-role-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* KPI Cards */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.admin-kpi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.kpi-icon-invites {
  background: rgba(192, 132, 252, 0.15);
  color: var(--purple-300);
}
.kpi-icon-reports {
  background: rgba(239, 68, 68, 0.15);
  color: var(--icon-danger);
}
.kpi-icon-security {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.kpi-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.kpi-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}
.kpi-status-active {
  color: #34d399;
  font-size: 1.15rem;
}
.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Admin Grid */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.admin-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Voucher Card */
.admin-voucher-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(76, 29, 149, 0.25));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  animation: modalSlideUp 200ms ease;
}

.voucher-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.voucher-email-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.voucher-code-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.voucher-code {
  background: var(--bg-base);
  border: 1px solid var(--border-hover);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--purple-300);
}

.voucher-copy-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Requests list */
.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.admin-request-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.request-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.request-email-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.request-mail-icon {
  color: var(--purple-400);
  font-size: 0.85rem;
}

.request-email-text {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.request-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.request-meta-row {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.admin-approve-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Role Management Form */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
}

.admin-input {
  padding-left: 2.6rem !important;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-btn-grant {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--icon-danger);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  transition: all var(--transition-fast);
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--icon-danger);
  transform: translateY(-1px);
}

.admin-result-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Reports Stream */
.admin-report-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color var(--transition-fast);
}
.admin-report-card:hover {
  border-color: var(--border-hover);
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.report-reason-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
}

.report-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.report-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.report-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.report-label {
  color: var(--text-dim);
}
.report-code {
  font-family: var(--font-mono);
  background: var(--bg-base);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.78rem;
}

.report-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.btn-ghost-sm {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}
.btn-ghost-sm:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-main);
}
.report-dismiss-btn:hover {
  border-color: #34d399;
  color: #34d399;
}

/* Empty States */
.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1rem;
  gap: 0.75rem;
}
.empty-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-400);
  font-size: 1.35rem;
}
.empty-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.empty-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 280px;
}

/* ==========================================================================
   SOCIAL MEDIA PROFILE VIEW STYLES
   ========================================================================== */
.profile-view-panel {
  display: flex;
  flex-direction: column;
  width: calc(100% + 2.5rem);
  margin: -1.5rem -1.25rem;
}

/* Profile Banner */
.profile-banner-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b145a 0%, #1e1145 45%, #0f172a 100%);
}

@media (max-width: 600px) {
  .profile-banner-container {
    height: 150px;
  }
}

.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-banner-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 45%),
    linear-gradient(135deg, #2e1065 0%, #1e1b4b 60%, #0f172a 100%);
}

/* Profile Main Content */
.profile-content-area {
  padding: 0 1.25rem 2rem;
  position: relative;
}

.profile-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  margin-bottom: 0.75rem;
}

.profile-avatar-wrapper {
  margin-top: -55px;
  position: relative;
  z-index: 5;
}

.profile-avatar-large {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  border: 4px solid var(--bg-surface) !important;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400)) !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem !important;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

[data-theme="night"] .profile-avatar-large {
  border-color: #000000 !important;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.profile-top-actions {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Visibility control styled in composer section */

.btn-profile-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-profile-edit:hover {
  background: var(--bg-surface-hover);
  border-color: var(--purple-400);
  transform: translateY(-1px);
}
.btn-profile-edit i {
  color: var(--purple-300);
}
#profileMessageBtn {
  min-width: 6.5rem;
  justify-content: center;
}

/* Identity & Details */
.profile-meta-block {
  margin-bottom: 1.15rem;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-name-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.profile-handle-text {
  color: var(--purple-300);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.15rem;
  margin-bottom: 0.75rem;
}

.profile-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.profile-detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-detail-item i {
  color: var(--text-dim);
}

/* Profile Metrics & Quota */
.profile-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.profile-stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.profile-stat-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  transition: background var(--transition-fast);
}
.profile-stat-button:hover {
  background: var(--bg-surface-hover);
}
.profile-stat-button:hover .profile-stat-count,
.profile-stat-button:focus-visible .profile-stat-count {
  color: var(--purple-400);
}
.profile-stat-button:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 2px;
}
.profile-stat-count {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}
.profile-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-quota-box {
  flex: 1;
  min-width: 220px;
}

.friends-list-card { max-width: 460px; }
.friends-list { padding: 0.5rem 1rem 1rem; }
.friends-list-status { padding: 1.5rem 0.5rem; color: var(--text-muted); text-align: center; }
.friend-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.5rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}
.friend-list-item:hover, .friend-list-item:focus-visible { background: var(--bg-base); }
.friend-list-avatar { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; }
.friend-list-person { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.friend-list-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-list-person small { color: var(--text-muted); }

/* Tabs */
.profile-tabs-strip {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.profile-tab-button {
  background: none;
  border: none;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.profile-tab-button.active {
  color: var(--text-main);
}
.tab-active-bar {
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background: var(--purple-500);
  border-radius: var(--radius-full);
}

/* Profile Posts List & Empty State */
.profile-posts-list {
  display: flex;
  flex-direction: column;
}

.profile-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-dove-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-400);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.profile-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
}

/* ==========================================================================
   EDIT PROFILE MODAL STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.modal-icon-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-save-btn {
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
}

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

/* Modal Banner Picker */
.modal-banner-picker {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #1e1b4b;
}

.modal-banner-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4c1d95, #1e1b4b, #0f172a);
}

.modal-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.modal-media-overlay:hover {
  opacity: 1;
}

.modal-upload-action {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-upload-action:hover {
  background: rgba(139, 92, 246, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.03);
}

/* Modal Avatar Picker Row */
.modal-avatar-picker-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem;
  margin-top: -38px;
  position: relative;
  z-index: 10;
  margin-bottom: 1rem;
}

.modal-avatar-preview-wrap {
  flex-shrink: 0;
}

.modal-avatar-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-avatar-fallback {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
}

.modal-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.modal-avatar-overlay:hover {
  opacity: 1;
}

.modal-avatar-action {
  padding: 0.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  justify-content: center;
}

.modal-avatar-hint {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}
.hint-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.hint-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Modal Fields */
.modal-fields {
  padding: 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-count-pill {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.handle-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.handle-prefix {
  position: absolute;
  left: 0.9rem;
  color: var(--purple-400);
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}

.handle-input {
  padding-left: 2rem !important;
}

.modal-status-msg {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid var(--border-subtle);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* ==========================================================================
   LOADING & SKELETON INDICATORS
   ========================================================================== */

/* 1. Global Viewport Top Progress Bar */
.global-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-400), #c084fc);
  box-shadow: 0 0 10px var(--purple-500), 0 0 5px rgba(192, 132, 252, 0.8);
  z-index: 99999;
  transition: width 0.25s ease-out, opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

.global-progress-bar.active {
  opacity: 1;
}

.global-progress-bar.indeterminate {
  opacity: 1;
  width: 100% !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--purple-600) 25%,
    var(--purple-400) 50%,
    #c084fc 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: globalBarIndeterminate 1.4s infinite linear;
}

@keyframes globalBarIndeterminate {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 2. Auth Card Loading Progress Bar */
.auth-card-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(139, 92, 246, 0.12);
  overflow: hidden;
  z-index: 10;
}

.auth-card-loader .auth-loader-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, var(--purple-400), #c084fc, transparent);
  width: 50%;
  animation: cardLoaderAnim 1.2s infinite ease-in-out;
}

@keyframes cardLoaderAnim {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* 3. Skeleton Shimmer Core */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-surface-elevated) 0%,
    rgba(139, 92, 246, 0.09) 50%,
    var(--bg-surface-elevated) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}

[data-theme="night"] .skeleton-shimmer {
  background: linear-gradient(
    90deg,
    #14151b 0%,
    rgba(139, 92, 246, 0.16) 50%,
    #14151b 100%
  );
  background-size: 200% 100%;
}

/* 4. Feed & Profile Skeleton Cards */
.feed-skeleton-stream {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.skeleton-card {
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  display: flex;
  gap: 1.1rem;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skeleton-name {
  height: 14px;
  width: 120px;
}

.skeleton-time {
  height: 12px;
  width: 60px;
}

.skeleton-line {
  border-radius: var(--radius-xs);
}

.skeleton-body-1 {
  height: 13px;
  width: 95%;
}

.skeleton-body-2 {
  height: 13px;
  width: 82%;
}

.skeleton-body-3 {
  height: 13px;
  width: 52%;
}

.skeleton-media {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  margin-top: 0.25rem;
}

/* 5. Inline Comments Loading */
.comments-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.15rem 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.comments-loading-indicator i {
  color: var(--purple-400);
  font-size: 1rem;
}

/* 6. Messages Skeletons */
.skeleton-people-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.skeleton-person-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
}

.skeleton-person-item .skeleton-avatar {
  width: 38px;
  height: 38px;
}

.skeleton-person-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skeleton-conversation-loader {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.skeleton-bubble {
  height: 42px;
  border-radius: 18px;
}

.skeleton-bubble.received {
  width: 55%;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.skeleton-bubble.sent {
  width: 45%;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* 7. Media Preview Uploading Overlay */
.media-preview-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #ffffff;
  font-size: 0.72rem;
  z-index: 5;
  backdrop-filter: blur(2px);
}

.media-preview-loading i {
  font-size: 1.1rem;
  color: var(--purple-400);
}
