/* ============================================
   ODNIX UI FRAMEWORK
   Keeping original colors: #667eea, #764ba2
   ============================================ */

/* ===== CSS VARIABLES (Preserving Original Colors) ===== */
:root {
  /* Original brand colors - PRESERVED */
  --color-primary: #667eea;
  --color-primary-dark: #5a6fd8;
  --color-secondary: #764ba2;

  /* Odnix-style neutrals (Light Mode Default) */
  --od-bg: #fafafa;
  --od-surface: #ffffff;
  --od-surface-hover: #f0f0f0;
  --od-border: #dbdbdb;
  --od-border-light: #efefef;
  --od-text-primary: #262626;
  --od-text-secondary: #8e8e8e;
  --od-text-link: #00376b;
  --od-input-bg: #fafafa;
  --od-surface-light: #f8f8f8;
  --od-glow: rgba(102, 126, 234, 0.1);
  --od-icon-color: #262626;
  --od-icon-hover: #8e8e8e;

  /* Functional colors */
  --od-error: #ed4956;
  --od-success: #58c322;

  /* Story gradient using brand colors */
  --moment-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);

  /* Spacing system (16px base) */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
  --radius-avatar: 22%;  /* Rounded square for avatars/profile pics */
  --radius-story: 22%;   /* Rounded square for story rings */
  
  /* Shadows - Modern uses very subtle shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Feed width */
  --feed-width: 470px;
  --sidebar-width: 320px;

  /* Odnix Aliases for Backward Compatibility */
  --odnix-bg: var(--od-bg);
  --odnix-surface: var(--od-surface);
  --odnix-surface-light: var(--od-surface-light);
  --odnix-border: var(--od-border);
  --odnix-text: var(--od-text-primary);
  --odnix-text-secondary: var(--od-text-secondary);
  --odnix-glow: var(--od-glow);
  --odnix-primary: var(--color-primary);
  --odnix-secondary: var(--color-secondary);
  --odnix-gradient: var(--brand-gradient);
}

/* ============================================
   CUSTOM THEME SYSTEM - 28 Modern Themes
   ============================================ */

