/* =======================================================
   FoodMigos - iOS Inspired Clean & Glassmorphism Design System
   ======================================================= */

:root {
  --primary: #FF5A36;
  --primary-hover: #E44824;
  --primary-light: #FFF0EB;
  --primary-glow: rgba(255, 90, 54, 0.28);
  
  --secondary: #FF7D54;
  --accent: #FF3B30;
  --success: #34C759;
  --success-light: #EBF9EE;
  --success-glow: rgba(52, 199, 89, 0.25);
  --warning: #FF9500;
  --warning-light: #FFF7EB;
  --danger: #FF3B30;
  --danger-light: #FEECEB;
  --info: #007AFF;
  --info-light: #EBF5FF;

  --bg: #F2F4F8;
  --bg-gradient: radial-gradient(circle at 10% 10%, rgba(255, 90, 54, 0.05) 0%, transparent 45%),
                 radial-gradient(circle at 90% 90%, rgba(52, 199, 89, 0.04) 0%, transparent 45%),
                 #F2F4F8;

  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #FFFFFF;
  --surface-hover: rgba(255, 255, 255, 0.95);
  --surface-secondary: #F8F9FC;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);

  --border: #E5E9F0;
  --border-light: #EEF1F6;
  --border-focus: #FF5A36;

  --text: #1C1C1E;
  --text-muted: #8E8E93;
  --text-light: #AEAEB2;
  --text-inverse: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', Roboto, sans-serif;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 8px 20px var(--primary-glow);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  
  --sidebar-width: 260px;
  --navbar-height: 68px;
  --mobile-nav-height: 72px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #F2F4F8;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #F2F4F8;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

/* App Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar Desktop - iOS Frosted Glass Look */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(232, 234, 237, 0.8);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.15rem;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.sidebar-logo {
  height: 38px;
  width: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  background: rgba(255, 90, 54, 0.08);
  color: var(--primary);
  transform: translateX(2px);
}

.nav-link.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-link.active i {
  color: #FFFFFF;
}

.nav-badge {
  margin-left: auto;
  background: #FF3B30;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.sidebar-cta {
  margin: 1.25rem 0;
}

.btn-add-meal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px var(--primary-glow);
  transition: all var(--transition-fast);
  text-align: center;
  width: 100%;
}

.btn-add-meal:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: #fff;
}

.btn-add-meal:active {
  transform: scale(0.98);
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.sidebar-user:hover {
  background: rgba(0, 0, 0, 0.03);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xs);
}

.user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.user-meta .user-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta .user-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* =======================================================
   Premium Navbar - Redesign 2.0
   ======================================================= */
.top-navbar {
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(220, 224, 232, 0.7);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

/* Brand Logo in Navbar (Hidden on Desktop when Sidebar is visible, shown on Mobile) */
.navbar-brand-logo {
  display: none;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.navbar-brand-logo:hover .navbar-brand-icon {
  transform: rotate(-8deg) scale(1.08);
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.navbar-brand-text strong {
  color: var(--primary);
  font-weight: 900;
}

/* Search Wrap with Autocomplete */
.navbar-search-wrap {
  position: relative;
  flex: 1;
  max-width: 360px;
  min-width: 160px;
}

.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.82rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.navbar-search-input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.5rem;
  background: rgba(0, 0, 0, 0.045);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
}

.navbar-search-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.13);
  outline: none;
}

.navbar-search-input:focus + .navbar-search-icon,
.navbar-search:focus-within .navbar-search-icon {
  color: var(--primary);
}

.navbar-search-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar-search-shortcut:hover {
  background: rgba(255, 90, 54, 0.15);
  color: var(--primary);
}

/* Autocomplete Dropdown */
.navbar-search-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-width: 200px;
}

.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 320px;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.13), 0 4px 14px rgba(0,0,0,0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 9999;
}

.search-autocomplete-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.search-autocomplete-inner {
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-of-type {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 90, 54, 0.06);
}

.search-result-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.search-result-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.search-result-name mark {
  background: rgba(255, 90, 54, 0.16);
  color: var(--primary);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 800;
  display: inline;
}

.search-result-username {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-friend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-light);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.search-no-results {
  padding: 1.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-see-all {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 90, 54, 0.04);
  border-top: 1px solid var(--border-light);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.search-see-all:hover {
  background: rgba(255, 90, 54, 0.1);
}

/* Navbar Actions Group */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* Streak Pill - Premium */
.navbar-streak-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.85rem;
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.1), rgba(255, 149, 0, 0.08));
  border: 1.5px solid rgba(255, 90, 54, 0.22);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.navbar-streak-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.2);
  background: rgba(255, 90, 54, 0.14);
}

.streak-flame {
  font-size: 1rem;
  line-height: 1;
}

.streak-count {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
  font-family: var(--font-display);
}

.streak-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Add Meal CTA in Navbar (desktop) */
.navbar-add-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--primary-glow);
  white-space: nowrap;
}

.navbar-add-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #fff;
}

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

