/* ============================================================
   ooxezn Design System — Fluid Depth™
   Version: 1.0.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');
@import './quantum-button.css';
@import './theme-tokens.css';

/* ── X-ZEN Sidebar Navigation Link (Exact Second Design) ── */
.nav-item.xzen-nav-link {
  position: relative;
  transition: all var(--dur-fast, 0.15s) ease;
}

.nav-item.xzen-nav-link:hover {
  background: rgba(0, 255, 229, 0.08) !important;
}

.nav-item.xzen-nav-link.active {
  background: linear-gradient(135deg, rgba(0, 255, 229, 0.14) 0%, rgba(157, 78, 221, 0.18) 100%) !important;
  border: 1px solid rgba(0, 255, 229, 0.35) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(0, 255, 229, 0.18) !important;
}

.xzen-star-icon {
  width: 19px !important;
  height: 19px !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 0 6px rgba(0, 255, 229, 0.65)) !important;
}

.xzen-nav-label {
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.xzen-txt-x {
  color: #FFFFFF !important;
}

.xzen-txt-zen {
  color: #00FFE5 !important;
  text-shadow: 0 0 8px rgba(0, 255, 229, 0.6) !important;
}

.xzen-new-badge {
  margin-left: auto !important;
  background: linear-gradient(135deg, #00FFE5 0%, #9D4EDD 100%) !important;
  color: #090414 !important;
  border: none !important;
  box-shadow: 0 0 12px rgba(0, 255, 229, 0.55), 0 0 20px rgba(157, 78, 221, 0.3) !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  padding: 2.5px 7px !important;
  border-radius: 7px !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Color Palette --- */
  --void-black:       #080412;
  --void-deep:        #0D0618;
  --void-purple:      #1A0A2E;
  --void-mid:         #2D1254;
  --indigo-deep:      #3D1478;
  --indigo-core:      #6B21A8;
  --indigo-bright:    #8B31D8;
  --indigo-light:     #A855F7;
  --indigo-pale:      #D8B4FE;

  --cyan-glow:        #00FFE5;
  --cyan-soft:        #00D4C2;
  --cyan-dim:         #00897B;
  --cyan-ghost:       rgba(0, 255, 229, 0.12);
  --cyan-ghost-hover: rgba(0, 255, 229, 0.20);

  --orange-plasma:    #FF6B2B;
  --orange-soft:      #FF8C55;
  --orange-ghost:     rgba(255, 107, 43, 0.15);

  --white:            #FFFFFF;
  --white-90:         rgba(255,255,255,0.90);
  --white-70:         rgba(255,255,255,0.70);
  --white-50:         rgba(255,255,255,0.50);
  --white-30:         rgba(255,255,255,0.30);
  --white-15:         rgba(255,255,255,0.15);
  --white-08:         rgba(255,255,255,0.08);
  --white-05:         rgba(255,255,255,0.05);

  --success:          #22C55E;
  --success-ghost:    rgba(34, 197, 94, 0.15);
  --warning:          #F59E0B;
  --warning-ghost:    rgba(245, 158, 11, 0.15);
  --error:            #EF4444;
  --error-ghost:      rgba(239, 68, 68, 0.15);
  --info:             #3B82F6;
  --info-ghost:       rgba(59, 130, 246, 0.15);

  /* --- Semantic Colors --- */
  --bg-base:          var(--void-deep);
  --bg-surface:       var(--void-purple);
  --bg-elevated:      var(--void-mid);
  --bg-overlay:       rgba(13, 6, 24, 0.85);
  --bg-glass:         rgba(26, 10, 46, 0.60);
  --bg-glass-light:   rgba(45, 18, 84, 0.40);
  --bg-input:         rgba(26, 10, 46, 0.80);

  --text-primary:     var(--white);
  --text-secondary:   var(--white-70);
  --text-tertiary:    var(--white-50);
  --text-muted:       var(--white-30);
  --text-accent:      var(--cyan-glow);
  --text-link:        var(--indigo-light);

  --border-subtle:    rgba(255,255,255,0.08);
  --border-default:   rgba(255,255,255,0.12);
  --border-accent:    rgba(0, 255, 229, 0.25);
  --border-strong:    rgba(255,255,255,0.25);

  /* --- Gradients --- */
  --grad-primary:     linear-gradient(135deg, #6B21A8, #00FFE5);
  --grad-deep:        linear-gradient(180deg, #1A0A2E 0%, #0D0618 100%);
  --grad-card:        linear-gradient(135deg, rgba(45,18,84,0.6) 0%, rgba(26,10,46,0.4) 100%);
  --grad-button:      linear-gradient(135deg, #6B21A8 0%, #8B31D8 50%, #00D4C2 100%);
  --grad-button-hover:linear-gradient(135deg, #8B31D8 0%, #A855F7 50%, #00FFE5 100%);
  --grad-glow-cyan:   radial-gradient(ellipse at center, rgba(0,255,229,0.15) 0%, transparent 70%);
  --grad-glow-purple: radial-gradient(ellipse at center, rgba(107,33,168,0.30) 0%, transparent 70%);
  --grad-hero:        linear-gradient(135deg, #1A0A2E 0%, #3D1478 50%, #0D0618 100%);
  --grad-story-ring:  conic-gradient(from 0deg, #00FFE5, #6B21A8, #FF6B2B, #00FFE5);

  /* --- Shadows --- */
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.6);
  --shadow-xl:        0 16px 64px rgba(0,0,0,0.7);
  --shadow-glow-cyan: 0 0 20px rgba(0,255,229,0.30), 0 0 60px rgba(0,255,229,0.10);
  --shadow-glow-purple:0 0 20px rgba(107,33,168,0.40), 0 0 60px rgba(107,33,168,0.15);
  --shadow-glow-sm:   0 0 10px rgba(0,255,229,0.20);
  --shadow-card:      0 4px 24px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.08);

  /* --- Border Radius --- */
  --radius-xs:        4px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        24px;
  --radius-2xl:       32px;
  --radius-full:      9999px;

  /* --- Spacing Scale (4px base) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* --- Typography Scale --- */
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.25rem;   /* 20px */
  --text-2xl:   1.5rem;    /* 24px */
  --text-3xl:   1.875rem;  /* 30px */
  --text-4xl:   2.25rem;   /* 36px */
  --text-5xl:   3rem;      /* 48px */
  --text-6xl:   3.75rem;   /* 60px */

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  /* --- Animation --- */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.45, 0, 0.55, 1);
  --ease-bounce:   cubic-bezier(0.68, -0.55, 0.27, 1.55);

  --dur-instant:   80ms;
  --dur-fast:      150ms;
  --dur-normal:    250ms;
  --dur-slow:      400ms;
  --dur-slower:    600ms;
  --dur-slowest:   800ms;

  /* --- Z-index Scale --- */
  --z-below:    -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;

  /* --- Layout --- */
  --sidebar-width:     240px;
  --sidebar-collapsed: 72px;
  --right-panel-width: 320px;
  --topbar-height:     64px;
  --bottomnav-height:  72px;
  --container-max:     1280px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(107,33,168,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0,255,229,0.06) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.glass-sm {
  background: var(--bg-glass-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.glass-hover {
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.glass-hover:hover {
  background: rgba(45, 18, 84, 0.70);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), 0 0 20px rgba(0,255,229,0.08);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn:hover::before { background: rgba(255,255,255,0.08); }
.btn:active::before { background: rgba(255,255,255,0.15); }

.btn-primary {
  background: var(--grad-button);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(107,33,168,0.40), 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.btn-primary:hover {
  background: var(--grad-button-hover);
  box-shadow: 0 4px 24px rgba(107,33,168,0.50), var(--shadow-glow-sm);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white-08);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover {
  background: var(--white-15);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}
.btn-ghost:hover {
  background: var(--white-08);
  color: var(--text-primary);
}

.btn-accent {
  background: var(--cyan-ghost);
  color: var(--cyan-glow);
  border: 1px solid var(--border-accent);
}
.btn-accent:hover {
  background: var(--cyan-ghost-hover);
  box-shadow: var(--shadow-glow-sm);
}

.btn-danger {
  background: var(--error-ghost);
  color: var(--error);
  border: 1px solid rgba(239,68,68,0.30);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn-icon-sm { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.btn-icon-lg { width: 48px; height: 48px; border-radius: var(--radius-lg); }

.btn-lg { padding: 14px var(--space-8); font-size: var(--text-base); }
.btn-sm { padding: 6px var(--space-3); font-size: var(--text-xs); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-xs { width: 24px; height: 24px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-xl { width: 64px; height: 64px; }
.avatar-2xl { width: 80px; height: 80px; }
.avatar-3xl { width: 96px; height: 96px; }

.avatar-ring {
  padding: 2px;
  background: var(--grad-story-ring);
  border-radius: var(--radius-full);
}
.avatar-ring img {
  border: 2px solid var(--bg-base);
  border-radius: var(--radius-full);
}

.avatar-online {
  position: relative;
}
.avatar-online::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 6px var(--success);
}

/* ============================================================
   BADGE & CHIP
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge-verified {
  background: linear-gradient(135deg, #6B21A8, #00D4C2);
  color: white;
}
.badge-live {
  background: var(--error);
  color: white;
  animation: pulse-badge 1.5s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--white-08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-fast);
  cursor: pointer;
}
.chip:hover {
  background: var(--white-15);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.chip.active {
  background: var(--cyan-ghost);
  color: var(--cyan-glow);
  border-color: var(--border-accent);
}

/* ============================================================
   INPUT
   ============================================================ */
.input {
  width: 100%;
  padding: 10px var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--dur-fast);
  outline: none;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
  background: rgba(26, 10, 46, 0.95);
}

.search-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: all var(--dur-fast);
}
.search-input:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--cyan-ghost);
}
.search-input input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  width: 100%;
}
.search-input input::placeholder { color: var(--text-muted); }

/* ============================================================
   POST CARD
   ============================================================ */
.post-card {
  padding: var(--space-5);
  transition: transform var(--dur-fast) var(--ease-out);
}
.post-card:hover { transform: translateY(-2px); }

.post-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.action-btn,
.act-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--dur-fast);
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:hover,
.act-btn:hover { background: var(--white-08); color: var(--text-primary); }
.action-btn:focus, .act-btn:focus,
.action-btn:active, .act-btn:active { outline: none; border: none; box-shadow: none; }
.action-btn:focus-visible, .act-btn:focus-visible { box-shadow: 0 0 0 2px var(--cyan-glow); outline: none; }
.action-btn.liked { color: var(--orange-plasma); }
.action-btn.liked:hover { background: var(--orange-ghost); }

/* Heart-Bolt Fusion (Resonate / Like Action) */
.act-btn.resonate-btn,
.action-btn.resonate-btn,
.action-item.resonate-item {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, background-color 0.2s ease;
  transform: none !important;
}
.act-btn.resonate-btn:hover,
.action-btn.resonate-btn:hover,
.action-item.resonate-item:hover {
  background: rgba(255, 0, 85, 0.12);
  color: #FF0055;
  transform: none !important;
}
.act-btn.resonate-btn:active,
.action-btn.resonate-btn:active,
.action-item.resonate-item:active {
  transform: none !important;
}
.act-btn.resonate-btn svg,
.action-btn.resonate-btn svg,
.action-item.resonate-item svg {
  color: rgba(255, 255, 255, 0.7);
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, filter 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}
.act-btn.resonate-btn:hover svg,
.action-btn.resonate-btn:hover svg,
.action-item.resonate-item:hover svg {
  color: #FF0055;
  filter: drop-shadow(0 0 8px rgba(255, 0, 85, 0.75)) drop-shadow(0 0 14px rgba(0, 255, 229, 0.5));
  transform: scale(1.18);
}
.act-btn.resonate-btn .act-count,
.action-btn.resonate-btn .act-count,
.action-item.resonate-item span,
.action-item.resonate-item .act-count {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  transition: none;
  transform: none !important;
  animation: none !important;
  text-shadow: none !important;
  display: inline-block;
}
.act-btn.resonate-btn:hover .act-count,
.action-btn.resonate-btn:hover .act-count,
.action-item.resonate-item:hover span {
  color: rgba(255, 255, 255, 0.75) !important;
}
.act-btn.resonate-btn.resonated,
.action-btn.resonate-btn.resonated,
.action-item.resonate-item.resonated,
.action-item.resonate-item.active-cyan,
.act-btn.resonate-btn[aria-pressed="true"],
.action-item.resonate-item[aria-pressed="true"] {
  transform: none !important;
}
.act-btn.resonate-btn.resonated svg,
.action-btn.resonate-btn.resonated svg,
.action-item.resonate-item.resonated svg,
.action-item.resonate-item.active-cyan svg,
.act-btn.resonate-btn[aria-pressed="true"] svg,
.action-item.resonate-item[aria-pressed="true"] svg {
  color: #FF0055;
  filter: drop-shadow(0 0 10px #FF0055) drop-shadow(0 0 20px #00FFE5) drop-shadow(0 0 30px rgba(255, 0, 85, 0.7));
  animation: heartBoltShockwave 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.act-btn.resonate-btn.resonated .act-count,
.action-btn.resonate-btn.resonated .act-count,
.action-item.resonate-item.resonated span,
.action-item.resonate-item.active-cyan span,
.act-btn.resonate-btn[aria-pressed="true"] .act-count,
.action-item.resonate-item[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  transform: none !important;
  animation: none !important;
  text-shadow: none !important;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--white-15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--white-30); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn var(--dur-slow) var(--ease-out) both; }
.animate-fade-in-up { animation: fadeInUp var(--dur-slow) var(--ease-out) both; }
.animate-scale-in { animation: scaleIn var(--dur-normal) var(--ease-out) both; }

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }
.stagger > *:nth-child(7) { animation-delay: 360ms; }
.stagger > *:nth-child(8) { animation-delay: 420ms; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--white-08) 0%,
    var(--white-15) 50%,
    var(--white-08) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   OOXEZN SPIRAL LOADER (𖦹) - Standard Project Spinner
   ============================================================ */
@keyframes spiralSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-spiral,
.ooxezn-loader,
.loading-spiral,
.loading-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--loader-size, 22px);
  line-height: 1;
  animation: spiralSpin 0.85s linear infinite;
  user-select: none;
  color: var(--cyan, #00FFE5);
  text-shadow: 0 0 10px rgba(0, 255, 229, 0.6);
}

.spinner-spiral::before,
.ooxezn-loader::before,
.loading-spiral::before,
.loading-circle::before {
  content: '𖦹';
  display: inline-block;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
    --right-panel-width: 0px;
  }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* ==========================================================
   OOXEZN Modern Blue Starburst Verified Badge Component Styles
   Primary Color: #0095F6 | Check Color: #FFFFFF
   ========================================================== */

.ooxezn-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 5px;
  margin-right: 2px;
  position: relative;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  animation: ooxezn-badge-fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ooxezn-verified-badge:hover {
  transform: scale(1.18) rotate(5deg);
}

.ooxezn-verified-badge svg {
  display: block;
  filter: drop-shadow(0 0 5px rgba(0, 149, 246, 0.55));
  transition: filter 0.25s ease;
}

.ooxezn-verified-badge:hover svg {
  filter: drop-shadow(0 0 10px rgba(0, 149, 246, 0.9));
}

/* Sizing specifications */
.ooxezn-verified-badge.badge-sm svg { width: 14px; height: 14px; }
.ooxezn-verified-badge.badge-md svg { width: 16px; height: 16px; }
.ooxezn-verified-badge.badge-lg svg { width: 18px; height: 18px; }

/* Responsive Scaling on Mobile Devices */
@media (max-width: 768px) {
  .ooxezn-verified-badge.badge-sm svg { width: 13px; height: 13px; }
  .ooxezn-verified-badge.badge-md svg { width: 14px; height: 14px; }
  .ooxezn-verified-badge.badge-lg svg { width: 16px; height: 16px; }
}

/* Tooltip */
.ooxezn-badge-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.95);
  background: rgba(13, 6, 24, 0.96);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 149, 246, 0.35);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 149, 246, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

.ooxezn-badge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(13, 6, 24, 0.96) transparent transparent transparent;
}

.ooxezn-verified-badge:hover .ooxezn-badge-tooltip,
.ooxezn-verified-badge:focus .ooxezn-badge-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Light mode support */
@media (prefers-color-scheme: light), body.light-mode {
  .ooxezn-badge-tooltip {
    background: rgba(255, 255, 255, 0.96);
    color: #0D0618;
    border-color: rgba(0, 149, 246, 0.3);
    box-shadow: 0 4px 16px rgba(0, 149, 246, 0.2);
  }
  .ooxezn-badge-tooltip::after {
    border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
  }
}

/* Fade-in Animation */
@keyframes ooxezn-badge-fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   GLOBAL NAVIGATION & SIDEBAR STYLES
   ============================================================ */
.sidebar {
  width: 240px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(13,6,24,0.95);
  border-right: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  z-index: 100;
}
.logo {
  padding: 0 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.logo-text span {
  color: #00FFE5;
  text-shadow: 0 0 20px #00FFE5;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 1.25rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
}
.nav-item.active {
  background: rgba(0,255,229,0.1);
  color: #00FFE5;
}
.nav-icon {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  stroke-width: 2.2px !important;
}
.nav-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #FF3366, #FF6B2B);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(255, 51, 102, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* ============================================================
   SIDEBAR CREATE POST BUTTON & USER FOOTER
   ============================================================ */
.sidebar {
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar-create-btn {
  margin: 12px 1.25rem !important;
  background: linear-gradient(135deg, #00FFE5 0%, #9D4EDD 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 12px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 0 16px rgba(0, 255, 229, 0.35), 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.sidebar-create-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 24px rgba(0, 255, 229, 0.55), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.sidebar-create-btn svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

.sidebar-create-btn .create-btn-text {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.sidebar-user {
  padding: 1rem 1.25rem 1.5rem !important;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: white;
}
.user-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6B21A8, #3D1478);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.user-info { flex: 1; overflow: hidden; }
.user-name { font-size: 0.88rem; font-weight: 600; }
.user-handle { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   COLLAPSED SIDEBAR STYLES & PREVENT SHRINKING
   ============================================================ */
.sidebar.collapsed {
  width: 72px !important;
  min-width: 72px !important;
  align-items: center;
}
.sidebar.collapsed .logo {
  padding: 0 0 1.5rem 0 !important;
  justify-content: center;
}
.sidebar.collapsed .logo-mark,
.sidebar.collapsed .logo-mark-image {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  flex-shrink: 0 !important;
}
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .create-btn-text,
.sidebar.collapsed .user-info {
  display: none !important;
}
.sidebar.collapsed .nav-item {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 4px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  position: relative !important;
}
.sidebar.collapsed .nav-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
  stroke-width: 2.2px !important;
}
.sidebar.collapsed .nav-item.active::before {
  left: -8px !important;
}
.sidebar.collapsed .nav-badge {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  padding: 0 !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #0F0926 !important;
  background: linear-gradient(135deg, #FF3366, #FF6B2B) !important;
  box-shadow: 0 2px 6px rgba(255, 51, 102, 0.4) !important;
  z-index: 5 !important;
}
.sidebar.collapsed .sidebar-user {
  padding: 12px 0 !important;
  justify-content: center !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}
.sidebar.collapsed .user-av {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
}

/* ============================================================
   MEDIA LIGHTBOX INTERACTION & OVERLAY UNBLOCK
   ============================================================ */
.media-placeholder,
.post-media-grid img,
.post-media-grid video {
  cursor: pointer !important;
}
.media-overlay,
.media-placeholder .media-overlay {
  pointer-events: none !important;
}

/* ============================================================
   MESSAGING SEND BUTTON OPTICAL CENTERING & CRISP WHITE STROKE
   ============================================================ */
.send-btn {
  background: linear-gradient(135deg, #00FFE5 0%, #9D4EDD 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 0 14px rgba(0, 255, 229, 0.4) !important;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.send-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: #FFFFFF !important;
  stroke-width: 2.2px !important;
  margin-left: 2px !important;
  margin-top: -1px !important;
  display: block !important;
}

.send-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.6) !important;
}

/* ============================================================
   PEOPLE YOU MAY KNOW CONTAINER & CONNECT BUTTON LAYOUT FIX
   ============================================================ */
.people-card {
  display: flex !important;
  align-items: center !important;
  gap: var(--space-3) !important;
  padding: var(--space-3) 0 !important;
  border-bottom: 1px solid var(--border-subtle);
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.people-card:last-child {
  border-bottom: none !important;
}
.people-info {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.people-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.people-handle {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.connect-btn {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}
/* OOXEZN Glowing Wordmark */
.logo-wordmark-img {
  height: 24px;
  width: auto;
  max-width: 135px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 204, 0.55));
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-wordmark-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 16px rgba(0, 229, 204, 0.8));
}
.sidebar.collapsed .logo-wordmark-img {
  display: none !important;
}

/* ============================================================
   MULTI-IMAGE / MULTI-MEDIA POST CAROUSEL SLIDER (LEFT/RIGHT SWIPE)
   ============================================================ */
.post-media-carousel {
  position: relative;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #080312;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.post-carousel-track {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
}

.post-carousel-track::-webkit-scrollbar {
  display: none;
}

.post-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-height: 520px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.post-carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.post-carousel-slide video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Ultra-Clean Crystal Water-Glass Counter Capsule (Screenshot 2 Aesthetic) */
.post-carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5), 0 3px 10px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.post-carousel-nav-btn,
.post-carousel-dots {
  display: none !important;
}