/* Dark Mode Overrides */
body.theme-dark,
html.theme-dark body,
.theme-dark {
  --od-bg: #0f0f1a;
  --od-surface: #1a1a2e;
  --od-surface-hover: #252542;
  --od-border: #2d2d4a;
  --od-border-light: #2d2d4a;
  --od-text-primary: #ffffff;
  --od-text-secondary: #a0a0b8;
  --od-text-link: #667eea;
  --od-input-bg: #252542;
  --od-surface-light: #252542;
  --od-glow: rgba(102, 126, 234, 0.3);
  --od-icon-color: #ffffff;
  --od-icon-hover: #a0a0b8;
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* === MODERN DARK THEMES === */

/* Midnight - Deep blue night theme */
body.theme-midnight,
html.theme-midnight body,
.theme-midnight {
  --od-bg: #0d1421;
  --od-surface: #141d2e;
  --od-surface-hover: #1c2940;
  --od-border: #243147;
  --od-border-light: #1c2940;
  --od-text-primary: #e4e8ef;
  --od-text-secondary: #8b9bb4;
  --od-text-link: #60a5fa;
  --od-input-bg: #1c2940;
  --od-surface-light: #1c2940;
  --od-glow: rgba(96, 165, 250, 0.2);
  --od-icon-color: #e4e8ef;
  --od-icon-hover: #8b9bb4;
  --color-primary: #3b82f6;
  --color-secondary: #6366f1;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}
html.theme-midnight { background: #0d1421; }

/* AMOLED Black - Pure black for OLED displays */
body.theme-amoled,
html.theme-amoled body,
.theme-amoled {
  --od-bg: #000000;
  --od-surface: #0a0a0a;
  --od-surface-hover: #141414;
  --od-border: #1f1f1f;
  --od-border-light: #141414;
  --od-text-primary: #ffffff;
  --od-text-secondary: #888888;
  --od-text-link: #667eea;
  --od-input-bg: #141414;
  --od-surface-light: #0a0a0a;
  --od-glow: rgba(102, 126, 234, 0.25);
  --od-icon-color: #ffffff;
  --od-icon-hover: #888888;
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --shadow-sm: 0 1px 2px rgba(102, 126, 234, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}
html.theme-amoled { background: #000000; }

/* Dracula - Popular dark theme */
body.theme-dracula,
html.theme-dracula body,
.theme-dracula {
  --od-bg: #282a36;
  --od-surface: #343746;
  --od-surface-hover: #3e4254;
  --od-border: #44475a;
  --od-border-light: #3e4254;
  --od-text-primary: #f8f8f2;
  --od-text-secondary: #6272a4;
  --od-text-link: #bd93f9;
  --od-input-bg: #3e4254;
  --od-surface-light: #343746;
  --od-glow: rgba(189, 147, 249, 0.2);
  --od-icon-color: #f8f8f2;
  --od-icon-hover: #bd93f9;
  --color-primary: #bd93f9;
  --color-secondary: #ff79c6;
  --brand-gradient: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-dracula { background: #282a36; }

/* Nord - Arctic-inspired color palette */
body.theme-nord,
html.theme-nord body,
.theme-nord {
  --od-bg: #2e3440;
  --od-surface: #3b4252;
  --od-surface-hover: #434c5e;
  --od-border: #4c566a;
  --od-border-light: #434c5e;
  --od-text-primary: #eceff4;
  --od-text-secondary: #d8dee9;
  --od-text-link: #88c0d0;
  --od-input-bg: #434c5e;
  --od-surface-light: #3b4252;
  --od-glow: rgba(136, 192, 208, 0.2);
  --od-icon-color: #eceff4;
  --od-icon-hover: #88c0d0;
  --color-primary: #5e81ac;
  --color-secondary: #81a1c1;
  --brand-gradient: linear-gradient(135deg, #5e81ac 0%, #88c0d0 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-nord { background: #2e3440; }

/* Tokyo Night - Japanese city lights */
body.theme-tokyo_night,
html.theme-tokyo_night body,
.theme-tokyo_night {
  --od-bg: #1a1b26;
  --od-surface: #24283b;
  --od-surface-hover: #2f3349;
  --od-border: #3b4261;
  --od-border-light: #2f3349;
  --od-text-primary: #c0caf5;
  --od-text-secondary: #565f89;
  --od-text-link: #7aa2f7;
  --od-input-bg: #2f3349;
  --od-surface-light: #24283b;
  --od-glow: rgba(122, 162, 247, 0.2);
  --od-icon-color: #c0caf5;
  --od-icon-hover: #7aa2f7;
  --color-primary: #7aa2f7;
  --color-secondary: #bb9af7;
  --brand-gradient: linear-gradient(135deg, #7aa2f7 0%, #bb9af7 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}
html.theme-tokyo_night { background: #1a1b26; }

/* Synthwave - 80s retro neon */
body.theme-synthwave,
html.theme-synthwave body,
.theme-synthwave {
  --od-bg: #1a1025;
  --od-surface: #241734;
  --od-surface-hover: #2d1f40;
  --od-border: #3d2a52;
  --od-border-light: #2d1f40;
  --od-text-primary: #f5e6ff;
  --od-text-secondary: #9d7ab8;
  --od-text-link: #ff7edb;
  --od-input-bg: #2d1f40;
  --od-surface-light: #241734;
  --od-glow: rgba(255, 126, 219, 0.25);
  --od-icon-color: #f5e6ff;
  --od-icon-hover: #ff7edb;
  --color-primary: #ff7edb;
  --color-secondary: #36f9f6;
  --brand-gradient: linear-gradient(135deg, #ff7edb 0%, #36f9f6 100%);
  --shadow-sm: 0 1px 2px rgba(255, 126, 219, 0.1);
  --shadow-md: 0 4px 12px rgba(255, 126, 219, 0.15);
  --shadow-lg: 0 8px 24px rgba(255, 126, 219, 0.2);
}
html.theme-synthwave { background: #1a1025; }

/* Cyberpunk - Futuristic neon yellow */
body.theme-cyberpunk,
html.theme-cyberpunk body,
.theme-cyberpunk {
  --od-bg: #0d0d0d;
  --od-surface: #1a1a1a;
  --od-surface-hover: #252525;
  --od-border: #333333;
  --od-border-light: #252525;
  --od-text-primary: #fcee09;
  --od-text-secondary: #aaa900;
  --od-text-link: #00f0ff;
  --od-input-bg: #252525;
  --od-surface-light: #1a1a1a;
  --od-glow: rgba(252, 238, 9, 0.2);
  --od-icon-color: #fcee09;
  --od-icon-hover: #00f0ff;
  --color-primary: #fcee09;
  --color-secondary: #00f0ff;
  --brand-gradient: linear-gradient(135deg, #fcee09 0%, #00f0ff 100%);
  --shadow-sm: 0 1px 2px rgba(252, 238, 9, 0.1);
  --shadow-md: 0 4px 12px rgba(252, 238, 9, 0.15);
  --shadow-lg: 0 8px 24px rgba(252, 238, 9, 0.2);
}
html.theme-cyberpunk { background: #0d0d0d; }

/* === NATURE THEMES === */

/* Forest - Deep green nature */
body.theme-forest,
html.theme-forest body,
.theme-forest {
  --od-bg: #0f1912;
  --od-surface: #162118;
  --od-surface-hover: #1d2a1f;
  --od-border: #2a3b2c;
  --od-border-light: #1d2a1f;
  --od-text-primary: #e8f0ea;
  --od-text-secondary: #8fa894;
  --od-text-link: #4ade80;
  --od-input-bg: #1d2a1f;
  --od-surface-light: #162118;
  --od-glow: rgba(74, 222, 128, 0.2);
  --od-icon-color: #e8f0ea;
  --od-icon-hover: #4ade80;
  --color-primary: #22c55e;
  --color-secondary: #16a34a;
  --brand-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-forest { background: #0f1912; }

/* Ocean - Deep sea blue */
body.theme-ocean,
html.theme-ocean body,
.theme-ocean {
  --od-bg: #0c1929;
  --od-surface: #122236;
  --od-surface-hover: #183047;
  --od-border: #214060;
  --od-border-light: #183047;
  --od-text-primary: #e0f2fe;
  --od-text-secondary: #7dd3fc;
  --od-text-link: #38bdf8;
  --od-input-bg: #183047;
  --od-surface-light: #122236;
  --od-glow: rgba(56, 189, 248, 0.2);
  --od-icon-color: #e0f2fe;
  --od-icon-hover: #38bdf8;
  --color-primary: #0ea5e9;
  --color-secondary: #0284c7;
  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-ocean { background: #0c1929; }

/* Sunset - Warm orange/red */
body.theme-sunset,
html.theme-sunset body,
.theme-sunset {
  --od-bg: #1a0f0a;
  --od-surface: #251710;
  --od-surface-hover: #321e15;
  --od-border: #46291c;
  --od-border-light: #321e15;
  --od-text-primary: #fef3e8;
  --od-text-secondary: #d4a574;
  --od-text-link: #fb923c;
  --od-input-bg: #321e15;
  --od-surface-light: #251710;
  --od-glow: rgba(251, 146, 60, 0.2);
  --od-icon-color: #fef3e8;
  --od-icon-hover: #fb923c;
  --color-primary: #f97316;
  --color-secondary: #ea580c;
  --brand-gradient: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-sunset { background: #1a0f0a; }

/* Aurora - Northern lights */
body.theme-aurora,
html.theme-aurora body,
.theme-aurora {
  --od-bg: #0a0f14;
  --od-surface: #111821;
  --od-surface-hover: #18212c;
  --od-border: #1f2937;
  --od-border-light: #18212c;
  --od-text-primary: #e0f4f1;
  --od-text-secondary: #6ee7b7;
  --od-text-link: #34d399;
  --od-input-bg: #18212c;
  --od-surface-light: #111821;
  --od-glow: rgba(52, 211, 153, 0.2);
  --od-icon-color: #e0f4f1;
  --od-icon-hover: #34d399;
  --color-primary: #10b981;
  --color-secondary: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(52, 211, 153, 0.1);
  --shadow-lg: 0 8px 24px rgba(52, 211, 153, 0.15);
}
html.theme-aurora { background: #0a0f14; }

/* Desert - Warm sand tones */
body.theme-desert,
html.theme-desert body,
.theme-desert {
  --od-bg: #1c1714;
  --od-surface: #262019;
  --od-surface-hover: #30281f;
  --od-border: #3d342a;
  --od-border-light: #30281f;
  --od-text-primary: #f5f0e8;
  --od-text-secondary: #c4b49a;
  --od-text-link: #d4a574;
  --od-input-bg: #30281f;
  --od-surface-light: #262019;
  --od-glow: rgba(212, 165, 116, 0.2);
  --od-icon-color: #f5f0e8;
  --od-icon-hover: #d4a574;
  --color-primary: #d97706;
  --color-secondary: #b45309;
  --brand-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-desert { background: #1c1714; }

/* === SOFT/PASTEL THEMES === */

/* Lavender - Soft purple */
body.theme-lavender,
html.theme-lavender body,
.theme-lavender {
  --od-bg: #f5f3ff;
  --od-surface: #ffffff;
  --od-surface-hover: #ede9fe;
  --od-border: #ddd6fe;
  --od-border-light: #e9e4fc;
  --od-text-primary: #3c3660;
  --od-text-secondary: #6b5b95;
  --od-text-link: #7c3aed;
  --od-input-bg: #faf5ff;
  --od-surface-light: #f5f3ff;
  --od-glow: rgba(124, 58, 237, 0.15);
  --od-icon-color: #3c3660;
  --od-icon-hover: #7c3aed;
  --color-primary: #8b5cf6;
  --color-secondary: #a78bfa;
  --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --shadow-sm: 0 1px 2px rgba(139, 92, 246, 0.1);
  --shadow-md: 0 4px 12px rgba(139, 92, 246, 0.1);
  --shadow-lg: 0 8px 24px rgba(139, 92, 246, 0.15);
}
html.theme-lavender { background: #f5f3ff; }

/* Rose - Soft pink */
body.theme-rose,
html.theme-rose body,
.theme-rose {
  --od-bg: #fff1f2;
  --od-surface: #ffffff;
  --od-surface-hover: #ffe4e6;
  --od-border: #fecdd3;
  --od-border-light: #fed7d7;
  --od-text-primary: #4a3233;
  --od-text-secondary: #9f5660;
  --od-text-link: #e11d48;
  --od-input-bg: #fff5f6;
  --od-surface-light: #fff1f2;
  --od-glow: rgba(225, 29, 72, 0.12);
  --od-icon-color: #4a3233;
  --od-icon-hover: #e11d48;
  --color-primary: #f43f5e;
  --color-secondary: #fb7185;
  --brand-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --shadow-sm: 0 1px 2px rgba(244, 63, 94, 0.1);
  --shadow-md: 0 4px 12px rgba(244, 63, 94, 0.1);
  --shadow-lg: 0 8px 24px rgba(244, 63, 94, 0.15);
}
html.theme-rose { background: #fff1f2; }

/* Mint - Fresh green */
body.theme-mint,
html.theme-mint body,
.theme-mint {
  --od-bg: #f0fdf4;
  --od-surface: #ffffff;
  --od-surface-hover: #dcfce7;
  --od-border: #bbf7d0;
  --od-border-light: #d1fae5;
  --od-text-primary: #14532d;
  --od-text-secondary: #166534;
  --od-text-link: #16a34a;
  --od-input-bg: #f5fff7;
  --od-surface-light: #f0fdf4;
  --od-glow: rgba(22, 163, 74, 0.12);
  --od-icon-color: #14532d;
  --od-icon-hover: #16a34a;
  --color-primary: #22c55e;
  --color-secondary: #4ade80;
  --brand-gradient: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  --shadow-sm: 0 1px 2px rgba(34, 197, 94, 0.1);
  --shadow-md: 0 4px 12px rgba(34, 197, 94, 0.1);
  --shadow-lg: 0 8px 24px rgba(34, 197, 94, 0.15);
}
html.theme-mint { background: #f0fdf4; }

/* Peach - Warm soft orange */
body.theme-peach,
html.theme-peach body,
.theme-peach {
  --od-bg: #fff7ed;
  --od-surface: #ffffff;
  --od-surface-hover: #ffedd5;
  --od-border: #fed7aa;
  --od-border-light: #fde5c8;
  --od-text-primary: #431407;
  --od-text-secondary: #9a3412;
  --od-text-link: #ea580c;
  --od-input-bg: #fffaf5;
  --od-surface-light: #fff7ed;
  --od-glow: rgba(234, 88, 12, 0.12);
  --od-icon-color: #431407;
  --od-icon-hover: #ea580c;
  --color-primary: #f97316;
  --color-secondary: #fb923c;
  --brand-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --shadow-sm: 0 1px 2px rgba(249, 115, 22, 0.1);
  --shadow-md: 0 4px 12px rgba(249, 115, 22, 0.1);
  --shadow-lg: 0 8px 24px rgba(249, 115, 22, 0.15);
}
html.theme-peach { background: #fff7ed; }

/* Sky - Light blue */
body.theme-sky,
html.theme-sky body,
.theme-sky {
  --od-bg: #f0f9ff;
  --od-surface: #ffffff;
  --od-surface-hover: #e0f2fe;
  --od-border: #bae6fd;
  --od-border-light: #cceeff;
  --od-text-primary: #0c4a6e;
  --od-text-secondary: #0369a1;
  --od-text-link: #0284c7;
  --od-input-bg: #f5fcff;
  --od-surface-light: #f0f9ff;
  --od-glow: rgba(2, 132, 199, 0.12);
  --od-icon-color: #0c4a6e;
  --od-icon-hover: #0284c7;
  --color-primary: #0ea5e9;
  --color-secondary: #38bdf8;
  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --shadow-sm: 0 1px 2px rgba(14, 165, 233, 0.1);
  --shadow-md: 0 4px 12px rgba(14, 165, 233, 0.1);
  --shadow-lg: 0 8px 24px rgba(14, 165, 233, 0.15);
}
html.theme-sky { background: #f0f9ff; }

/* === PROFESSIONAL THEMES === */

/* Charcoal - Deep gray professional */
body.theme-charcoal,
html.theme-charcoal body,
.theme-charcoal {
  --od-bg: #18181b;
  --od-surface: #27272a;
  --od-surface-hover: #3f3f46;
  --od-border: #3f3f46;
  --od-border-light: #3f3f46;
  --od-text-primary: #fafafa;
  --od-text-secondary: #a1a1aa;
  --od-text-link: #667eea;
  --od-input-bg: #3f3f46;
  --od-surface-light: #27272a;
  --od-glow: rgba(102, 126, 234, 0.2);
  --od-icon-color: #fafafa;
  --od-icon-hover: #667eea;
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-charcoal { background: #18181b; }

/* Slate - Blue-gray professional */
body.theme-slate,
html.theme-slate body,
.theme-slate {
  --od-bg: #0f172a;
  --od-surface: #1e293b;
  --od-surface-hover: #334155;
  --od-border: #334155;
  --od-border-light: #475569;
  --od-text-primary: #f8fafc;
  --od-text-secondary: #94a3b8;
  --od-text-link: #60a5fa;
  --od-input-bg: #334155;
  --od-surface-light: #1e293b;
  --od-glow: rgba(96, 165, 250, 0.2);
  --od-icon-color: #f8fafc;
  --od-icon-hover: #60a5fa;
  --color-primary: #3b82f6;
  --color-secondary: #60a5fa;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-slate { background: #0f172a; }

/* Graphite - Dark neutral */
body.theme-graphite,
html.theme-graphite body,
.theme-graphite {
  --od-bg: #1c1c1e;
  --od-surface: #2c2c2e;
  --od-surface-hover: #3a3a3c;
  --od-border: #48484a;
  --od-border-light: #3a3a3c;
  --od-text-primary: #f5f5f7;
  --od-text-secondary: #8e8e93;
  --od-text-link: #0a84ff;
  --od-input-bg: #3a3a3c;
  --od-surface-light: #2c2c2e;
  --od-glow: rgba(10, 132, 255, 0.2);
  --od-icon-color: #f5f5f7;
  --od-icon-hover: #0a84ff;
  --color-primary: #0a84ff;
  --color-secondary: #5e5ce6;
  --brand-gradient: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-graphite { background: #1c1c1e; }

/* Mocha - Coffee brown */
body.theme-mocha,
html.theme-mocha body,
.theme-mocha {
  --od-bg: #1e1e2e;
  --od-surface: #302d41;
  --od-surface-hover: #3e3d52;
  --od-border: #45475a;
  --od-border-light: #3e3d52;
  --od-text-primary: #cdd6f4;
  --od-text-secondary: #a6adc8;
  --od-text-link: #f5c2e7;
  --od-input-bg: #3e3d52;
  --od-surface-light: #302d41;
  --od-glow: rgba(245, 194, 231, 0.15);
  --od-icon-color: #cdd6f4;
  --od-icon-hover: #f5c2e7;
  --color-primary: #cba6f7;
  --color-secondary: #f5c2e7;
  --brand-gradient: linear-gradient(135deg, #cba6f7 0%, #f5c2e7 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.theme-mocha { background: #1e1e2e; }

/* === VIBRANT THEMES === */

/* Neon - Bright neon accents */
body.theme-neon,
html.theme-neon body,
.theme-neon {
  --od-bg: #0a0a0f;
  --od-surface: #12121a;
  --od-surface-hover: #1a1a24;
  --od-border: #2a2a3a;
  --od-border-light: #1a1a24;
  --od-text-primary: #ffffff;
  --od-text-secondary: #9090a0;
  --od-text-link: #00ff88;
  --od-input-bg: #1a1a24;
  --od-surface-light: #12121a;
  --od-glow: rgba(0, 255, 136, 0.25);
  --od-icon-color: #ffffff;
  --od-icon-hover: #00ff88;
  --color-primary: #00ff88;
  --color-secondary: #00ccff;
  --brand-gradient: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
  --shadow-sm: 0 1px 2px rgba(0, 255, 136, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 255, 136, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 255, 136, 0.2);
}
html.theme-neon { background: #0a0a0f; }

/* Coral - Warm coral pink */
body.theme-coral,
html.theme-coral body,
.theme-coral {
  --od-bg: #1a1215;
  --od-surface: #251a1e;
  --od-surface-hover: #302227;
  --od-border: #402d33;
  --od-border-light: #302227;
  --od-text-primary: #fff0f3;
  --od-text-secondary: #c9a0a8;
  --od-text-link: #ff6b8a;
  --od-input-bg: #302227;
  --od-surface-light: #251a1e;
  --od-glow: rgba(255, 107, 138, 0.2);
  --od-icon-color: #fff0f3;
  --od-icon-hover: #ff6b8a;
  --color-primary: #ff6b8a;
  --color-secondary: #ff8fab;
  --brand-gradient: linear-gradient(135deg, #ff6b8a 0%, #ff8fab 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(255, 107, 138, 0.15);
  --shadow-lg: 0 8px 24px rgba(255, 107, 138, 0.2);
}
html.theme-coral { background: #1a1215; }

/* Emerald - Rich green */
body.theme-emerald,
html.theme-emerald body,
.theme-emerald {
  --od-bg: #0a1a14;
  --od-surface: #10251c;
  --od-surface-hover: #163024;
  --od-border: #1f4030;
  --od-border-light: #163024;
  --od-text-primary: #e8fff2;
  --od-text-secondary: #6ee7a8;
  --od-text-link: #10b981;
  --od-input-bg: #163024;
  --od-surface-light: #10251c;
  --od-glow: rgba(16, 185, 129, 0.2);
  --od-icon-color: #e8fff2;
  --od-icon-hover: #10b981;
  --color-primary: #10b981;
  --color-secondary: #34d399;
  --brand-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(16, 185, 129, 0.15);
  --shadow-lg: 0 8px 24px rgba(16, 185, 129, 0.2);
}
html.theme-emerald { background: #0a1a14; }

/* Sapphire - Deep blue */
body.theme-sapphire,
html.theme-sapphire body,
.theme-sapphire {
  --od-bg: #0a1020;
  --od-surface: #101830;
  --od-surface-hover: #162040;
  --od-border: #1e2850;
  --od-border-light: #162040;
  --od-text-primary: #e8f0ff;
  --od-text-secondary: #8090c0;
  --od-text-link: #3b82f6;
  --od-input-bg: #162040;
  --od-surface-light: #101830;
  --od-glow: rgba(59, 130, 246, 0.2);
  --od-icon-color: #e8f0ff;
  --od-icon-hover: #3b82f6;
  --color-primary: #3b82f6;
  --color-secondary: #60a5fa;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(59, 130, 246, 0.15);
  --shadow-lg: 0 8px 24px rgba(59, 130, 246, 0.2);
}
html.theme-sapphire { background: #0a1020; }

/* Amber - Warm gold */
body.theme-amber,
html.theme-amber body,
.theme-amber {
  --od-bg: #1a1408;
  --od-surface: #251c0c;
  --od-surface-hover: #302412;
  --od-border: #453518;
  --od-border-light: #302412;
  --od-text-primary: #fffbf0;
  --od-text-secondary: #c9a860;
  --od-text-link: #f59e0b;
  --od-input-bg: #302412;
  --od-surface-light: #251c0c;
  --od-glow: rgba(245, 158, 11, 0.2);
  --od-icon-color: #fffbf0;
  --od-icon-hover: #f59e0b;
  --color-primary: #f59e0b;
  --color-secondary: #fbbf24;
  --brand-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(245, 158, 11, 0.15);
  --shadow-lg: 0 8px 24px rgba(245, 158, 11, 0.2);
}
html.theme-amber { background: #1a1408; }

/* Ensure dark theme applies to html for early loading */
html.theme-dark { background: #0f0f1a; }

/* ===== BASE RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--od-bg);
  color: var(--od-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--od-text-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* ===== TOP NAVIGATION BAR (Modern Desktop Style) ===== */
.od-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--od-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--od-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.od-top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
}

.od-logo {
  font-size: 28px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.5px;
}

.od-search-bar {
  display: flex;
  align-items: center;
  background: var(--od-input-bg);
  border: 1px solid var(--od-border);
  border-radius: 12px;
  padding: 10px 18px;
  width: 320px;
  transition: all 0.3s ease;
}

.od-search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--od-glow);
}

.od-search-bar .search-icon {
  width: 18px;
  height: 18px;
  color: var(--od-text-secondary);
  margin-right: 10px;
}

.od-search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--od-text-primary);
}

.od-search-bar input::placeholder {
  color: var(--od-text-secondary);
}

.od-nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.od-nav-icons a,
.od-nav-icons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.od-nav-icons a:hover,
.od-nav-icons button:hover {
  background: var(--od-surface-hover);
}

.od-nav-icon {
  width: 24px !important;
  height: 24px !important;
  cursor: pointer;
  color: var(--od-icon-color, var(--od-text-primary));
  transition: color 0.2s, transform 0.2s;
}

.od-nav-icons a:hover .od-nav-icon,
.od-nav-icons button:hover .od-nav-icon {
  color: var(--od-icon-hover, var(--od-text-primary));
}

.od-nav-icon.active {
  color: var(--od-text-primary);
  /*stroke-width: 3px;*/
}

/* Fillable icons */
.od-nav-icon.active.lucide-heart,
.od-nav-icon.active.lucide-user,
.od-nav-icon.active.lucide-bookmark,
.od-nav-icon.active.lucide-star,
.od-nav-icon.active.lucide-send {
  fill: var(--od-text-primary);
  stroke-width: 2px;
}

/* Non-fillable icons (keep bold) */
.od-nav-icon.active.lucide-home,
.od-nav-icon.active.lucide-plus-square,
.od-nav-icon.active.lucide-compass,
.od-nav-icon.active.lucide-search,
.od-nav-icon.active.lucide-message-circle {
  fill: none;
}

.od-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--color-primary);
}

.od-nav-avatar.active {
  border: 2px solid var(--od-text-primary);
}

.od-nav-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-nav-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--od-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-nav-avatar-placeholder i,
.od-nav-avatar-placeholder svg {
  width: 18px;
  height: 18px;
  color: var(--od-text-secondary);
}

.od-nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--brand-gradient);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ===== BOTTOM NAVIGATION BAR (Modern Mobile Style) ===== */
.od-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--od-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--od-border);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.od-bottom-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
  background: none;
  border: none;
}

.od-bottom-nav-item:hover {
  opacity: 0.6;
}

.od-bottom-nav-item svg {
  width: 26px;
  height: 26px;
  color: var(--od-text-primary);
}

/* Mobile-specific bottom nav adjustments */
@media (max-width: 768px) {
  .od-bottom-nav {
    display: flex;
    height: 72px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    padding-top: 6px;
  }

  .od-bottom-nav-item {
    padding: 6px 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .od-bottom-nav-item svg {
    width: 30px;
    height: 30px;
  }

  .od-bottom-nav-item .nav-avatar,
  .od-bottom-nav-item .od-nav-avatar-sm {
    width: 32px;
    height: 32px;
  }

  /* pressed state for immediate visual feedback */
  .od-bottom-nav-item.od-pressed {
    transform: translateY(1px) scale(0.995);
    opacity: 0.92;
  }

  /* increase tap targets for icons */
  .od-bottom-nav-item .od-icon,
  .od-bottom-nav-item img {
    pointer-events: none;
  }
}

.od-bottom-nav-item.active svg {
  stroke-width: 3px;
}

.od-bottom-nav-item.active svg.lucide-heart,
.od-bottom-nav-item.active svg.lucide-user,
.od-bottom-nav-item.active svg.lucide-send {
  fill: var(--od-text-primary);
  stroke-width: 2px;
}

.od-bottom-nav-item.active svg.lucide-home,
.od-bottom-nav-item.active svg.lucide-plus-square,
.od-bottom-nav-item.active svg.lucide-compass,
.od-bottom-nav-item.active svg.lucide-search {
  fill: none;
}

.od-bottom-nav-item .nav-avatar,
.od-bottom-nav-item .od-nav-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  border: 1px solid transparent;
}

.od-bottom-nav-item.active .nav-avatar,
.od-bottom-nav-item.active .od-nav-avatar-sm {
  border: 2px solid var(--od-text-primary);
}

/* Navbar link and button styles */
.od-nav-link,
.od-nav-btn {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.od-nav-link.active .od-nav-icon {
  fill: var(--od-text-primary);
}

.od-nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  background: var(--od-error);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.od-nav-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  border: 1px solid var(--od-border);
}

.od-nav-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-nav-avatar-placeholder svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* ===== SLIDE PANELS (Shared) ===== */
.od-slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--od-surface);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.od-panel-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--od-border);
  flex-shrink: 0;
}

.od-panel-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-panel-back:hover {
  background: var(--od-surface-hover);
}

.od-panel-back svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
}

.od-panel-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--od-text-primary);
}

.od-panel-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-panel-action svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
}

.od-panel-body {
  flex: 1;
  overflow-y: auto;
}

/* Chat items in panel */
.od-chat-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.od-chat-item:hover {
  background: var(--od-surface-hover);
}

.od-chat-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-chat-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 20px;
}

.od-chat-avatar-group {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-chat-avatar-group svg {
  width: 24px;
  height: 24px;
  color: white;
}

.od-chat-info {
  flex: 1;
  min-width: 0;
}

.od-chat-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-chat-preview {
  display: block;
  font-size: 14px;
  color: var(--od-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-chat-badge {
  min-width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Activity items in panel */
.od-activity-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--od-border-light);
}

.od-activity-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-activity-info {
  flex: 1;
}

.od-activity-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
  margin-right: 4px;
}

.od-activity-text {
  font-size: 14px;
  color: var(--od-text-primary);
}

.od-activity-time {
  display: block;
  font-size: 12px;
  color: var(--od-text-secondary);
  margin-top: 2px;
}

/* Search modal styles */
.od-search-modal {
  max-width: 100%;
  width: 100%;
  height: 100vh;
  border-radius: 0;
  max-height: 100vh;
}

.od-search-input {
  flex: 1;
  border: none;
  background: var(--od-bg);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--od-text-primary);
  margin: 0 var(--spacing-md);
}

.od-search-input:focus {
  outline: none;
}

.od-search-placeholder {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--od-text-secondary);
}

.od-search-result {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.od-search-result:hover {
  background: var(--od-surface-hover);
}

.od-search-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-search-info {
  display: flex;
  flex-direction: column;
}

.od-search-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
}

.od-search-name {
  font-size: 14px;
  color: var(--od-text-secondary);
}

/* Empty states */
.od-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
  text-align: center;
}

.od-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--od-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.od-empty-state h3 {
  font-size: 18px;
  color: var(--od-text-primary);
  margin-bottom: var(--spacing-sm);
}

.od-empty-state p {
  font-size: 14px;
  color: var(--od-text-secondary);
}

.od-loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: var(--od-text-secondary);
}

.od-error-text {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--od-error);
}

.od-modal-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-modal-back svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
}

/* ===== MAIN LAYOUT (Odnix Style) ===== */
.od-main-layout {
  /* display: flex; */
  justify-content: center;
  padding-top: 60px;
  min-height: 100vh;
}

.od-feed-container {
  display: flex;
  gap: var(--spacing-3xl);
  padding: var(--spacing-xl) var(--spacing-lg);
  max-width: calc(var(--feed-width) + var(--sidebar-width) + 64px);
}

.od-feed {
  width: var(--feed-width);
  max-width: 100%;
}

.od-sidebar {
  width: var(--sidebar-width);
  position: sticky;
  top: 84px;
  height: fit-content;
}

/* ===== STORIES SECTION (Odnix Style) ===== */
.od-stories {
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) 0;
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.od-stories-container {
  display: flex;
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-lg);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.od-stories-container::-webkit-scrollbar {
  display: none;
}

.od-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.od-story-ring {
  width: 66px;
  height: 66px;
  border-radius: var(--radius-story);
  padding: 3px;
  background: var(--moment-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.od-story-ring:hover {
  transform: scale(1.05);
}

.od-story-ring.brand-gradient {
  background: var(--brand-gradient);
}

.od-story-ring.viewed {
  background: var(--od-border);
}

.od-story-ring.add-story {
  background: transparent;
  border: 2px dashed var(--od-border);
  position: relative;
}

/* Commented the duplicate + icon inside the big one for add story
.od-story-ring.add-story::after {
  content: '+';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--od-bg);
}
*/

.od-story-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  background: var(--od-bg);
  border: 3px solid var(--od-bg);
}

.od-story-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  border: 3px solid var(--od-bg);
}

.od-story-username {
  font-size: 12px;
  color: var(--od-text-primary);
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* ===== POST CARD (Odnix Style) ===== */
.od-post {
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.od-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--spacing-lg);
}

.od-post-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.od-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-post-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}

.od-post-user-info {
  display: flex;
  flex-direction: column;
}

.od-post-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
}

.od-post-location {
  font-size: 12px;
  color: var(--od-text-primary);
}

.od-post-more {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: var(--od-text-primary);
}

.od-post-more svg {
  width: 24px;
  height: 24px;
}

/* Post Image/Media */
.od-post-media {
  width: 100%;
  aspect-ratio: 1;
  background: var(--od-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.od-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.od-post-media.no-media {
  display: none;
}

/* Post Actions */
.od-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-lg);
}

.od-post-actions-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.od-post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  margin: calc(var(--spacing-sm) * -1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}

.od-post-action-btn:hover {
  opacity: 0.7;
  background: transparent !important;
}

.od-post-action-btn:active {
  transform: scale(0.9);
  background: transparent !important;
}

.od-post-action-btn svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
  transition: all 0.2s ease;
  fill: none;
}

.od-post-action-btn.liked svg {
  color: var(--color-primary) !important;
  stroke: var(--color-primary) !important;
  fill: none !important;
  filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.4));
}

.od-post-action-btn.liked {
  animation: likeAnimation 0.3s ease;
}

.od-post-action-btn.disliked svg {
  color: #ff6b6b !important;
  stroke: #ff6b6b !important;
  fill: none !important;
  filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.4));
}

.od-post-action-btn.disliked {
  animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* Post Details */
.od-post-details {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.od-post-likes {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.od-post-caption {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
}

.od-post-caption .username {
  font-weight: 600;
  margin-right: var(--spacing-xs);
}

.od-post-view-comments {
  font-size: 14px;
  color: var(--od-text-secondary);
  cursor: pointer;
  margin-bottom: var(--spacing-sm);
}

.od-post-time {
  font-size: 10px;
  color: var(--od-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Post Comment Input */
.od-post-comment-input {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--od-border-light);
}

.od-post-comment-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--od-text-primary);
  background: transparent;
}

.od-post-comment-input input::placeholder {
  color: var(--od-text-secondary);
}

.od-post-comment-input button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.od-post-comment-input button:hover {
  opacity: 1;
}

.od-post-comment-input button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ===== SIDEBAR (Odnix Style) ===== */
.od-sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.od-sidebar-user-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.od-sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-sidebar-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 20px;
}

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

.od-sidebar-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
}

.od-sidebar-name {
  font-size: 14px;
  color: var(--od-text-secondary);
}

.od-sidebar-switch {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

/* Suggestions */
.od-suggestions {
  margin-bottom: var(--spacing-lg);
}

.od-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.od-suggestions-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-secondary);
}

.od-suggestions-see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--od-text-primary);
  cursor: pointer;
}

.od-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.od-suggestion-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.od-suggestion-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-suggestion-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}

.od-suggestion-info {
  display: flex;
  flex-direction: column;
}

.od-suggestion-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
}

.od-suggestion-reason {
  font-size: 12px;
  color: var(--od-text-secondary);
}

.od-follow-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.od-follow-btn:hover {
  opacity: 0.7;
}

.od-follow-btn.following {
  color: var(--od-text-primary);
}

/* Footer Links */
.od-footer-links {
  margin-top: var(--spacing-xl);
}

.od-footer-links a {
  font-size: 11px;
  color: var(--od-text-secondary);
  margin-right: var(--spacing-sm);
}

.od-footer-links a:hover {
  text-decoration: underline;
}

.od-footer-copyright {
  font-size: 11px;
  color: var(--od-text-secondary);
  margin-top: var(--spacing-lg);
  text-transform: uppercase;
}

/* ===== PROFILE PAGE (Odnix Style) ===== */
.od-profile-container {
  padding-top: 60px;
  min-height: 100vh;
  background: var(--od-bg);
}

.od-profile {
  max-width: 935px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--od-bg);
}

.od-profile-header {
  display: flex;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  /* border-bottom: 1px solid var(--od-border); - COMMENTED OUT: highlights section disabled */
}

.od-profile-avatar-container {
  flex-shrink: 0;
}

.od-profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-profile-avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 48px;
}

.od-profile-info {
  flex: 1;
}

.od-profile-top {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.od-profile-username {
  font-size: 20px;
  font-weight: 400;
  color: var(--od-text-primary);
}

.od-profile-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.od-profile-btn {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--od-surface-hover);
  color: var(--od-text-primary);
  border: none;
  text-decoration: none;
  display: inline-block;
}

.od-profile-btn:hover {
  opacity: 0.8;
  background: var(--od-border);
}

.od-profile-btn.primary {
  background: var(--color-primary);
  color: white;
  border: none;
}

.od-profile-btn.primary:hover {
  background: var(--color-primary-dark);
}

.od-profile-btn.secondary {
  background: var(--od-surface);
  color: var(--od-text-primary);
  border: 1px solid var(--od-border);
}

.od-profile-btn.following {
  background: var(--od-surface-hover);
  color: var(--od-text-primary);
}

.od-profile-stats {
  display: flex;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-xl);
}

.od-profile-stat {
  font-size: 16px;
  color: var(--od-text-primary);
  cursor: pointer;
}

.od-profile-stat strong,
.od-stat-count {
  font-weight: 600;
  color: var(--od-text-primary);
  margin-right: 4px;
}

.od-stat-label {
  color: var(--od-text-primary);
  font-weight: 400;
}

.od-profile-bio {
  max-width: 400px;
}

.od-profile-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--od-text-primary);
}

.od-profile-bio-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--od-text-primary);
}

.od-profile-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--od-text-secondary);
  margin-top: var(--spacing-sm);
}