/* Notification Icon Button */
.navbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.045);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  position: relative;
  border: 1.5px solid transparent;
}

.navbar-icon-btn:hover {
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
  border-color: rgba(255, 90, 54, 0.2);
  transform: scale(1.05);
}

.navbar-icon-btn:active {
  transform: scale(0.95);
}

.navbar-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* Avatar with online dot */
.navbar-avatar-link {
  position: relative;
  display: flex;
  flex-shrink: 0;
}

.navbar-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
  transition: all var(--transition-fast);
}

.navbar-avatar-link:hover .navbar-avatar-img {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.25);
}

.navbar-avatar-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

/* Keep action-btn for backwards compat */
.action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition-fast);
  position: relative;
}

.action-btn:hover {
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
  transform: scale(1.05);
}

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

.action-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}


/* Main Body View */
.content-body {
  flex: 1;
  padding: 2rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

/* Feed Specific Container */
.feed-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  align-items: start;
}

.feed-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
}

/* Modern iOS Glass Card Component */
.card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

/* =======================================================
   Premium Hero Dashboard Banner (Compact & Refined)
   ======================================================= */
.dashboard-banner {
  background: linear-gradient(135deg, #0F1117 0%, #1A1D26 40%, #1E0F2A 80%, #0F1117 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.75rem 1.35rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 1.15rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dot grid pattern overlay */
.dashboard-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Aurora glows */
.dashboard-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 85% 15%, rgba(255, 90, 54, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(100, 40, 200, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(52, 199, 89, 0.1) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(20px);
}

.dashboard-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.greeting-text h2 {
  color: #FFFFFF;
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.greeting-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  font-weight: 400;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.metric-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* subtle top accent line per metric */
.metric-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.metric-box:first-child::before { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.metric-box:nth-child(2)::before { background: linear-gradient(90deg, #34C759, #00E676); }
.metric-box:nth-child(3)::before { background: linear-gradient(90deg, #FF9500, #FFCC02); }
.metric-box:nth-child(4)::before { background: linear-gradient(90deg, #007AFF, #00B4FF); }

.metric-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.metric-box:hover::before { opacity: 1; }

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

.icon-streak { background: rgba(255, 90, 54, 0.2); color: #FF7849; box-shadow: 0 0 12px rgba(255, 90, 54, 0.3); }
.icon-meals { background: rgba(52, 199, 89, 0.2); color: #34C759; box-shadow: 0 0 12px rgba(52, 199, 89, 0.3); }
.icon-rank { background: rgba(255, 149, 0, 0.2); color: #FF9500; box-shadow: 0 0 12px rgba(255, 149, 0, 0.3); }
.icon-points { background: rgba(0, 122, 255, 0.2); color: #4DA6FF; box-shadow: 0 0 12px rgba(0, 122, 255, 0.3); }

.metric-info {
  min-width: 0;
}

.metric-info .metric-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.metric-info .metric-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
  white-space: nowrap;
}

/* =======================================================
   Daily Meal Tracker Bar (With CSS Progress Bar)
   ======================================================= */
.daily-tracker {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--glass-shadow);
  transition: padding var(--transition-fast), margin var(--transition-fast), box-shadow var(--transition-fast);
}

.daily-tracker.collapsed {
  padding: 0.85rem 1.4rem;
  margin-bottom: 0.85rem;
}

.tracker-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.daily-tracker.collapsed .tracker-header-row {
  margin-bottom: 0;
}

.tracker-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tracker-header-row:hover .tracker-toggle-btn {
  background: rgba(255, 90, 54, 0.12);
  color: var(--primary);
}

.tracker-toggle-btn i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.daily-tracker.collapsed .tracker-toggle-btn i {
  transform: rotate(180deg);
}

.tracker-collapsible-body {
  transition: all 0.3s ease;
}

.daily-tracker.collapsed .tracker-collapsible-body {
  display: none;
}

.tracker-title-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tracker-progress-badge {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--primary);
  background: rgba(255, 90, 54, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.tracker-progress-badge.all-done {
  color: var(--success);
  background: var(--success-light);
}

.tracker-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.tracker-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tracker-progress-bar.complete {
  background: linear-gradient(90deg, #34C759, #30D158);
}

.tracker-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.tracker-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.tracker-item.pending {
  cursor: pointer;
}

.tracker-item.pending:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.1);
}

.tracker-item.done {
  border-color: rgba(52, 199, 89, 0.35);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(52, 199, 89, 0.03));
}

.tracker-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  position: relative;
}

.tracker-item.done .tracker-icon {
  background: var(--success);
  color: #fff;
  box-shadow: 0 2px 8px var(--success-glow);
}

.tracker-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tracker-name {
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.tracker-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tracker-item.done .tracker-status {
  color: var(--success);
  font-weight: 600;
}

.tracker-item.pending .tracker-status {
  color: var(--primary);
  font-weight: 600;
}

/* =======================================================
   Quick Access Shortcuts Bar (Before Feed)
   ======================================================= */
.quick-access-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.quick-access-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  gap: 0.5rem;
  min-width: 0;
}

.quick-access-pill:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quick-access-pill .pill-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.quick-access-pill .pill-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-access-pill .pill-link {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* iOS Full-Width Segmented Grid (No Cutoff / 100% Width) */
.full-segmented-grid {
  display: grid;
  width: 100%;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.3rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.15rem;
  box-sizing: border-box;
}

.full-segmented-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.segment-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  transition: all var(--transition-fast);
  text-align: center;
  background: transparent;
  user-select: none;
}

.segment-item i {
  font-size: 0.95rem;
}

.segment-item:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.5);
}

.segment-item.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* =======================================================
   Meal Post Card (Compact, High-Efficiency & Social)
   ======================================================= */
.meal-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  margin-bottom: 1.15rem;
}

.meal-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(220, 224, 232, 0.9);
}

.meal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.author-details .author-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.author-details .meal-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.meal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.meal-badge-group {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.meal-badge-group:hover {
  color: var(--primary);
}

/* Meal Image Visual Area - 20-25% Shorter */
.meal-image-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 290px;
  background: #18191D;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.meal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.meal-image-container:hover .meal-image {
  transform: scale(1.02);
}

/* Meal Type Overlay Badge (Top-Left on Image) */
.meal-type-overlay-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: none;
  z-index: 2;
}

/* Top-Right Tags Container (Live Badge + Points) */
.overlay-tags-top-right {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

/* Live Photo Glowing Badge */
.live-photo-badge {
  background: rgba(88, 86, 214, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0 10px rgba(88, 86, 214, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Compact Points Tag */
.points-tag-sm {
  background: rgba(20, 20, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFD700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.meal-card-body {
  padding: 0.75rem 1rem 0.85rem;
}

.meal-description {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.meal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.35rem;
  gap: 0.5rem;
}

.btn-card-action-edit {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: all var(--transition-fast);
}

.btn-card-action-edit:hover {
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-card-action-delete {
  background: rgba(239, 68, 68, 0.06);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.55rem;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-action-delete:hover {
  background: var(--danger);
  color: #FFFFFF;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.meal-action-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
}

.meal-action-btn:hover {
  color: var(--primary);
  background: rgba(255, 90, 54, 0.06);
}

.meal-action-btn.liked {
  color: var(--accent);
}

.meal-date-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Compact Comment Preview in Post */
.meal-comments-preview {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-light);
}

.comment-preview-line {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.comment-preview-line:hover .preview-author {
  color: var(--primary);
}

.preview-author {
  font-weight: 700;
  margin-right: 0.25rem;
}

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

.btn-view-all-comments {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  display: inline-block;
}

.btn-view-all-comments:hover {
  color: var(--primary);
}

.btn-view-all-comments.no-comments {
  color: var(--text-light);
}

/* =======================================================
   Universal Comments Drawer / Modal (Mobile Bottom Sheet & Desktop Modal)
   ======================================================= */
.comments-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.comments-drawer-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.comments-drawer-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 580px;
  height: 85vh;
  height: 85dvh;
  max-height: 85vh;
  max-height: 85dvh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.comments-drawer-backdrop.active .comments-drawer-card {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .comments-drawer-backdrop {
    align-items: center;
  }
  .comments-drawer-card {
    border-radius: var(--radius-xl);
    height: 75vh;
    max-height: 640px;
    transform: scale(0.95) translateY(20px);
  }
  .comments-drawer-backdrop.active .comments-drawer-card {
    transform: scale(1) translateY(0);
  }
}

.comments-drawer-header {
  padding: 0.95rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #FFFFFF;
}

.comments-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comments-drawer-footer {
  padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  width: 100%;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
}

/* Quick Meal Options List & Bottom Sheet */
.bottomsheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.bottomsheet-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.bottomsheet-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.15rem 1.35rem 2rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform var(--transition-spring);
}

.bottomsheet-backdrop.active .bottomsheet-card {
  transform: translateY(0);
}

.bottomsheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto 0.85rem;
}

.bottomsheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bottomsheet-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.quick-meal-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quick-meal-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.95rem;
  background: var(--surface-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-fast);
}

.quick-meal-item:hover, .quick-meal-item.suggested {
  border-color: var(--primary);
  background: rgba(255, 90, 54, 0.05);
}

.quick-meal-item.suggested {
  box-shadow: 0 2px 10px rgba(255, 90, 54, 0.12);
}

.quick-meal-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quick-meal-info {
  flex: 1;
  min-width: 0;
}

.quick-meal-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.quick-meal-suggested-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 90, 54, 0.12);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  margin-top: 0.15rem;
}

.quick-meal-arrow {
  color: var(--text-light);
  font-size: 0.8rem;
}
  color: var(--accent);
}

.meal-action-btn.liked i {
  animation: heartPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Comments Section - iOS Stream */
.meal-comments-section {
  padding: 1.15rem 1.4rem;
  background: rgba(248, 249, 252, 0.75);
  border-top: 1px solid var(--border-light);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 260px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

/* Avatar wrapper with optional online dot */
.comment-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}

.comment-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: var(--success);
  border: 2px solid var(--surface-solid, #fff);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.3);
  animation: onlinePulse 2.5s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12); }
}

/* =======================================================
   Profile & User Stats Cards - Premium Modern Redesign
   ======================================================= */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.profile-stat-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.profile-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.profile-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.profile-stat-card.stat-streak {
  background: linear-gradient(180deg, rgba(255, 90, 54, 0.07) 0%, #FFFFFF 65%);
  border-color: rgba(255, 90, 54, 0.2);
}
.profile-stat-card.stat-streak::before { background: linear-gradient(90deg, #FF5A36, #FF7D54); }
.profile-stat-card.stat-streak .stat-icon { color: #FF5A36; background: rgba(255, 90, 54, 0.12); }
.profile-stat-card.stat-streak .stat-val { color: #FF5A36; }

.profile-stat-card.stat-best {
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.07) 0%, #FFFFFF 65%);
  border-color: rgba(255, 149, 0, 0.2);
}
.profile-stat-card.stat-best::before { background: linear-gradient(90deg, #FF9500, #FFCC02); }
.profile-stat-card.stat-best .stat-icon { color: #FF9500; background: rgba(255, 149, 0, 0.12); }
.profile-stat-card.stat-best .stat-val { color: #FF9500; }

.profile-stat-card.stat-meals {
  background: linear-gradient(180deg, rgba(52, 199, 89, 0.07) 0%, #FFFFFF 65%);
  border-color: rgba(52, 199, 89, 0.2);
}
.profile-stat-card.stat-meals::before { background: linear-gradient(90deg, #34C759, #30D158); }
.profile-stat-card.stat-meals .stat-icon { color: #34C759; background: rgba(52, 199, 89, 0.12); }
.profile-stat-card.stat-meals .stat-val { color: #34C759; }

.profile-stat-card.stat-points {
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.07) 0%, #FFFFFF 65%);
  border-color: rgba(0, 122, 255, 0.2);
}
.profile-stat-card.stat-points::before { background: linear-gradient(90deg, #007AFF, #5856D6); }
.profile-stat-card.stat-points .stat-icon { color: #007AFF; background: rgba(0, 122, 255, 0.12); }
.profile-stat-card.stat-points .stat-val { color: #007AFF; }

.profile-stat-card.stat-friends {
  background: linear-gradient(180deg, rgba(175, 82, 222, 0.07) 0%, #FFFFFF 65%);
  border-color: rgba(175, 82, 222, 0.2);
}
.profile-stat-card.stat-friends::before { background: linear-gradient(90deg, #AF52DE, #DA8FFF); }
.profile-stat-card.stat-friends .stat-icon { color: #AF52DE; background: rgba(175, 82, 222, 0.12); }
.profile-stat-card.stat-friends .stat-val { color: #AF52DE; }

.profile-stat-card.stat-groups {
  background: linear-gradient(180deg, rgba(0, 199, 190, 0.07) 0%, #FFFFFF 65%);
  border-color: rgba(0, 199, 190, 0.2);
}
.profile-stat-card.stat-groups::before { background: linear-gradient(90deg, #00C7BE, #63E6E2); }
.profile-stat-card.stat-groups .stat-icon { color: #00C7BE; background: rgba(0, 199, 190, 0.12); }
.profile-stat-card.stat-groups .stat-val { color: #00C7BE; }

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-val span {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.85;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Profile Big Avatar with Status Badge */
.profile-avatar-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.profile-avatar-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 3px solid var(--surface-solid, #fff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-avatar-dot.online {
  background: var(--success);
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.6);
  animation: onlinePulse 2.5s ease-in-out infinite;
}

.profile-avatar-dot.offline {
  background: #FF3B30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.4);
}

/* Profile Online Status Text Pill */
.profile-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

.profile-online-badge.online {
  background: rgba(52, 199, 89, 0.12);
  color: #248A3D;
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.profile-online-badge.offline {
  background: rgba(255, 59, 48, 0.08);
  color: #D32F2F;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

.profile-online-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
}

.profile-online-badge.online .badge-dot {
  background: #34C759;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.7);
}

.profile-online-badge.offline .badge-dot {
  background: #FF3B30;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.5);
}

.comment-content {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  flex: 1;
  box-shadow: var(--shadow-xs);
}

.comment-author {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.comment-text {
  font-size: 0.86rem;
  color: var(--text);
  word-break: break-word;
}

/* Comment Media Attachments (Photo & Voice Audio) */
.comment-image-attachment {
  margin-top: 0.5rem;
  max-width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.comment-image-attachment:hover {
  transform: scale(1.02);
}

.comment-image-attachment img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

/* iOS Voice Note Comment Player */
.voice-note-player {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 90, 54, 0.08);
  border: 1px solid rgba(255, 90, 54, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  margin-top: 0.45rem;
  width: fit-content;
  max-width: 100%;
  user-select: none;
}

.voice-play-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.voice-play-btn:hover {
  transform: scale(1.08);
}

.voice-note-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.voice-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.voice-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  height: 8px;
}

.voice-note-player.playing .voice-bar {
  animation: voiceWave 0.8s ease-in-out infinite alternate;
}

.voice-note-player.playing .voice-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.voice-note-player.playing .voice-bar:nth-child(2) { height: 13px; animation-delay: 0.3s; }
.voice-note-player.playing .voice-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.voice-note-player.playing .voice-bar:nth-child(4) { height: 14px; animation-delay: 0.4s; }
.voice-note-player.playing .voice-bar:nth-child(5) { height: 7px; animation-delay: 0.15s; }

@keyframes voiceWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

/* Comment Form Controls & Previews */
.comment-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.comment-previews-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.comment-photo-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-xs);
}

.comment-photo-chip img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  display: block;
}

.comment-chip-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  border: none;
}

.comment-audio-recording-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--danger);
}

.recording-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: var(--radius-full);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.comment-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.comment-icon-btn:hover {
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
  transform: scale(1.05);
}

.comment-icon-btn.recording {
  background: var(--danger);
  color: #fff;
}

.comment-icon-btn.gif-badge-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

/* GIF Picker Modal & Results Grid */
#gif-picker-modal {
  z-index: 3000 !important;
}

.gif-modal-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.gif-search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
}

.gif-search-bar:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
}

.gif-search-bar input {
  width: 100%;
  font-size: 16px;
}

.gif-categories-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

.gif-categories-bar::-webkit-scrollbar {
  display: none;
}

.gif-cat-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.gif-cat-chip.active, .gif-cat-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.gif-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 380px;
  padding: 0.25rem;
}

@media (max-width: 480px) {
  .gif-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gif-item-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #f0f0f0;
  transition: transform var(--transition-fast);
}

.gif-item-card:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-sm);
}

.gif-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-delete-btn {
  color: var(--text-light);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
  margin-left: 0.5rem;
}

.comment-delete-btn:hover {
  color: var(--danger);
}

.comment-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.comment-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.comment-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
}

.comment-submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px var(--primary-glow);
  flex-shrink: 0;
}

.comment-submit-btn:hover {
  transform: scale(1.08);
}

.comment-submit-btn:active {
  transform: scale(0.92);
}

/* Leaderboard Mini & Full */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.ranking-item:hover {
  border-color: var(--border);
  transform: translateX(3px);
  box-shadow: var(--shadow-xs);
}

.ranking-item.current-user {
  border-color: var(--primary);
  background: var(--primary-light);
}

.rank-pos {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  width: 28px;
  text-align: center;
  color: var(--text-muted);
}

.rank-pos.pos-1 { color: #FF9500; }
.rank-pos.pos-2 { color: #8E8E93; }
.rank-pos.pos-3 { color: #B45309; }

.rank-user-info {
  flex: 1;
  min-width: 0;
}

.rank-user-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-user-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rank-points {
  text-align: right;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--primary);
}

.rank-points span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

/* Podium Top 3 Component */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0 1rem;
  margin-bottom: 2rem;
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 150px;
}

.podium-avatar-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.podium-crown {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: #FF9500;
  font-size: 1.35rem;
}

.podium-block {
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.5rem;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.podium-first .podium-block {
  height: 125px;
  background: linear-gradient(180deg, #FF9500, #E08200);
}

.podium-second .podium-block {
  height: 98px;
  background: linear-gradient(180deg, #8E8E93, #636366);
}

.podium-third .podium-block {
  height: 78px;
  background: linear-gradient(180deg, #D97706, #B45309);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.35rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  min-height: 22px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--text);
  font-size: 16px; /* Previne bug de auto-zoom no iOS Safari */
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238E8E93'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
  background: #FFFFFF;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  font-size: 16px;
}

/* Reward Notice Widget iOS Style */
.reward-notice-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 240, 0.9) 100%);
  border: 1px solid rgba(255, 90, 54, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(255, 90, 54, 0.06);
  flex-wrap: wrap;
}

.reward-notice-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reward-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 149, 0, 0.15);
  color: #FF9500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 149, 0, 0.25);
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

/* Buttons - iOS Haptic Pill Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
  color: #fff;
}

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

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-secondary);
  border-color: var(--text-muted);
}

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

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #E02B20;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

/* Category Selector Radio Pills */
.meal-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 0.75rem;
}

.meal-type-option {
  position: relative;
}

.meal-type-option input {
  position: absolute;
  opacity: 0;
}

.meal-type-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.6rem;
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-align: center;
}

.meal-type-option input:checked + .meal-type-label {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Upload Dropzone */
.dropzone-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone-preview {
  max-height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: none;
}

/* Groups Grid */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.group-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.group-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.group-card-cover {
  height: 125px;
  width: 100%;
  object-fit: cover;
}

.group-card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.group-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.group-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.45;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

/* Lightbox Fullscreen Image Modal - iOS Style */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

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

.lightbox-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-backdrop.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.lightbox-img-wrap img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-footer {
  width: 100%;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lightbox-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.lightbox-meal-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Modal Custom System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform var(--transition-spring);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-close {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.25rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Toast System - iOS Notification Pill */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 260px;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-message.success i { color: var(--success); }
.toast-message.error i { color: var(--danger); }
.toast-message.info i { color: var(--info); }

@keyframes slideInToast {
  from { transform: translateY(-20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile Fixed Bottom Navigation - iOS Tab Bar Standard with Safe Area */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  min-height: 62px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-top: 1px solid rgba(232, 234, 237, 0.9);
  z-index: 1000;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  flex-shrink: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  box-sizing: border-box;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  flex: 1;
  height: 48px;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-add {
  margin-top: -24px;
  flex-shrink: 0;
}

.mobile-add-btn {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: transform var(--transition-fast);
  border: 3px solid #FFFFFF;
}

.mobile-add-btn:active {
  transform: scale(0.92);
}

/* Group Tabs iOS 4-Column Segmented Grid */
.group-segmented-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  border-top: 1px solid var(--border-light);
  padding: 0.55rem 0.85rem;
  background: rgba(248, 249, 252, 0.75);
}

.group-segment-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 0.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.group-segment-tab i {
  font-size: 1.15rem;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-segment-tab:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
}

.group-segment-tab.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

/* Notification Dropdown Desktop */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.notif-dropdown.show {
  display: block;
  animation: slideDownMenu 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownMenu {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.notif-dropdown-body {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.notif-item:hover {
  background: rgba(255, 90, 54, 0.04);
}

.notif-item.unread {
  background: rgba(255, 90, 54, 0.08);
}

.notif-item-content h5 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.notif-item-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =======================================================
   Live Photo Capture & Camera Mode Selector
   ======================================================= */
.photo-capture-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.btn-capture-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  background: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.4rem;
}

.btn-capture-mode:hover {
  border-color: var(--primary);
  background: rgba(255, 90, 54, 0.03);
  transform: translateY(-2px);
}

.btn-capture-mode.btn-live-camera {
  border-color: rgba(88, 86, 214, 0.4);
  background: linear-gradient(180deg, rgba(88, 86, 214, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.btn-capture-mode.btn-live-camera:hover {
  border-color: #5856D6;
  box-shadow: 0 4px 16px rgba(88, 86, 214, 0.15);
}

.capture-mode-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text);
  transition: all var(--transition-fast);
}

.btn-live-camera .capture-mode-icon {
  background: rgba(88, 86, 214, 0.12);
  color: #5856D6;
}

.btn-gallery .capture-mode-icon {
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
}

.capture-mode-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}

.capture-mode-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.live-bonus-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: linear-gradient(135deg, #5856D6, #AF52DE);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(88, 86, 214, 0.4);
  letter-spacing: 0.3px;
}

.alert-camera-locked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(88, 86, 214, 0.08);
  border: 1px solid rgba(88, 86, 214, 0.25);
  border-radius: var(--radius-md);
  color: #5856D6;
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

.preview-status-pill {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.status-live {
  background: rgba(88, 86, 214, 0.15);
  color: #5856D6;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(88, 86, 214, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-gallery {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-change-photo {
  margin-top: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-change-photo:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Challenge Mode Toggle in Group Creation */
.challenge-mode-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(88, 86, 214, 0.05);
  border: 1.5px solid rgba(88, 86, 214, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  gap: 1rem;
}

.toggle-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.toggle-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(88, 86, 214, 0.15);
  color: #5856D6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toggle-card-left strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.toggle-card-left p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* =======================================================
   Strava-Style FoodMigos Social Card Modal & Overlay
   ======================================================= */
#strava-card-modal {
  z-index: 3500 !important;
}

.strava-modal-box {
  background: #18191D;
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.strava-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strava-modal-header h4 {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
}

.strava-card-render-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #0B0B0E;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.strava-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.strava-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,0.92) 100%);
  z-index: 2;
}

.strava-top-bar {
  position: relative;
  z-index: 3;
  padding: 1.5rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.strava-header-logo-img {
  height: 38px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  margin-bottom: 0.35rem;
}

.strava-header-brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.strava-header-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-top: 0.3rem;
}

.strava-hud-container {
  position: relative;
  z-index: 3;
  padding: 1.1rem;
}

.strava-hud-box {
  background: rgba(15, 16, 20, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.strava-meal-title {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF;
}

.strava-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.strava-metric-item {
  display: flex;
  flex-direction: column;
}

.strava-metric-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.15rem;
}

.strava-metric-val {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: #FFFFFF;
}

.strava-metric-val.highlight {
  color: #FFD700;
}

.strava-metric-val.flame {
  color: #FF5A36;
}

.strava-user-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.strava-modal-actions {
  display: flex;
  gap: 0.65rem;
}

.btn-strava-action {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-strava-download {
  background: #FFFFFF;
  color: #000000;
}

.btn-strava-download:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-strava-share {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
}

.btn-strava-share:hover {
  transform: translateY(-2px);
}

/* =======================================================
   Live Webcam Camera Viewfinder Modal (Anti-Cheat)
   ======================================================= */
#webcam-modal {
  z-index: 3600 !important;
}

.webcam-card-box {
  background: #111216;
  color: #FFFFFF;
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.webcam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.webcam-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.webcam-viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.webcam-viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webcam-overlay-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  margin: 1rem;
  border-radius: var(--radius-md);
}

.webcam-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 0.5rem;
}

.webcam-shutter-btn {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 4px solid #FF5A36;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #FF5A36;
  box-shadow: 0 0 24px rgba(255, 90, 54, 0.4);
  transition: all var(--transition-fast);
}

.webcam-shutter-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(255, 90, 54, 0.6);
}

.webcam-shutter-btn:active {
  transform: scale(0.92);
}

.webcam-sub-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.webcam-sub-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =======================================================
   Collaborative Meal Tagging & Mentions System
   ======================================================= */

/* Friend Tag Selector Chips (in Add Meal & Edit Meal) */
.friend-tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.friend-tag-pill {
  cursor: pointer;
  margin-bottom: 0;
}

.friend-tag-pill input[type="checkbox"] {
  display: none;
}

.friend-tag-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  background: var(--bg-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition-fast);
}

.friend-tag-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.friend-tag-pill:hover .friend-tag-content {
  border-color: var(--primary);
  background: rgba(255, 90, 54, 0.05);
}

.friend-tag-pill input[type="checkbox"]:checked + .friend-tag-content {
  background: rgba(255, 90, 54, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* User @Mention Pill */
.user-mention {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 90, 54, 0.08);
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-block;
}

.user-mention:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Collaborative Header Stack (Lucas Silva com Amanda Costa) */
.collab-header-authors {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.collab-avatar-group {
  display: flex;
  align-items: center;
}

.collab-avatar-group img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
  object-fit: cover;
  margin-left: -10px;
}

.collab-avatar-group img:first-child {
  margin-left: 0;
}

/* Pending Collab Invites Top Feed Banner */
.collab-invites-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.collab-invite-card {
  background: linear-gradient(135deg, rgba(88, 86, 214, 0.08) 0%, rgba(255, 90, 54, 0.08) 100%);
  border: 1.5px solid rgba(88, 86, 214, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.collab-invite-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.collab-invite-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.collab-invite-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}

.collab-invite-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.collab-invite-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-collab-accept {
  background: linear-gradient(135deg, #34C759, #28A745);
  color: #FFFFFF;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
  transition: all var(--transition-fast);
}

.btn-collab-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

.btn-collab-reject {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  border: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-collab-reject:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Edit Meal Modal Box */
#edit-meal-modal {
  z-index: 3500 !important;
}

.edit-meal-card-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-meal-photo-preview {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Collab Pending Badge & Inline Notice on Post */
.badge-collab-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.card-inline-collab-notice {
  background: linear-gradient(135deg, rgba(255, 104, 70, 0.08), rgba(255, 142, 60, 0.08));
  border: 1px solid rgba(255, 104, 70, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  margin: 0.5rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-inline-collab-notice-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Modern Overlapping Avatar Stack */
.collab-avatar-group {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.collab-avatar-group a {
  display: inline-flex;
  position: relative;
  transition: transform var(--transition-fast);
}

.collab-avatar-group a:not(:first-child) {
  margin-left: -14px;
}

.collab-avatar-group a:hover {
  transform: translateY(-2px) scale(1.08);
  z-index: 5;
}

.collab-avatar-group img,
.collab-avatar-group .user-avatar,
.collab-avatar-group .user-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface-solid);
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.avatar-extra-bubble {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  border: 2px solid var(--surface-solid);
  position: relative;
  z-index: 4;
}

.collab-header-authors {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.collab-header-authors a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.collab-header-authors a:hover {
  color: var(--primary);
}

.collab-with-txt {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.collab-tagged-name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.collab-more-pill {
  background: rgba(255, 90, 54, 0.1);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* Admin Dashboard Specific Styles */
@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.navbar-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 90, 54, 0.12);
  color: var(--primary);
  border: 1px solid rgba(255, 90, 54, 0.25);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.navbar-admin-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.3);
}

/* Sidebar Nav Links & Admin Link Contrast */
.sidebar .nav-link.nav-link-admin {
  color: var(--primary) !important;
  font-weight: 800;
}

.sidebar .nav-link.nav-link-admin i {
  color: var(--primary) !important;
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, #FF5A36, #FF7B59) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.35);
}

.sidebar .nav-link.active i,
.sidebar .nav-link.active span {
  color: #FFFFFF !important;
}

/* =======================================================
   Smooth Animated Splash Screen (Native App Experience)
   ======================================================= */
.app-splash-screen {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.app-splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.splash-logo-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.splash-logo {
  height: 52px;
  position: relative;
  z-index: 2;
  animation: splash-pop 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 4px 12px rgba(255, 90, 54, 0.18));
}

.splash-glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.32) 0%, rgba(255, 90, 54, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  animation: splash-pulse 2s infinite ease-in-out;
}

.splash-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: splash-fade 0.75s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-loader-bar {
  width: 130px;
  height: 4px;
  background: rgba(255, 90, 54, 0.15);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  animation: splash-fade 0.75s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-loader-progress {
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #FF5A36, #FF8E3C);
  border-radius: 99px;
  animation: splash-slide 1.1s infinite ease-in-out;
}

@keyframes splash-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes splash-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes splash-fade {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes splash-slide {
  0% { left: -100%; }
  50% { left: 25%; width: 65%; }
  100% { left: 100%; width: 100%; }
}

/* ==========================================================================
   Heart Like & Double-Tap Interactive Micro-Animations
   ========================================================================== */
.btn-like {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like:active {
  transform: scale(0.85);
}

.btn-like.liked i {
  color: #ff3366 !important;
}

.btn-like.heart-pop i {
  animation: heartPopAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPopAnim {
  0% { transform: scale(1); }
  25% { transform: scale(1.45) rotate(-12deg); }
  50% { transform: scale(0.9) rotate(8deg); }
  75% { transform: scale(1.15) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Floating Sparkle Heart Particles */
.floating-heart-particle {
  position: absolute;
  pointer-events: none;
  font-size: 0.85rem;
  color: #ff3366;
  opacity: 1;
  z-index: 999;
  animation: floatHeartParticle 0.75s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes floatHeartParticle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, -30px)) scale(1.2) rotate(var(--rot, 15deg));
  }
}

/* Big Central Heart on Double-Tap */
.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 8px 30px rgba(255, 51, 102, 0.6), 0 0 15px rgba(255, 51, 102, 0.8);
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  animation: bigHeartPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bigHeartPop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1.25) rotate(0deg); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.9; }
  100% { transform: translate(-50%, -65%) scale(1.4) rotate(10deg); opacity: 0; }
}

/* =======================================================
   Desktop Feed 2-Column Layout & Right Sidebar Widgets
   ======================================================= */
@media (min-width: 992px) {
  .content-body.feed-page-layout {
    max-width: 1140px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
  }
  .feed-desktop-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    position: sticky;
    top: 85px;
  }
  .desktop-only { display: block !important; }
  .mobile-only { display: none !important; }
}

@media (max-width: 991px) {
  .content-body.feed-page-layout {
    display: block;
    max-width: 860px;
  }
  .feed-desktop-sidebar { display: none !important; }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  div.mobile-only { display: block !important; }
}

/* Sidebar Widget Cards */
.sidebar-widget-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.widget-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.widget-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Contacts Widget List */
.contacts-widget-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-item:hover {
  background: rgba(0, 0, 0, 0.035);
  transform: translateX(2px);
}

.contact-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.contact-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.contact-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-sizing: border-box;
}

.contact-status-dot.online {
  background: #34C759;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.5);
}

.contact-status-dot.offline {
  background: #FF3B30;
  opacity: 0.85;
}

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

.contact-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-username {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacts-empty-state {
  text-align: center;
  padding: 1.25rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.contacts-empty-state p {
  margin: 0.5rem 0 0.85rem;
}

/* Dica do Dia Widget */
.tip-widget-card {
  background: linear-gradient(145deg, #FFFFFF, rgba(255, 248, 245, 0.9));
  border: 1px solid rgba(255, 90, 54, 0.15);
}

.tip-widget-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.tip-widget-text {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.tip-graphic-wrap {
  flex-shrink: 0;
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

/* =======================================================
   Mobile Amigos Online Strip (Matching Native App Pill)
   ======================================================= */
.mobile-online-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-fast);
}

.mobile-online-strip:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(255, 90, 54, 0.12);
}

.online-strip-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.online-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.online-strip-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.stack-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stack-avatar:first-child {
  margin-left: 0;
}

.online-count-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.online-strip-right i {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

/* Daily Tip Card at Mobile Bottom */
.daily-tip-card.mobile-only {
  background: linear-gradient(145deg, #FFFFFF, rgba(255, 248, 245, 0.95));
  border: 1px solid rgba(255, 90, 54, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.tip-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.tip-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.tip-title-box {
  min-width: 0;
}

.tip-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: block;
}

.tip-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.tip-body-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* =======================================================
   Navigation Bar User Avatar Icons (Mobile Nav & Sidebar)
   ======================================================= */
.mobile-nav-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 auto 2px;
}

.mobile-nav-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-nav-item.active .mobile-nav-avatar-img {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 90, 54, 0.4);
}

.mobile-nav-avatar-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34C759;
  border: 1.5px solid #FFFFFF;
}

.sidebar-nav-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sidebar-nav-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.nav-link.active .sidebar-nav-avatar-img {
  border-color: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