/* Profile Username Row */
.od-profile-username-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.od-profile-settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.od-profile-settings-btn:hover {
  background: var(--od-surface-hover);
}

.od-profile-settings-btn svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
}

/* Profile Avatar Ring */
.od-profile-avatar-section {
  flex-shrink: 0;
}

.od-profile-avatar-ring {
  padding: 3px;
  background: var(--moment-gradient);
  border-radius: var(--radius-story);
  cursor: pointer;
}

.od-profile-avatar-ring.no-story {
  background: var(--od-border);
  cursor: default;
}

.od-profile-avatar-ring .od-profile-avatar {
  border: 3px solid var(--od-surface);
}

/* Mobile Stats */
.od-profile-stats-mobile {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--od-border);
  border-bottom: 1px solid var(--od-border);
  margin-bottom: var(--spacing-lg);
}

.od-profile-stats-mobile .od-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Profile Highlights */
.od-highlights {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  overflow-x: auto;
}

.od-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.od-highlight-add {
  width: 77px;
  height: 77px;
  border-radius: var(--radius-avatar);
  border: 1px solid var(--od-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--od-surface);
}

.od-highlight-add svg {
  width: 32px;
  height: 32px;
  color: var(--od-text-secondary);
}

.od-highlight-label {
  font-size: 12px;
  color: var(--od-text-primary);
}

/* Profile Content Grid */
.od-profile-content {
  padding-top: var(--spacing-lg);
}

.od-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.od-grid-item {
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--od-surface);
}

.od-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.od-grid-text-post {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: var(--brand-gradient);
  color: white;
  font-size: 14px;
  text-align: center;
}

.od-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.od-grid-item:hover .od-grid-overlay {
  opacity: 1;
}

.od-grid-stats {
  display: flex;
  gap: var(--spacing-xl);
  color: white;
  font-weight: 600;
}

.od-grid-stats span {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.od-grid-stats svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Desktop/Mobile visibility */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .od-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .od-profile-username-row {
    justify-content: center;
  }

  .od-profile-bio {
    max-width: 100%;
    text-align: center;
  }

  .od-posts-grid {
    gap: 2px;
  }
}

/* Profile Tabs */
.od-profile-tabs {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--od-border);
}

.od-profile-tab {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 12px;
  font-weight: 600;
  color: var(--od-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-top: 1px solid transparent;
  margin-top: -1px;
  transition: color 0.2s;
}

.od-profile-tab:hover {
  color: var(--od-text-primary);
}

.od-profile-tab.active {
  color: var(--od-text-primary);
  border-top-color: var(--od-text-primary);
}

.od-profile-tab svg {
  width: 12px;
  height: 12px;
}

/* Profile Grid */
.od-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.od-profile-grid-item {
  aspect-ratio: 1;
  background: var(--od-bg);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.od-profile-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.od-profile-grid-item:hover img {
  opacity: 0.7;
}

.od-profile-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  opacity: 0;
  transition: opacity 0.2s;
}

.od-profile-grid-item:hover .od-profile-grid-overlay {
  opacity: 1;
}

.od-profile-grid-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: white;
  font-weight: 600;
}

/* ===== DIRECT MESSAGES / CHAT (Odnix Style) ===== */
.od-direct {
  display: flex;
  height: calc(100vh - 60px);
  margin-top: 60px;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 935px;
  margin-left: auto;
  margin-right: auto;
}

.od-direct-sidebar {
  width: 350px;
  border-right: 1px solid var(--od-border);
  display: flex;
  flex-direction: column;
}

.od-direct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--od-border);
  height: 60px;
}

.od-direct-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.od-direct-new {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-direct-new svg {
  width: 24px;
  height: 24px;
}

.od-direct-list {
  flex: 1;
  overflow-y: auto;
}

.od-direct-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  cursor: pointer;
  transition: background 0.2s;
}

.od-direct-item:hover {
  background: var(--od-bg);
}

.od-direct-item.active {
  background: var(--od-bg);
}

.od-direct-item-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  flex-shrink: 0;
}

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

.od-direct-item-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--od-text-primary);
  margin-bottom: 2px;
}

.od-direct-item-preview {
  font-size: 14px;
  color: var(--od-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-direct-item-time {
  font-size: 14px;
  color: var(--od-text-secondary);
  flex-shrink: 0;
}

.od-direct-item.unread .od-direct-item-name {
  font-weight: 600;
}

.od-direct-item.unread .od-direct-item-preview {
  color: var(--od-text-primary);
  font-weight: 600;
}

/* Chat Area */
.od-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.od-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--od-border);
  height: 60px;
}

.od-chat-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.od-chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-chat-username {
  font-size: 16px;
  font-weight: 600;
}

.od-chat-actions {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.od-chat-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: var(--od-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s, color 0.2s;
}

.od-chat-action:hover {
  background: var(--od-surface-hover);
  color: var(--color-primary);
}

.od-chat-action svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

/* Messages */
.od-chat-messages {
  flex: 1;
  padding: var(--spacing-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.od-message {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-sm);
  max-width: 65%;
}

.od-message.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.od-message-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  flex-shrink: 0;
}

.od-message-bubble {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.od-message:not(.own) .od-message-bubble {
  background: var(--od-bg);
  color: var(--od-text-primary);
  border-bottom-left-radius: 4px;
}

.od-message.own .od-message-bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.od-message-time {
  font-size: 11px;
  color: var(--od-text-secondary);
  margin-top: var(--spacing-xs);
  text-align: center;
}

/* Chat Input */
.od-chat-input {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-top: 1px solid var(--od-border);
}

.od-chat-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--od-bg);
  border: 1px solid var(--od-border);
  border-radius: 22px;
  padding: var(--spacing-sm) var(--spacing-lg);
}

.od-chat-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--od-text-primary);
}

.od-chat-input-wrapper input::placeholder {
  color: var(--od-text-secondary);
}

.od-chat-emoji {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.od-chat-emoji svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-secondary);
}

.od-chat-send {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: var(--spacing-sm);
  transition: opacity 0.2s;
}

.od-chat-send:hover {
  opacity: 0.7;
}

.od-chat-send:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ===== AUTH PAGES (Odnix Style) ===== */
.od-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  background: var(--od-bg);
}

.od-auth-card {
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-3xl) var(--spacing-3xl);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.od-auth-logo {
  font-size: 3rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xl);
}

.od-auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.od-auth-input {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--od-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--od-bg);
  color: var(--od-text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.od-auth-input:focus {
  border-color: var(--od-text-secondary);
}

.od-auth-input::placeholder {
  color: var(--od-text-secondary);
}

.od-auth-btn {
  width: 100%;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: var(--spacing-sm);
  transition: opacity 0.2s;
}

.od-auth-btn:hover {
  opacity: 0.9;
}

.od-auth-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.od-auth-divider {
  display: flex;
  align-items: center;
  margin: var(--spacing-xl) 0;
}

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

.od-auth-divider span {
  padding: 0 var(--spacing-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--od-text-secondary);
  text-transform: uppercase;
}

.od-auth-switch {
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  width: 100%;
  max-width: 350px;
  text-align: center;
  font-size: 14px;
}

.od-auth-switch a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== MODALS / BOTTOM SHEETS (Odnix Style) ===== */
.od-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.od-modal {
  background: var(--od-surface);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.od-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--od-border);
}

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

.od-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-modal-close svg {
  width: 24px;
  height: 24px;
}

.od-modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  max-height: calc(90vh - 60px);
}

/* Bottom Sheet (Mobile) */
.od-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--od-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  z-index: 1001;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.od-bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--od-border);
  border-radius: 2px;
  margin: var(--spacing-md) auto;
}

.od-bottom-sheet-content {
  padding: var(--spacing-lg);
  padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

.od-bottom-sheet-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  cursor: pointer;
  font-size: 16px;
}

.od-bottom-sheet-item svg {
  width: 24px;
  height: 24px;
}

.od-bottom-sheet-item.danger {
  color: var(--od-error);
}

/* ===== STORY VIEWER (Modern Full-screen Style) ===== */
.od-story-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide bottom navbar when story viewer is open */
body.story-viewer-open .od-bottom-nav {
  display: none !important;
}

body.story-viewer-open {
  overflow: hidden;
}

.od-story-viewer-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 750px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.od-story-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: var(--spacing-sm);
  z-index: 10;
}

.od-story-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  overflow: hidden;
}

.od-story-progress-fill {
  height: 100%;
  background: white;
  width: 0%;
  transition: width 0.1s linear;
}

.od-story-progress-fill.complete {
  width: 100%;
}

.od-story-header {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-lg);
  z-index: 10;
}

.od-story-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.od-story-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  border: 2px solid white;
}

.od-story-user-name {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.od-story-user-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.od-story-actions-top {
  display: flex;
  gap: var(--spacing-lg);
}

.od-story-action-top {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-story-action-top svg {
  width: 24px;
  height: 24px;
  color: white;
}

.od-story-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-story-content img,
.od-story-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.od-story-text-content {
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.od-story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  cursor: pointer;
  z-index: 5;
}

.od-story-nav.prev {
  left: 0;
}

.od-story-nav.next {
  right: 0;
}

.od-story-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  z-index: 10;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.od-story-reply {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.od-story-reply-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: white;
  font-size: 14px;
  outline: none;
}

.od-story-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.od-story-reply-actions {
  display: flex;
  gap: var(--spacing-md);
}

.od-story-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-story-reply-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ===== CREATE POST MODAL (Odnix Style) ===== */
.od-create-modal {
  background: var(--od-surface);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
}

.od-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--od-border);
}

.od-create-title {
  font-size: 16px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.od-create-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-create-next {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.od-create-body {
  display: flex;
  min-height: 400px;
}

.od-create-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--od-bg);
}

.od-create-dropzone {
  text-align: center;
  padding: var(--spacing-3xl);
}

.od-create-dropzone svg {
  width: 80px;
  height: 80px;
  color: var(--od-text-primary);
  margin-bottom: var(--spacing-lg);
}

.od-create-dropzone h3 {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: var(--spacing-lg);
  color: var(--od-text-primary);
}

.od-create-select-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.od-create-sidebar {
  width: 340px;
  border-left: 1px solid var(--od-border);
  display: flex;
  flex-direction: column;
}

.od-create-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.od-create-textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 var(--spacing-lg);
  font-size: 16px;
  resize: none;
  font-family: inherit;
  color: var(--od-text-primary);
}

.od-create-textarea::placeholder {
  color: var(--od-text-secondary);
}

/* ===== NOTIFICATIONS (Odnix Style) ===== */
/* Toast notifications hidden - using console only */
.od-notification {
  display: none !important;
}

@keyframes notificationSlideUp {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ===== LOADING STATES ===== */
.od-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
}

.od-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--od-border);
  border-top-color: var(--od-text-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

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

/* ===== EMPTY STATES ===== */
.od-empty {
  text-align: center;
  padding: var(--spacing-3xl);
}

.od-empty svg {
  width: 64px;
  height: 64px;
  color: var(--od-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.od-empty h3 {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: var(--spacing-sm);
}

.od-empty p {
  color: var(--od-text-secondary);
  font-size: 14px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 935px) {
  .od-sidebar {
    display: none;
  }

  .od-feed {
    max-width: 100%;
  }

  .od-feed-container {
    padding: 0;
  }

  .od-profile-header {
    flex-direction: column;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .od-profile-avatar,
  .od-profile-avatar-placeholder {
    width: 77px;
    height: 77px;
    font-size: 28px;
  }

  .od-profile-top {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .od-profile-stats {
    justify-content: center;
  }

  .od-direct {
    border: none;
    border-radius: 0;
    height: 100vh;
    margin-top: 0;
  }

  .od-direct-sidebar {
    width: 100%;
    display: none;
  }

  .od-direct-sidebar.active {
    display: flex;
  }

  .od-chat.hidden {
    display: none;
  }
}

@media (max-width: 768px) {
  .od-top-nav {
    display: none;
  }

  .od-bottom-nav {
    display: flex;
  }

  .od-main-layout {
    padding-top: 0;
    padding-bottom: 50px;
  }

  .od-stories {
    border-radius: 16px;
    margin: 8px;
  }

  .od-post {
    border-radius: 16px;
    margin: 8px;
    margin-bottom: var(--spacing-md);
  }

  .od-profile {
    padding: 0;
  }

  .od-profile-tabs {
    justify-content: space-around;
  }

  .od-profile-tab span {
    display: none;
  }

  .od-profile-grid {
    gap: 1px;
  }
}

/* ===== UTILITY CLASSES ===== */
.od-hidden {
  display: none !important;
}

.od-visible {
  display: block !important;
}

.od-flex {
  display: flex !important;
}

.od-text-center {
  text-align: center;
}

.od-mt-sm {
  margin-top: var(--spacing-sm);
}

.od-mt-md {
  margin-top: var(--spacing-md);
}

.od-mt-lg {
  margin-top: var(--spacing-lg);
}

.od-mt-xl {
  margin-top: var(--spacing-xl);
}

.od-mb-sm {
  margin-bottom: var(--spacing-sm);
}

.od-mb-md {
  margin-bottom: var(--spacing-md);
}

.od-mb-lg {
  margin-bottom: var(--spacing-lg);
}

.od-mb-xl {
  margin-bottom: var(--spacing-xl);
}

/* ===== PROFILE PAGE SPECIFIC STYLES ===== */
.od-profile-container {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.od-profile {
  max-width: 935px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

/* Profile Header */
.od-profile-header {
  display: flex;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  /* border-bottom: 1px solid var(--od-border-light); - COMMENTED OUT: highlights section disabled */
}

.od-profile-avatar-section {
  flex-shrink: 0;
}

.od-profile-avatar-container {
  width: 150px;
  height: 150px;
}

.od-profile-avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-story);
  padding: 4px;
  background: var(--moment-gradient);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-profile-avatar-ring.no-story {
  background: var(--od-border);
  cursor: default;
}

.od-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  border: 3px solid var(--od-surface);
}

.od-profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-avatar);
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  border: 3px solid var(--od-surface);
}

/* Profile Info */
.od-profile-info {
  flex: 1;
  min-width: 0;
}

.od-profile-username-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.od-profile-username {
  font-size: 20px;
  font-weight: 400;
  color: var(--od-text-primary);
}

.od-profile-btn {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.od-profile-btn:not(.primary):not(.following):not(.secondary):not(.blocked) {
  background: var(--od-bg);
  color: var(--od-text-primary);
}

.od-profile-btn:not(.primary):not(.following):not(.secondary):not(.blocked):hover {
  background: var(--od-border-light);
}

.od-profile-btn.primary {
  background: var(--color-primary);
  color: white;
}

.od-profile-btn.primary:hover {
  background: var(--color-primary-dark);
}

.od-profile-btn.following {
  background: var(--od-bg);
  color: var(--od-text-primary);
}

.od-profile-btn.secondary {
  background: var(--od-bg);
  color: var(--od-text-primary);
}

.od-profile-btn.blocked {
  background: var(--od-border-light);
  color: var(--od-text-secondary);
  cursor: not-allowed;
}

.od-profile-settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-profile-settings-btn svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
}

/* Profile Stats */
.od-profile-stats {
  display: flex;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-xl);
}

.od-profile-stat {
  display: flex;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.od-stat-count {
  font-weight: 600;
}

.od-stat-label {
  color: var(--od-text-primary);
}

/* Mobile Stats */
.od-profile-stats-mobile {
  display: none;
  justify-content: space-around;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--od-border-light);
  border-bottom: 1px solid var(--od-border-light);
  margin: 0 calc(-1 * var(--spacing-lg));
  text-align: center;
}

.od-profile-stats-mobile .od-profile-stat {
  flex-direction: column;
  gap: 2px;
}

.od-profile-stats-mobile .od-stat-count {
  font-size: 16px;
}

.od-profile-stats-mobile .od-stat-label {
  font-size: 14px;
  color: var(--od-text-secondary);
}

/* Bio */
.od-profile-bio {
  line-height: 1.5;
}

.od-profile-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.od-profile-bio-text {
  font-size: 14px;
  margin-bottom: var(--spacing-xs);
}

.od-profile-location {
  font-size: 14px;
  color: var(--od-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Highlights */
.od-highlights {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.od-highlights::-webkit-scrollbar {
  display: none;
}

.od-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.od-highlight-add {
  width: 77px;
  height: 77px;
  border-radius: var(--radius-avatar);
  border: 1px solid var(--od-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--od-surface);
}

.od-highlight-add svg {
  width: 32px;
  height: 32px;
  color: var(--od-text-secondary);
}

.od-highlight-label {
  font-size: 12px;
  color: var(--od-text-primary);
  font-weight: 600;
  max-width: 77px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Profile Tabs */
.od-profile-tabs {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--od-border-light);
  margin-top: var(--spacing-lg);
}

.od-profile-tab {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-lg) var(--spacing-xl);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--od-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.od-profile-tab.active {
  color: var(--od-text-primary);
}

.od-profile-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--od-text-primary);
}

.od-profile-tab svg {
  width: 12px;
  height: 12px;
}

/* Posts Grid */
.od-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--spacing-sm);
}

.od-grid-item {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  background: var(--od-bg);
}

.od-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.od-grid-item:hover img {
  opacity: 0.7;
}

.od-grid-item:hover .od-grid-overlay {
  opacity: 1;
}

.od-grid-text-post {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: var(--brand-gradient);
  color: white;
  text-align: center;
}

.od-grid-text-post p {
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
}

.od-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.od-grid-stats {
  display: flex;
  gap: var(--spacing-xl);
  color: white;
  font-weight: 600;
}

.od-grid-stats span {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.od-grid-stats svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* No Posts State */
.od-no-posts {
  padding: var(--spacing-3xl);
  text-align: center;
}

.od-no-posts-icon {
  width: 62px;
  height: 62px;
  border: 2px solid var(--od-text-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.od-no-posts-icon svg {
  width: 28px;
  height: 28px;
}

.od-no-posts h3 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: var(--spacing-sm);
}

.od-no-posts p {
  color: var(--od-text-secondary);
  font-size: 14px;
}

/* Private Profile */
.od-private-profile {
  padding: var(--spacing-3xl);
  text-align: center;
}

.od-private-icon {
  width: 62px;
  height: 62px;
  border: 2px solid var(--od-text-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.od-private-icon svg {
  width: 28px;
  height: 28px;
}

.od-private-profile h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.od-private-profile p {
  font-size: 14px;
  color: var(--od-text-secondary);
}

/* ===== POST DETAIL MODAL - PROFESSIONAL REDESIGN ===== */

/* Close button */
.od-detail-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.od-detail-close-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.od-detail-close-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Main wrapper */
.od-post-detail-wrapper {
  display: flex;
  background: var(--od-surface);
  border-radius: 8px;
  overflow: hidden;
  max-width: 1100px;
  max-height: 90vh;
  width: 95vw;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Media section */
.od-post-detail-media {
  flex: 1;
  max-width: 700px;
  min-width: 400px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.od-post-detail-media img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.od-post-detail-media.text-only {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 500px;
}

.od-detail-text-post {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
  min-height: 100%;
  width: 100%;
}

.od-detail-text-post p {
  font-size: 28px;
  font-weight: 500;
  color: white;
  line-height: 1.5;
  max-width: 500px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.od-post-detail-sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--od-border);
  background: var(--od-surface);
  max-height: 90vh;
}

/* Header */
.od-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--od-border);
}

.od-detail-user {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.od-detail-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--od-surface), var(--od-surface)) padding-box,
    linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
}

.od-detail-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.od-detail-username {
  font-weight: 600;
  font-size: 14px;
  color: var(--od-text-primary);
}

.od-detail-username:hover {
  text-decoration: underline;
}

.od-detail-location {
  font-size: 12px;
  color: var(--od-text-secondary);
}

.od-detail-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.od-detail-more-btn:hover {
  background: var(--od-surface-hover);
}

.od-detail-more-btn svg {
  width: 20px;
  height: 20px;
  color: var(--od-text-primary);
}

/* Comments section */
.od-detail-comments {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--od-border) transparent;
}

.od-detail-comments::-webkit-scrollbar {
  width: 4px;
}

.od-detail-comments::-webkit-scrollbar-thumb {
  background: var(--od-border);
  border-radius: 4px;
}

/* Caption */
.od-detail-caption-content {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--od-border-light);
}

.od-detail-caption-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  flex-shrink: 0;
}

.od-detail-caption-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.od-detail-caption-username {
  font-weight: 600;
  font-size: 14px;
  color: var(--od-text-primary);
  margin-right: 6px;
}

.od-detail-caption-body {
  font-size: 14px;
  color: var(--od-text-primary);
  line-height: 1.5;
}

.od-detail-caption-time {
  font-size: 12px;
  color: var(--od-text-secondary);
  margin-top: 4px;
}

/* Comments */
.od-detail-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.od-detail-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  flex-shrink: 0;
}

.od-detail-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.od-detail-comment-username {
  font-weight: 600;
  font-size: 14px;
  color: var(--od-text-primary);
  margin-right: 6px;
}

.od-detail-comment-text {
  font-size: 14px;
  color: var(--od-text-primary);
  line-height: 1.4;
}

.od-detail-comment-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.od-detail-comment-time {
  font-size: 12px;
  color: var(--od-text-secondary);
}

.od-detail-comment-reply {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--od-text-secondary);
  cursor: pointer;
  padding: 0;
}

.od-detail-comment-reply:hover {
  color: var(--od-text-primary);
}

.od-detail-comment-like {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.od-detail-comment-like svg {
  width: 12px;
  height: 12px;
  color: var(--od-text-secondary);
}

.od-detail-comment-like:hover svg {
  color: var(--od-text-primary);
}

.od-detail-no-comments {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--od-text-secondary);
}

.od-detail-no-comments p {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
  margin-bottom: 4px;
}

.od-detail-no-comments span {
  font-size: 14px;
}

/* Actions */
.od-detail-actions {
  padding: 8px 16px;
  border-top: 1px solid var(--od-border);
}

.od-detail-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.od-detail-actions-left {
  display: flex;
  gap: 4px;
}

.od-detail-action-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-detail-action-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
  background: transparent !important;
}

.od-detail-action-btn svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
  fill: none;
}

.od-detail-action-btn.liked svg {
  color: var(--color-primary) !important;
  stroke: var(--color-primary) !important;
  fill: none !important;
  filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.4));
}

.od-detail-action-btn.disliked svg {
  color: #ff6b6b !important;
  stroke: #ff6b6b !important;
  fill: none !important;
  filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.4));
}

/* Info section */
.od-detail-info {
  padding: 0 16px 12px;
}

.od-detail-likes {
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text-primary);
  margin-bottom: 6px;
}

.od-detail-like-count {
  font-weight: 600;
}

.od-detail-time {
  font-size: 10px;
  color: var(--od-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Comment form */
.od-detail-comment-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--od-border);
}

.od-emoji-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.od-emoji-btn svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
}

.od-detail-comment-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--od-text-primary);
}

.od-detail-comment-input::placeholder {
  color: var(--od-text-secondary);
}

.od-post-comment-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.od-post-comment-btn:hover {
  opacity: 1;
}

/* ===== POST DETAIL RESPONSIVE - MOBILE ===== */
@media (max-width: 935px) {
  .od-post-detail-wrapper {
    flex-direction: column;
    max-height: 100vh;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .od-post-detail-media {
    max-width: 100%;
    min-width: 100%;
    max-height: 50vh;
    min-height: 300px;
  }

  .od-post-detail-media.text-only {
    min-height: 300px;
  }

  .od-detail-text-post {
    padding: 40px 30px;
  }

  .od-detail-text-post p {
    font-size: 22px;
  }

  .od-post-detail-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--od-border);
    flex: 1;
    max-height: 50vh;
  }

  .od-detail-close-btn {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .od-detail-close-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .od-post-detail-wrapper {
    border-radius: 0;
  }

  .od-post-detail-media {
    max-height: 45vh;
    min-height: 250px;
  }

  .od-detail-text-post {
    padding: 30px 20px;
  }

  .od-detail-text-post p {
    font-size: 18px;
  }

  .od-post-detail-sidebar {
    max-height: 55vh;
  }

  .od-detail-header {
    padding: 12px;
  }

  .od-detail-comments {
    padding: 12px;
  }

  .od-detail-actions {
    padding: 6px 12px;
  }

  .od-detail-info {
    padding: 0 12px 10px;
  }

  .od-detail-comment-form {
    padding: 10px 12px;
  }

  .od-detail-action-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Settings List */
.od-settings-list {
  display: flex;
  flex-direction: column;
}

.od-settings-section {
  margin-top: var(--spacing-sm);
}

.od-settings-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--od-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-sm);
}

.od-settings-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--od-text-primary);
  text-decoration: none;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--od-border-light);
  transition: background 0.2s;
}

.od-settings-item:hover {
  background: var(--od-surface-hover);
}

.od-settings-item svg {
  width: 24px;
  height: 24px;
  color: var(--od-text-primary);
  flex-shrink: 0;
}

.od-settings-item span {
  flex: 1;
}

.od-settings-item.danger {
  color: var(--od-error);
}

.od-settings-item.danger svg {
  color: var(--od-error);
}

.od-settings-value {
  font-size: 13px;
  color: var(--od-text-secondary);
  margin-left: auto;
  padding: 4px 10px;
  background: var(--od-surface-hover);
  border-radius: 12px;
  font-weight: 500;
}

.od-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--od-border);
  position: relative;
  margin-left: auto;
  transition: background 0.2s;
}

.od-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: white;
  transition: transform 0.2s;
}

.od-toggle.active {
  background: var(--color-primary);
}

.od-toggle.active::after {
  transform: translateX(20px);
}

/* Mobile Profile Adjustments */
@media (max-width: 768px) {
  .od-profile-container {
    padding-top: 0;
  }

  .od-profile {
    padding: var(--spacing-lg);
  }

  .od-profile-header {
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
  }

  .od-profile-avatar-container {
    width: 77px;
    height: 77px;
  }

  .od-profile-avatar-placeholder {
    font-size: 24px;
  }

  .od-profile-username-row {
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
  }

  .od-profile-username {
    width: 100%;
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
  }

  .od-profile-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 16px;
    font-size: 13px;
  }

  .od-profile-settings-btn svg {
    width: 20px;
    height: 20px;
  }

  .od-profile-stats {
    display: none;
  }

  .od-profile-stats-mobile {
    display: flex;
  }

  .od-profile-bio {
    margin-top: var(--spacing-md);
  }

  .od-posts-grid {
    gap: 1px;
    margin-left: calc(-1 * var(--spacing-lg));
    margin-right: calc(-1 * var(--spacing-lg));
  }

  .od-profile-tabs {
    margin-left: calc(-1 * var(--spacing-lg));
    margin-right: calc(-1 * var(--spacing-lg));
    justify-content: space-around;
  }

  .od-profile-tab .tab-text {
    display: none;
  }

  .od-profile-tab svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== Modern DIRECT / CHAT STYLES ===== */

/* Chat Container */
.od-direct {
  display: flex;
  height: 100vh;
  background: var(--od-surface);
  margin: 0 auto;
  max-width: 935px;
}

/* Chat Sidebar */
.od-direct-sidebar {
  width: 350px;
  border-right: 1px solid var(--od-border);
  display: flex;
  flex-direction: column;
}

.od-direct-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--od-border-light);
  min-height: 60px;
}

.od-direct-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: var(--spacing-sm);
  color: var(--od-text-primary);
}

.od-direct-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.od-direct-new {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.od-direct-new svg {
  width: 24px;
  height: 24px;
}

.od-direct-list {
  flex: 1;
  overflow-y: auto;
}

.od-direct-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.od-direct-item:hover {
  background: var(--od-bg);
}

.od-direct-item.active {
  background: var(--od-bg);
}

.od-direct-item-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  flex-shrink: 0;
}

.od-direct-item-avatar.group {
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-direct-item-avatar.group svg {
  width: 24px;
  height: 24px;
  color: white;
}

.od-direct-item-avatar.placeholder {
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

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

.od-direct-item-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-direct-item-preview {
  font-size: 14px;
  color: var(--od-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-online-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--od-success);
  flex-shrink: 0;
}

/* Chat Area */
.od-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.od-chat-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--od-border-light);
  min-height: 60px;
}

.od-chat-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: var(--spacing-sm);
  color: var(--od-text-primary);
}

.od-chat-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.od-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.od-chat-avatar.group {
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-chat-avatar.group svg {
  width: 20px;
  height: 20px;
  color: white;
}

.od-chat-avatar.placeholder {
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.od-chat-user-info {
  display: flex;
  flex-direction: column;
}

.od-chat-username {
  font-weight: 600;
  font-size: 16px;
}

.od-chat-status {
  font-size: 12px;
  color: var(--od-text-secondary);
}

.od-chat-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.od-chat-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: var(--od-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s, color 0.2s;
}

.od-chat-action:hover {
  background: var(--od-surface-hover);
  color: var(--color-primary);
}

.od-chat-action svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

/* Messages Area */
.od-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--od-border, #363636) transparent;
}

/* Custom Scrollbar for Chat Messages */
.od-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.od-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.od-chat-messages::-webkit-scrollbar-thumb {
  background: var(--od-border, #363636);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.od-chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--od-text-secondary, #737373);
  border: 2px solid transparent;
  background-clip: padding-box;
}

[data-theme="light"] .od-chat-messages::-webkit-scrollbar-thumb {
  background: var(--od-border, #dbdbdb);
  border: 2px solid transparent;
  background-clip: padding-box;
}

[data-theme="light"] .od-chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--od-text-secondary, #737373);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.od-chat-welcome {
  text-align: center;
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.od-chat-welcome-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  margin-bottom: var(--spacing-lg);
}

.od-chat-welcome-avatar.placeholder {
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
}

.od-chat-welcome-name {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
}

.od-chat-welcome-meta {
  font-size: 14px;
  color: var(--od-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.od-chat-welcome-btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--od-bg);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--od-text-primary);
}

.od-messages-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Message Bubble */
.od-message {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-sm);
  max-width: 70%;
  position: relative;
}

.od-message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.od-message.received {
  align-self: flex-start;
}

.od-message-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  flex-shrink: 0;
}

.od-message-avatar.placeholder {
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.od-message-bubble {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 22px;
  max-width: 100%;
  word-wrap: break-word;
}

.od-message.sent .od-message-bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.od-message.received .od-message-bubble {
  background: var(--od-bg);
  color: var(--od-text-primary);
  border: 1px solid var(--od-border);
  border-bottom-left-radius: 4px;
}

.od-message-sender {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.od-message-text {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.od-message-media {
  max-width: 236px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
  cursor: pointer;
}

.od-message-media img {
  width: 100%;
  display: block;
}

.od-message-time {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.85);
}

.od-message.received .od-message-time {
  color: var(--od-text-secondary, #a0a0a0);
}

[data-theme="light"] .od-message.received .od-message-time {
  color: var(--od-text-secondary, #737373);
}

.od-message.sent .od-message-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.85);
}

.od-message-time .edited {
  font-style: italic;
  margin-left: 4px;
}

/* Message Menu */
.od-message-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  color: var(--od-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.od-message:hover .od-message-menu-btn,
.od-message-menu-btn:focus,
.od-message-menu-btn.active {
  opacity: 1;
}

.od-message-menu-btn:hover {
  background: var(--od-surface-hover);
}

.od-message-menu-btn svg,
.od-message-menu-btn i {
  width: 18px;
  height: 18px;
  color: inherit;
}

/* Always show on touch devices */
@media (hover: none) {
  .od-message-menu-btn {
    opacity: 0.7;
  }
}

.od-message-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 40px;
  margin-bottom: 4px;
  background: var(--od-surface);
  border: 1px solid var(--od-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 100;
  min-width: 150px;
  flex-direction: column;
}

.od-message.sent .od-message-menu {
  right: 10px;
  left: auto;
}

.od-message-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  color: var(--od-text-primary);
  transition: background 0.15s;
}

.od-message-menu button svg,
.od-message-menu button i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.od-message-menu button:hover {
  background: var(--od-surface-hover);
}

.od-message-menu button.danger {
  color: var(--od-error, #e74c3c);
}

/* Typing Indicator */
.od-typing-indicator {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  bottom: 0;
  background: var(--od-surface);
  z-index: 10;
}

.od-typing-dots {
  display: flex;
  gap: 4px;
  padding: var(--spacing-md);
  background: var(--od-bg);
  border-radius: 16px;
}

.od-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--od-text-secondary);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.od-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.od-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Chat Footer */
.od-chat-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--od-border-light);
}

.od-chat-form {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--od-bg);
  border: 1px solid var(--od-border);
  border-radius: 22px;
  padding: var(--spacing-sm) var(--spacing-md);
}

.od-chat-emoji {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  color: var(--od-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-chat-emoji:hover {
  color: var(--color-primary);
}

.od-chat-emoji svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

.od-chat-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  padding: var(--spacing-sm) 0;
  outline: none;
}

.od-chat-input::placeholder {
  color: var(--od-text-secondary);
}

.od-chat-input-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.od-chat-attachment,
.od-chat-like,
.od-chat-send {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--od-text-primary);
  transition: color 0.2s;
}

.od-chat-attachment:hover,
.od-chat-like:hover {
  color: var(--color-primary);
}

.od-chat-attachment svg,
.od-chat-like svg,
.od-chat-send svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

.od-chat-send {
  color: var(--color-primary);
}

.od-chat-send:hover {
  color: var(--color-primary-dark);
}

/* Image Preview */
.od-image-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--od-bg);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
}

.od-image-preview img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.od-image-preview button {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* Members List */
.od-members-list {
  display: flex;
  flex-direction: column;
}

.od-member-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--od-border-light);
}

/* Mobile Chat Styles */
@media (max-width: 768px) {
  .od-direct {
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }

  .od-direct-sidebar {
    display: none;
  }

  .od-chat-back {
    display: flex;
  }

  .od-chat-back.mobile-only {
    display: flex;
  }

  .od-chat-actions {
    gap: var(--spacing-sm);
  }

  .od-chat-action svg {
    width: 20px;
    height: 20px;
  }

  .od-message {
    max-width: 85%;
  }

  .od-chat-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom, 0));
  }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   All breakpoints: 320px, 480px, 768px, 1024px, 1200px+
   ============================================ */

/* Base responsive utilities */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 768px) {
  .od-top-nav {
    display: none;
  }

  .od-top-nav-inner {
    padding: 0 12px;
  }

  .od-search-bar {
    max-width: 200px;
  }

  .od-nav-icons {
    gap: 4px;
  }

  .od-nav-item {
    padding: 10px;
  }
}

/* ===== AUTH PAGES RESPONSIVE ===== */
.od-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.od-auth-box {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .od-auth-container {
    padding: 16px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .od-auth-box {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .od-auth-logo {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .od-auth-input {
    padding: 14px 16px;
    font-size: 15px;
  }

  .od-auth-btn {
    padding: 14px 24px;
    font-size: 15px;
  }

  .od-auth-footer {
    padding: 16px;
    font-size: 13px;
  }
}

@media (max-width: 374px) {
  .od-auth-container {
    padding: 12px;
    padding-top: 24px;
  }

  .od-auth-box {
    padding: 20px 16px;
  }

  .od-auth-logo {
    font-size: 28px;
  }
}

/* ===== PROFILE PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
  .od-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }

  .od-profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .od-profile-info {
    width: 100%;
    align-items: center;
  }

  .od-profile-username-row {
    flex-direction: column;
    gap: 12px;
  }

  .od-profile-stats {
    justify-content: center;
    gap: 24px;
  }

  .od-profile-stats span {
    font-size: 14px;
  }

  .od-profile-bio {
    text-align: center;
    padding: 0 20px;
  }

  .od-profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .od-profile-post {
    aspect-ratio: 1;
  }
}

@media (max-width: 480px) {
  .od-profile-header {
    padding: 16px 12px;
  }

  .od-profile-avatar {
    width: 80px;
    height: 80px;
  }

  .od-profile-username {
    font-size: 18px;
  }

  .od-profile-stats {
    gap: 16px;
  }

  .od-profile-action-btns {
    flex-wrap: wrap;
    gap: 8px;
  }

  .od-profile-action-btns button {
    flex: 1;
    min-width: 100px;
  }
}

/* ===== DISCOVER PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
  .od-discover-container {
    padding: 12px;
  }

  .od-discover-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .od-discover-search {
    width: 100%;
  }

  .od-discover-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .od-discover-card {
    padding: 16px;
  }

  .od-discover-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .od-discover-container {
    padding: 8px;
  }

  .od-discover-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .od-discover-card {
    padding: 14px;
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }

  .od-discover-avatar {
    width: 50px;
    height: 50px;
  }

  .od-discover-info {
    flex: 1;
    min-width: 0;
  }

  .od-discover-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== MODAL RESPONSIVE ===== */
@media (max-width: 768px) {
  .od-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .od-modal {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    animation: modalSlideUpMobile 0.3s ease;
  }

  @keyframes modalSlideUpMobile {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .od-modal-header {
    padding: 16px;
  }

  .od-modal-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .od-modal {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }

  .od-modal-header {
    padding: 14px 16px;
  }

  .od-modal-body {
    padding: 14px 16px;
  }
}

/* ===== FORMS RESPONSIVE ===== */
@media (max-width: 480px) {
  .od-form-group {
    margin-bottom: 14px;
  }

  .od-form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .od-form-input,
  .od-form-textarea {
    padding: 12px 14px;
    font-size: 15px;
  }

  .od-form-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ===== BUTTONS RESPONSIVE ===== */
@media (max-width: 480px) {

  .od-btn,
  .od-btn-primary,
  .od-btn-secondary {
    padding: 12px 18px;
    font-size: 14px;
  }

  .od-btn-icon {
    padding: 10px;
  }

  .od-btn-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== CARDS RESPONSIVE ===== */
@media (max-width: 480px) {
  .od-card {
    border-radius: 12px;
    padding: 14px;
  }

  .od-card-header {
    padding: 12px 14px;
  }

  .od-card-body {
    padding: 12px 14px;
  }

  .od-card-footer {
    padding: 10px 14px;
  }
}

/* ===== SIDEBAR RESPONSIVE ===== */
@media (max-width: 1100px) {
  .od-sidebar {
    display: none;
  }

  .od-sidebar-suggestions {
    display: none;
  }
}

/* ===== ACTIVITY PANEL RESPONSIVE ===== */
@media (max-width: 768px) {
  .activity-panel {
    width: 100%;
    max-width: 100%;
  }

  .activity-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .activity-tabs::-webkit-scrollbar {
    display: none;
  }

  .activity-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ===== DM PANEL RESPONSIVE ===== */
@media (max-width: 480px) {
  .dm-panel {
    max-width: 100%;
    width: 100%;
    right: 0;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }

  .dm-header {
    padding: 14px 16px;
  }

  .dm-chat-item {
    padding: 12px 16px;
  }
}

/* ===== UTILITY RESPONSIVE CLASSES ===== */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center !important;
  }

  .flex-column-mobile {
    flex-direction: column !important;
  }

  .gap-sm-mobile {
    gap: 8px !important;
  }

  .p-sm-mobile {
    padding: 12px !important;
  }

  .w-full-mobile {
    width: 100% !important;
  }
}

/* ===== SAFE AREA INSETS FOR NOTCH DEVICES ===== */
@supports (padding: env(safe-area-inset-top)) {
  .od-top-nav {
    padding-top: env(safe-area-inset-top);
  }

  .od-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .od-main-layout {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch devices */
  .od-btn:hover,
  .od-card:hover,
  .od-nav-item:hover,
  .od-post-action-btn:hover,
  .od-follow-btn:hover,
  .od-story-item:hover {
    transform: none;
  }

  /* Make touch targets larger */
  .od-nav-item,
  .od-btn-icon,
  .od-post-action-btn,
  .od-story-action-top,
  .od-story-reply-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Active states for touch */
  .od-btn:active,
  .od-card:active,
  .od-post-action-btn:active,
  .od-follow-btn:active,
  .od-story-preset:active,
  .od-story-item:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* Story viewer touch navigation */
  .od-story-nav {
    width: 40%;
    background: transparent;
  }

  .od-story-nav:active {
    background: rgba(255, 255, 255, 0.05);
  }
}

/* ===== STORY VIEWER MOBILE FIXES ===== */
@media (max-width: 480px) {
  .od-story-viewer {
    padding: 0;
  }

  .od-story-viewer-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100%;
    border-radius: 0;
  }

  .od-story-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .od-story-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .od-story-text-content {
    font-size: 20px;
    padding: 80px 20px;
  }

  .od-story-reply {
    padding: 10px 12px;
  }

  .od-story-reply-input {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }
}

/* ============================================
   GLOBAL AVATAR OVERRIDE - ROUNDED SQUARE
   Forces all avatars/profile pics to use 22% 
   border-radius (rounded square) instead of 50%
   ============================================ */

/* Universal avatar selector - targets common avatar patterns */
img[class*="avatar"],
img[class*="Avatar"],
img[class*="profile-pic"],
img[class*="profile_pic"],
img[class*="user-pic"],
img[class*="user-image"],
.avatar,
.Avatar,
.user-avatar,
.chat-avatar,
.profile-avatar,
.scribe-avatar,
.omzo-avatar,
.story-avatar,
.comment-avatar,
.reply-avatar,
.mention-avatar,
.search-avatar,
.suggestion-avatar,
.follower-avatar,
.following-avatar,
.request-avatar,
.story-viewer-avatar,
.story-reply-avatar,
.od-nav-avatar,
.od-nav-avatar-sm,
.od-post-avatar,
.od-comment-avatar,
.od-story-avatar,
.od-sidebar-avatar,
.od-feed-avatar,
.od-profile-avatar,
.od-direct-header-avatar,
.od-chat-avatar,
.od-suggestion-avatar,
.od-user-avatar,
.od-detail-avatar {
  border-radius: 22% !important;
}

/* Story ring containers should also be rounded square */
.od-story-ring,
.story-ring,
.od-profile-avatar-ring {
  border-radius: 22% !important;
}

/* Ensure inline styled avatars are also caught */
[style*="border-radius: 50%"][class*="avatar"],
[style*="border-radius:50%"][class*="avatar"],
[style*="border-radius: 50%"][class*="profile"],
[style*="border-radius:50%"][class*="profile"] {
  border-radius: 22% !important;
}

/* ===== PROFILE PAGE AVATAR OVERRIDES - Squared Rounded ===== */
.od-profile-avatar,
.od-profile-avatar-ring,
.od-profile-avatar-container,
.od-m-avatar,
.od-m-avatar-container,
.od-profile-avatar-placeholder,
.od-post-avatar,
.od-comment-avatar,
.od-create-avatar,
.od-story-avatar,
.nav-avatar {
  border-radius: 22% !important;
}

/* Also target any fallback or error placeholders */
.od-profile-avatar-placeholder {
  border-radius: 22% !important;
}
/* Sidebar Category Buttons - Theme Aware */
.od-cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--od-bg);
    border: 1px solid var(--od-border);
    border-radius: 12px;
    font-size: 13px;
    color: var(--od-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.od-cat-btn:hover {
    background: var(--od-surface-hover);
    color: var(--od-text-primary);
}
.od-cat-btn.active {
    background: var(--od-glow);
    color: var(--color-primary);
    border-color: transparent;
    font-weight: 600;
}


/* Custom Icon Styles */
.od-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}
.od-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.od-icon.filled svg {
    fill: currentColor;
    stroke: currentColor;
}

