/* SpritEX Premium Modern Style - Apple/Minimal Inspired */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #1877f2; /* Facebook Blue */
  --primary-hover: #166fe5;
  --bg-color: #f0f2f5; 
  --card-bg: #ffffff;
  --text-color: #050505;
  --muted-text: #65676b;
  --border-color: #ced0d4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.1);
  --header-height: 56px;
  --radius: 8px;
  --button-radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(-45deg, #f3f5f8, #e0e5ec, #f0f4f8, #e8ecf1);
  background-size: 400% 400%;
  animation: bgAnimation 15s ease infinite;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

@keyframes bgAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Background Watermark */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('assets/logo/logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30%;
  opacity: 0.02;
  z-index: -1;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Header */
header#main-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  position: sticky;
  top: 15px;
  width: calc(100% - 30px);
  max-width: 1000px;
  margin: 15px auto 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  height: 28px;
  width: auto;
  filter: grayscale(100%);
  transition: opacity 0.2s;
}

#logo:hover {
  opacity: 0.7;
}

#user-search-container {
  flex-grow: 1;
  max-width: 250px;
  margin: 0 15px;
  position: relative;
}
@media (max-width: 600px) {
  #user-search-container {
    max-width: none;
    margin: 0 10px;
  }
}

#user-search-input {
  width: 100%;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}

#user-search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

#user-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow-y: auto;
  max-height: 300px;
  z-index: 2000;
}

.search-result-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f9f9f9;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #f5f5f7;
}

.search-result-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.search-result-empty {
  padding: 15px;
  text-align: center;
  color: var(--muted-text);
  font-size: 13px;
}

nav#nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav#nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

nav#nav-links a:hover {
  color: var(--muted-text);
}

#notif-container {
  position: relative;
  display: flex;
  align-items: center;
}

#notif-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

#notif-btn:hover { transform: scale(1.1); }

#notif-badge {
  position: absolute;
  top: 0; right: 0;
  background: #ff3b30;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  height: 16px; width: 16px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ── Notifications (Global Modal Style) ── */
.notif-modal {
  position: fixed;
  top: 56px;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: calc(100vh - 56px);
  background: #fff;
  z-index: 8500; /* Between normal content and top/bottom bars */
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
}

@media (max-width: 1024px) {
  .notif-modal {
    width: 100%;
    left: 0;
    height: calc(100vh - 56px - 64px); /* Full middle-screen */
    top: 56px;
    bottom: 64px;
    box-shadow: none;
  }
}

.notif-modal:not(.hidden) {
  transform: translateX(0);
}

.notif-modal-header {
  padding: 16px;
  border-bottom: 2px solid #f0f0f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.notif-modal-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

#notif-list-global {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.notif-item {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #f5f5f7;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-item:hover {
  background: #f8f9fa;
}

.notif-unread {
  background: #f0f7ff;
}

.notif-unread::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
}

.notif-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.notif-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #1c1e21;
}

.notif-time {
  font-size: 11px;
  color: #8d949e;
  margin-top: 2px;
}

/* Mobile Badge Positioning */
.bnav-item { position: relative; }
.notif-badge-mobile {
  position: absolute;
  top: 4px;
  right: 25%;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.notif-item:hover { background: #f5f5f7; }
.notif-unread { background: #f0f7ff; }

/* REACTION BUTTONS */
.post-actions {
  display: flex; gap: 12px;
  margin-bottom: 16px;
}

.react-btn {
  background: #f5f5f7;
  border: none;
  padding: 6px 14px;
  border-radius: var(--button-radius);
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}

.react-btn:hover { background: #e8e8ed; color: #000; }
.react-btn.active { background: #000; color: #fff; }

.reactions-count { font-size: 12px; color: var(--muted-text); margin-left: auto; display: flex; gap: 10px; }

/* App Container */
main#app-container {
  flex-grow: 1;
  padding: 30px 20px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Feed Layout & Sidebar */
.feed-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
}
.feed-main {
  flex-grow: 1;
  max-width: 600px;
  width: 100%;
}
.feed-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 30px);
}
.logout-icon { display: none; }

@media (max-width: 600px) {
  .post-box-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .post-options {
    width: 100%;
    flex-wrap: wrap;
  }
  .post-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Reset button specific squish */
  #publish-btn {
    padding: 10px 20px;
    font-size: 14px;
    height: auto;
  }
}



.sidebar-widget {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}
.trending-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text-color);
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}
.trending-user-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.trending-user-item .btn-small {
  transition: all 0.3s ease;
}
.trending-user-item:hover .btn-small {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.trending-user-item:last-child {
  margin-bottom: 0;
}
.trending-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}
.trending-user-item:hover .trending-user-avatar {
  border: 2px solid var(--primary);
}
.trending-user-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.trending-user-name {
  font-weight: 600;
  font-size: 14px;
}
.trending-user-stats {
  font-size: 12px;
  color: var(--muted-text);
}

.view {
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* Skeleton Loader */
.skeleton {
  background: #e2e2e2;
  background-image: linear-gradient(90deg, #e2e2e2 0px, #f2f2f2 40px, #e2e2e2 80px);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-block; }
.skeleton-text { width: 100%; height: 14px; margin-bottom: 8px; border-radius: 4px; display: inline-block; }
.skeleton-title { width: 40%; height: 16px; margin-bottom: 12px; display: inline-block; }
.skeleton-btn { width: 80px; height: 32px; border-radius: var(--button-radius); display: inline-block; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  color: var(--muted-text);
  border: 1px dashed var(--border-color);
}
.empty-state-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}


/* Auth View Specific Center */
#login-view, #signup-view {
  min-height: 90vh; /* Adjust for footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ══════════════════════════════════════════
   AUTHENTICATION PAGE (PREMIUM GLASS)
   ══════════════════════════════════════════ */
.auth-page {
    margin: 0;
    min-height: 100vh;
    background: #0f172a; /* Dark base */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    overflow-y: auto; /* Allow scroll if needed on tiny screens */
    position: relative;
    padding: 60px 20px;
}

.auth-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.blob-1 { top: -200px; right: -100px; background: rgba(79, 70, 229, 0.12); }
.blob-2 { bottom: -200px; left: -100px; background: rgba(139, 92, 246, 0.12); animation-delay: -5s; }

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

.auth-main {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    animation: slideDownFade 0.8s ease-out;
}


.auth-header-logo h1 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    margin: 0;
    text-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.auth-card {
    width: 100%;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.card-animate {
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 1);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    height: 56px !important;
    padding: 20px 16px 8px 16px !important;
    color: #fff !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 16px;
    color: #64748b;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group input:not(:placeholder-shown) {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 12px;
    color: #6366f1;
    font-weight: 600;
}

.btn-auth-primary {
    width: 100%;
    height: 56px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.signup-terms {
    font-size: 12px;
    color: #64748b;
    margin: -10px 0 20px 0;
    line-height: 1.5;
}

.signup-terms a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.trust-badge {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-bottom-info {
    margin-top: 40px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    animation: slideUpFade 1s ease-out;
}

.auth-bottom-info span {
    display: inline-block;
    margin-top: 8px;
    color: #94a3b8;
    font-weight: 600;
}

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

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

.hidden { display: none !important; }

@media (max-width: 480px) {
    .auth-card { padding: 30px 20px; }
    .auth-bg-blob { width: 300px; height: 300px; }
}

/* Post Box */
.post-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.post-box:hover {
  box-shadow: var(--shadow-hover);
}

.post-box textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background: #fafafa;
  padding: 16px;
  min-height: 120px;
  border-radius: var(--radius);
  resize: none;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.post-box textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.post-box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-options { display: flex; gap: 10px; flex-grow: 1; }
#post-privacy { 
  background: #f5f5f7; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
  padding: 4px 8px; 
  font-size: 13px;
}
#hidden-usernames { 
  flex-grow: 1; 
  padding: 4px 10px; 
  font-size: 12px; 
  border-radius: 8px;
  background: #fff;
}

.post-controls { display: flex; align-items: center; gap: 15px; }

/* ── FACEBOOK STYLE LAYOUT SYSTEM ── */
body[data-page="feed"] {
  overflow-y: auto !important;
  height: auto;
  width: 100%;
  background: var(--bg-color);
  padding-top: var(--header-height);
}

body[data-page="feed"] header#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 2000;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

body[data-page="feed"] main#app-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 32px;
  padding: 20px 16px;
}

.feed-layout {
  display: contents; /* Grid cells handled by app-container */
}

/* Sidebars Sticky */
.feed-nav-left, .feed-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
}

.feed-nav-left::-webkit-scrollbar, .feed-sidebar::-webkit-scrollbar { display: none; }

/* Center Feed */
.feed-main {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.view#feed-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Right Sidebar Column */
.feed-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: none;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
}

.trending-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
  position: relative;
}

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

.trending-rank {
  font-size: 14px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  color: var(--muted-text);
}

/* Medals for Top 3 */
.trending-rank.rank-1 { color: #FFD700; font-size: 20px; }
.trending-rank.rank-2 { color: #C0C0C0; font-size: 18px; }
.trending-rank.rank-3 { color: #CD7F32; font-size: 16px; }

.trending-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0,0,0,0.05);
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}

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

.trending-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-color);
  display: block;
  line-height: 1.2;
  word-break: break-all;
  margin-bottom: 2px;
}

.trending-score {
  font-size: 12px;
  color: var(--muted-text);
}

.trending-follow-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trending-user-card:hover .trending-follow-btn {
  opacity: 1;
}

.feed-sidebar::-webkit-scrollbar { display: none; }

/* Left Nav Column */
.feed-nav-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  overflow-y: auto;
}

.nav-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  background: rgba(0,0,0,0.05);
  transform: translateX(5px);
}

/* Center Feed Column */
.feed-main {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding-bottom: 50px;
}

.feed-main::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

/* Profile Update Post Styling */
.post-context {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-context::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.profile-update-display {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(161,140,209,0.05) 100%);
    border-radius: 12px;
    margin: 10px 0;
}

.profile-update-ring {
    width: 160px;
    height: 160px;
    padding: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
    position: relative;
    animation: ringGlow 3s infinite alternate;
}

@keyframes ringGlow {
    from { box-shadow: 0 10px 25px rgba(102,126,234,0.3); }
    to { box-shadow: 0 15px 35px rgba(102,126,234,0.5); }
}

.profile-update-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
}

/* Post and Header Cards */
.post-card, .post-box, .stories-bar, .nav-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.post-card {
  height: auto !important;
  display: block;
  overflow: hidden; /* keep images within rounded corners */
}

/* Post body: text + image wrapper */
.post-body {
  margin-bottom: 12px;
}

/* Regular post images — 16:9 aspect ratio, edge-to-edge */
.post-image {
  display: block;
  width: calc(100% + 32px); /* bleed out of card padding */
  margin: 12px -16px 0 -16px;
  height: 320px;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post-image:hover {
  opacity: 0.95;
}


.stories-bar {
  padding: 16px 8px;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }

.story-card {
  min-width: 110px;
  height: 200px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
}

.post-card:hover {
  background: #fff; /* keep it white on hover like FB */
}

.post-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eee;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.05);
}

.post-username {
  font-weight: 700;
  color: #1c1e21;
  text-decoration: none;
  font-size: 15px;
}

.post-username:hover { text-decoration: underline; }

.post-time {
  font-size: 13px;
  color: #65676b;
  margin-top: 2px;
  display: flex;
  align-items: center;
}

.mood-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: capitalize;
}
.mood-happy { background: #e8f5e9; color: #2e7d32; }
.mood-sad { background: #e3f2fd; color: #1565c0; }
.mood-confused { background: #fff3e0; color: #ef6c00; }
.mood-chill { background: #f3e5f5; color: #7b1fa2; }
.mood-excited { background: #ffebee; color: #c62828; }

.totd-card {
    border: 1.5px solid var(--primary);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    background: linear-gradient(145deg, #ffffff, #fafafa);
}

/* Phase 2 Styles */
@keyframes gradientCycle {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.challenge-card {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #556270, #FF6B6B);
    background-size: 300% 300%;
    animation: gradientCycle 8s ease infinite;
    color: white;
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}
.challenge-text { font-size: 15px; font-weight: 500; }
.challenge-btn { background: #fff; color: #000; padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; border: none; font-size: 13px; transition: transform 0.2s ease; }
.challenge-btn:hover { transform: scale(1.05); }

.disappearing-badge {
    font-size: 11px;
    background: #ffebee;
    color: #c62828;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 600;
}
.post-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.post-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.post-footer button {
  background: #f5f5f7;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--button-radius);
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.post-footer button:hover {
  background: #e8e8ed;
  color: #000;
}

/* Phase 2: Ads & Boosts */
.post-card.is-boosted {
    border: 1px solid rgba(255, 179, 0, 0.4);
    background: linear-gradient(to bottom right, rgba(255, 253, 240, 0.8), var(--card-bg));
    box-shadow: 0 4px 20px rgba(255, 179, 0, 0.08);
}
.boost-badge {
    color: #ffb300;
    font-weight: 700;
    font-size: 11px;
    margin-left: 8px;
    background: rgba(255, 179, 0, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card.is-ad {
    border: 1px solid rgba(0, 122, 255, 0.2);
    background: #fff;
}
.ad-badge {
    color: #007aff;
    font-weight: 700;
    font-size: 11px;
    margin-left: 8px;
    background: rgba(0, 122, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.ad-container {
    cursor: pointer;
    background: #fafafc;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: transform 0.2s;
    border: 1px solid #f0f0f5;
}
.ad-container:hover { transform: scale(1.01); }
.ad-text { padding: 15px; font-size: 15px; color: #1d1d1f; line-height: 1.5; }
.ad-image { width: 100%; height: 200px; object-fit: cover; display: block; border-top: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03); }
.ad-footer { padding: 10px 15px; font-size: 13px; font-weight: 600; color: #007aff; text-align: right; background: #fff; border-top: 1px solid #f0f0f5; }

/* Monetization Modal Duration Buttons */
.duration-btn {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.duration-btn small { color: #888; font-weight: 400; }
.duration-btn.active { border-color: var(--primary); background: #f8f9fa; }
.duration-btn:hover:not(.active) { border-color: #ddd; background: #fafafa; }

.post-boost-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: none;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s;
}
.post-boost-btn:hover { transform: scale(1.05); }

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  border-radius: var(--button-radius);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:active { transform: scale(0.96); }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-small {
  background: #f5f5f7;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--button-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-small:hover { background: #e8e8ed; }


/* ══════════════════════════════════════════
   PREMIUM PROFILE SYSTEM
══════════════════════════════════════════ */

/* Cover Banner */
.profile-cover {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f64f59 100%);
  background-size: 200% 200%;
  animation: coverGradient 8s ease infinite;
  position: relative;
  overflow: hidden;
  will-change: transform;
  box-shadow: var(--shadow);
  margin-bottom: -60px;
}

@keyframes coverGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-cover.has-custom {
  background: none;
  background-size: cover;
  background-position: center;
}

.profile-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3));
}

.cover-edit-btn {
  position: absolute;
  bottom: 12px; right: 16px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.cover-edit-btn:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }

/* Identity Card */
.profile-identity-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px 20px;
  position: relative;
  z-index: 10;
}

.profile-identity-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Avatar Ring */
.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-top: -54px;
}

.avatar-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  padding: 3px;
  background: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.avatar-ring.premium-ring {
  background: conic-gradient(from 0deg, #f64f59, #c471ed, #12c2e9, #f64f59);
  animation: ringRotate 3s linear infinite;
  box-shadow: 0 0 20px rgba(198, 113, 237, 0.5), 0 0 40px rgba(198, 113, 237, 0.2);
}

@keyframes ringRotate {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.avatar-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.9);
  display: block;
}

.avatar-level-badge {
  position: absolute;
  bottom: 2px; right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  border: 2px solid #fff;
  white-space: nowrap;
}

/* Identity Info */
.profile-identity-info {
  flex: 1;
  padding-top: 10px;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-username {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-color);
}

.profile-username.premium-glow {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-crown {
  font-size: 18px;
  animation: crownFloat 2s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #5a6fd6;
  white-space: nowrap;
}

.profile-bio-text {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.5;
  margin: 8px 0 10px;
}

/* Badge Strip */
.badge-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  position: relative;
  transition: transform 0.2s;
  white-space: nowrap;
}
.badge-chip:hover { transform: scale(1.08); }

.badge-chip .badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,20,25,0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
.badge-chip:hover .badge-tooltip { opacity: 1; }

.badge-verified { background: #e8f5fe; color: #1d9bf0; border: 1px solid rgba(29,155,240,0.3); }
.badge-og { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; border: none; }
.badge-streak { background: #fff3e0; color: #ef6c00; border: 1px solid rgba(239,108,0,0.3); }
.badge-contributor { background: #e8f5e9; color: #388e3c; border: 1px solid rgba(56,142,60,0.3); }
.badge-premium { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #fff; border: none; box-shadow: 0 2px 8px rgba(255,165,0,0.35); }
.badge-viral { background: linear-gradient(135deg, #ff6b6b, #ffd93d); color: #fff; border: none; }
.badge-locked { background: #f0f0f0; color: #aaa; border: 1px solid #ddd; }

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 14px;
  flex-shrink: 0;
}

.qa-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.qa-icon {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  width: 38px; height: 38px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border-radius: 50%;
}
.qa-icon:hover { background: rgba(255,255,255,0.95); transform: scale(1.1); }
.qa-danger:hover { border-color: #ff3b30 !important; color: #ff3b30; }

/* Stats Bar */
.profile-stats-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 16px;
  transition: all 0.2s;
  cursor: default;
  flex: 1;
  min-width: 60px;
}
.stat-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.stat-value { font-size: 18px; font-weight: 800; color: var(--text-color); line-height: 1.2; }
.stat-label { font-size: 11px; font-weight: 500; color: var(--muted-text); margin-top: 2px; }
.streak-chip .stat-value { color: #ef6c00; }
.xp-chip .stat-value { color: #667eea; }
.view-chip .stat-value { color: #a855f7; }
.view-count { font-weight: 700; color: var(--text-color); }

/* Glass Card (shared) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow 0.3s;
}
.glass-card:hover { box-shadow: var(--shadow-hover); }

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.card-sub {
  font-size: 12px;
  color: var(--muted-text);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Level Card */
.level-card { overflow: hidden; }

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.level-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
}

.level-sub {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 2px;
}

.level-badge-large {
  font-size: 28px;
  animation: levelFloat 3s ease-in-out infinite;
}
@keyframes levelFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

.xp-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.xp-bar-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmerMove 2s ease-in-out infinite;
}

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

.level-rewards-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-chip {
  font-size: 11px;
  background: rgba(102,126,234,0.1);
  color: #667eea;
  border: 1px solid rgba(102,126,234,0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Completion Ring */

.completion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.completion-ring-wrapper {
  position: relative;
  width: 60px; height: 60px;
  flex-shrink: 0;
}

.completion-ring {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.completion-ring-bg {
  fill: none;
  stroke: rgba(0,0,0,0.06);
  stroke-width: 3;
}

.completion-ring-fill {
  fill: none;
  stroke: url(#completionGrad);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.completion-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-color);
  transform: rotate(90deg);
  pointer-events: none;
}

.completion-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.completion-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
}

.completion-task.done {
  background: rgba(52,199,89,0.08);
  border-color: rgba(52,199,89,0.2);
}

.completion-task .task-icon { font-size: 16px; }
.completion-task .task-text { flex: 1; color: var(--text-color); }
.completion-task.done .task-text { text-decoration: line-through; color: var(--muted-text); }
.completion-task .task-check { color: #34c759; font-size: 16px; }

/* Analytics */

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.premium-tag {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255,165,0,0.3);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.analytic-stat {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.analytic-stat:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.analytic-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-color);
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.analytic-label {
  font-size: 11px;
  color: var(--muted-text);
  font-weight: 500;
  text-align: center;
}

.chart-wrapper {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

/* Locked Analytics */
.analytics-locked-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.locked-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  gap: 10px;
}

.lock-icon { font-size: 32px; }
.locked-overlay h3 { font-size: 18px; font-weight: 700; }
.locked-overlay p { font-size: 13px; color: var(--muted-text); max-width: 280px; }

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.achievement-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.achievement-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.achievement-card.unlocked {
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  border-color: rgba(102,126,234,0.3);
}

.achievement-card.locked {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.achievement-icon { font-size: 28px; }
.achievement-name { font-size: 12px; font-weight: 700; text-align: center; color: var(--text-color); }
.achievement-desc { font-size: 10px; color: var(--muted-text); text-align: center; }

.achievement-card.unlocked::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52,199,89,0.5);
}

/* Shoutout Board */
.shoutout-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.shoutout-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  animation: fadeSlideIn 0.3s ease;
}

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

.shoutout-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.shoutout-body { flex: 1; }
.shoutout-author { font-size: 13px; font-weight: 700; color: var(--text-color); }
.shoutout-msg { font-size: 13px; color: #444; margin-top: 2px; }
.shoutout-time { font-size: 11px; color: var(--muted-text); margin-top: 4px; }

.shoutout-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shoutout-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 13px;
}

.shoutout-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.shoutout-empty {
  text-align: center;
  padding: 20px;
  color: var(--muted-text);
  font-size: 13px;
}

/* Upgrade CTA */
.upgrade-cta-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f64f59 100%);
  background-size: 200% 200%;
  animation: coverGradient 6s ease infinite;
  border-radius: var(--radius);
  padding: 2px;
  box-shadow: 0 8px 32px rgba(102,126,234,0.35);
}

.upgrade-cta-inner {
  background: rgba(15,20,25,0.75);
  backdrop-filter: blur(12px);
  border-radius: calc(var(--radius) - 2px);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.upgrade-cta-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.upgrade-cta-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.upgrade-btn {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255,140,0,0.4);
  transition: all 0.3s;
}
.upgrade-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255,140,0,0.5);
}

.upgrade-pulse {
  animation: upgradePulse 2.5s ease-in-out infinite;
}
@keyframes upgradePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,140,0,0.4); }
  50% { box-shadow: 0 4px 32px rgba(255,140,0,0.7); }
}

header#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header#main-header.header-hidden {
  transform: translateY(-100%);
}

/* Edit Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.25);
  width: 95%;
  max-width: 540px;
  animation: modalSlideUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  position: relative;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.modal-header h3 { font-size: 18px; font-weight: 800; }

.modal-close {
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,0.1); }

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-input, .modal-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: rgba(255,255,255,0.8);
  resize: none;
}
.modal-input:focus, .modal-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 12px;
  margin: 4px 0;
}

.avatar-option {
  width: 100%;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  aspect-ratio: 1;
  object-fit: cover;
}

.avatar-option.selected {
  border-color: #667eea;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(102,126,234,0.4);
}

/* Rank titles coloring */
.rank-newcomer { color: #8e8e93; }
.rank-explorer { color: #34aadc; }
.rank-contributor { color: #5ac8fa; }
.rank-creator { color: #30d158; }
.rank-influencer { color: #ff9f0a; }
.rank-legend { color: #ff375f; }
.rank-champion { color: #667eea; }

/* Responsive */
@media (max-width: 600px) {
  .profile-identity-top { flex-direction: column; }
  .quick-actions { justify-content: flex-start; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-cover { height: 160px; }
  .profile-username { font-size: 18px; }
  .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* Footer */
footer#main-footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 500;
}

/* Comments Section */
.comments-section {
  margin-top: 16px;
  padding: 16px;
  background: #f9f9fb;
  border-radius: var(--radius);
}

.comment {
  margin-bottom: 8px;
  font-size: 13px;
}

.comment-content {
  background: #fff;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid #eee;
  display: inline-block;
  max-width: 100%;
}

.comment-username { font-weight: 700; margin-right: 6px; }

.comment-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.top-comment {
    background: #fafafa;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    border-radius: 4px;
}

.comment-form input {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: var(--button-radius);
}

/* Smooth Transitions */
button, a, input, textarea, .notif-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Post Fade-in Animation */
.post-card {
  animation: postFadeIn 0.3s ease-out;
}

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

/* Reaction Click Animation */
.react-btn:active, .btn-small:active {
  transform: scale(0.95);
}

.like-btn.active { 
  background: var(--primary); 
  color: #fff;
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Nav Link Hover Micro-interaction */
nav#nav-links a {
  position: relative;
}

nav#nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width 0.2s ease;
}

nav#nav-links a:hover::after {
  width: 100%;
}

/* Avatar Global Fix */
img[src*="avatar"], .post-avatar, .trending-user-avatar, .search-result-avatar, #profile-avatar {
  border: 1px solid rgba(0,0,0,0.05) !important;
}

/* ══════════════════════════════════════════
   PREMIUM FEED SYSTEM
══════════════════════════════════════════ */

/* Stories Bar */
.stories-bar { margin-bottom: 16px; }
.stories-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 2px 10px; scrollbar-width: none;
}
.stories-scroll::-webkit-scrollbar { display: none; }

.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.story-ring {
  width: 56px; height: 56px; border-radius: 50%; padding: 2.5px;
  background: linear-gradient(135deg, #f64f59, #c471ed, #12c2e9);
  animation: ringRotate 3s linear infinite;
  transition: transform 0.2s;
}
.story-ring:hover { transform: scale(1.1); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid rgba(255,255,255,0.92); display: block; }
.story-ring.seen { background: #ddd; animation: none; }
.story-add-ring {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
  border: 2px dashed rgba(102,126,234,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #667eea; transition: all 0.2s; cursor: pointer;
}
.story-add-ring:hover { background: rgba(255,255,255,0.95); transform: scale(1.1); }
.story-add-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.story-username { font-size: 11px; font-weight: 600; color: var(--muted-text); text-align: center; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Enhanced Stories Viewer (Instagram Style) */
.stories-viewer { 
  position: fixed; inset: 0; z-index: 100000; 
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.stories-viewer-inner {
  position: relative; width: 100%; height: 100%;
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.stories-viewer-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(0.6); opacity: 0.8;
}
.sv-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 20px 16px; z-index: 10;
}
.sv-progress-container {
  display: flex; gap: 4px; margin-bottom: 12px;
}
.sv-progress-bar {
  flex: 1; height: 2px; background: rgba(255,255,255,0.3);
  border-radius: 99px; overflow: hidden;
}
.sv-progress-fill {
  height: 100%; background: #fff; width: 0%;
}
.sv-user-info {
  display: flex; align-items: center; gap: 10px;
}
.sv-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}
.sv-username {
  color: #fff; font-size: 14px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.sv-time {
  color: rgba(255,255,255,0.7); font-size: 12px;
}
.sv-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; z-index: 5; text-align: center;
}
.sv-content-text {
  color: #fff; font-size: 24px; font-weight: 700;
  line-height: 1.4; white-space: pre-wrap;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.sv-nav-overlay {
  position: absolute; inset: 0; display: flex; z-index: 8;
  pointer-events: none; /* Let the children catch clicks */
}
.sv-nav-left, .sv-nav-right { 
  flex: 1; height: 100%; cursor: pointer; 
  pointer-events: auto;
  display: flex; align-items: center; padding: 20px;
}
.sv-nav-right { justify-content: flex-end; }

.sv-arrow-btn {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s, transform 0.2s;
}
.sv-nav-left:hover .sv-arrow-btn, .sv-nav-right:hover .sv-arrow-btn { opacity: 1; }
.sv-arrow-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.sv-arrow-btn:active { transform: scale(0.9); }

/* Always visible on mobile */
@media (max-width: 768px) {
    .sv-arrow-btn { opacity: 0.8 !important; width: 36px; height: 36px; font-size: 16px; }
}

.sv-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 10; text-align: center;
}
.sv-views-btn {
  background: rgba(255,255,255,0.15); border: none; padding: 6px 12px;
  border-radius: 20px; color: #fff; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(10px); cursor: pointer;
}
.sv-x-btn {
  background: none; border: none; color: #fff;
  font-size: 24px; padding: 8px; cursor: pointer;
}

/* Feed Controls Bar */
.feed-controls-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.feed-view-tabs {
  display: flex; gap: 4px;
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: 12px; padding: 4px;
}
.feed-tab-btn {
  border: none; background: none; padding: 7px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted-text); transition: all 0.2s;
}
.feed-tab-btn.active { background: var(--primary); color: #fff; }

/* Layout Toggle */
.layout-toggle {
  display: flex; gap: 2px;
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: 10px; padding: 4px;
}
.layout-btn {
  border: none; background: none; width: 30px; height: 26px; border-radius: 7px;
  font-size: 14px; cursor: pointer; color: var(--muted-text); transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.layout-btn.active { background: var(--primary); color: #fff; }

/* Filter Chips */
.filter-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  border: none; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; background: var(--card-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--border-color); color: var(--muted-text); transition: all 0.25s;
}
.filter-chip:hover { background: rgba(255,255,255,0.9); color: var(--text-color); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(15,20,25,0.2); }

/* Post Box Enhancements */
.post-modes { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.post-mode-btn {
  border: 1px solid transparent; background: rgba(0,0,0,0.03);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--muted-text); transition: all 0.2s;
}
.post-mode-btn.active { background: rgba(102,126,234,0.12); border-color: rgba(102,126,234,0.3); color: #667eea; }
.post-input-row { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.post-self-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.post-templates { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.template-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,0.6); border: 1px solid var(--border-color);
  color: var(--muted-text); transition: all 0.2s; white-space: nowrap;
}
.template-chip:hover { background: rgba(102,126,234,0.1); border-color: rgba(102,126,234,0.3); color: #667eea; transform: translateY(-1px); }
.post-select {
  background: rgba(255,255,255,0.6); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 6px 10px; font-size: 12px; font-family: inherit; cursor: pointer;
}
.post-tool-btn {
  background: rgba(255,255,255,0.6); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 6px 10px; font-size: 16px; cursor: pointer; transition: all 0.2s;
}
.post-tool-btn:hover { background: rgba(255,255,255,0.95); transform: scale(1.1); }
.post-toggle-label {
  display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted-text);
  cursor: pointer; background: rgba(255,255,255,0.6); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 6px 10px; font-weight: 500;
}
.char-count { font-size: 12px; color: var(--muted-text); font-weight: 500; }

/* Emoji Picker */
.emoji-picker-panel {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border: 1px solid var(--border-color); border-radius: 14px;
  padding: 12px; margin-top: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.emoji-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; }
.emoji-btn {
  border: none; background: transparent; font-size: 20px;
  cursor: pointer; padding: 4px; border-radius: 8px; transition: transform 0.15s, background 0.15s;
}
.emoji-btn:hover { background: rgba(0,0,0,0.06); transform: scale(1.3); }

/* Post Cards — Layout Modes */
.posts-list { display: flex; flex-direction: column; gap: 16px; }
.posts-list.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.posts-list.layout-compact { gap: 8px; }
.posts-list.layout-compact .post-card { padding: 14px 18px; }
.posts-list.layout-compact .post-content { font-size: 14px; margin-bottom: 10px; }

/* Quick Reactions */
.quick-reactions {
  position: absolute; top: -18px; left: 20px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
  border: 1px solid var(--border-color); border-radius: 999px;
  padding: 5px 10px; display: flex; gap: 2px;
  opacity: 0; pointer-events: none; z-index: 50;
  transform: translateY(-6px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.quick-reactions.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.qr-btn { border: none; background: transparent; font-size: 20px; cursor: pointer; padding: 3px 5px; border-radius: 50%; transition: transform 0.2s; line-height: 1; }
.qr-btn:hover { transform: scale(1.5) translateY(-2px); }

/* Engagement Bar Update */
.post-engagement {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 8px;
}

.engagement-stat {
  font-size: 13px;
  color: #65676b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Post Action Bar Update */
.post-actions {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
}

.post-actions .react-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #65676b !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.post-actions .react-btn:hover {
  background: rgba(0,0,0,0.05);
}

.post-actions .react-btn.active {
  color: #f02849 !important; /* FB Love Red */
  background: transparent;
}
.post-actions .react-btn.active:hover {
  background: rgba(240, 40, 73, 0.05);
}

/* Post Modal */
.post-modal-card {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border-color); border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; padding: 24px;
  animation: modalSlideUp 0.3s ease; position: relative;
}
.post-modal-card .modal-close { position: absolute; top: 16px; right: 16px; }

/* Achievement Toast */
.achievement-toast {
  position: fixed; bottom: 90px; right: 20px; z-index: 9999;
  background: rgba(15,20,25,0.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); min-width: 260px; max-width: 340px;
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast-icon { font-size: 28px; }
.toast-text { flex: 1; }
.toast-title { font-size: 13px; font-weight: 700; color: #fff; }
.toast-desc { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 14px; padding: 4px; }

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 90px; left: 20px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 18px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.back-to-top:hover { transform: scale(1.1) translateY(-2px); }

/* Mobile Bottom Nav */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 6px 0 10px; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}



.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: #8e8e93; font-size: 11px; font-weight: 500;
  padding: 6px 15px; border-radius: 12px; transition: all 0.2s;
  flex: 1;
}

.bnav-item.active { color: var(--primary); }
.bnav-item:active { background: rgba(0,0,0,0.04); }

.bnav-icon { font-size: 24px; line-height: 1; }
.bnav-lbl { display: block; }

.bnav-fab {
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 24px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4); 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  margin-top: -32px;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
}

.bnav-fab:active { transform: scale(0.9) rotate(-15deg); }

/* Sidebar Upgrades */
.sidebar-widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 10px; }
.sidebar-widget-header h3 { margin: 0; }
.sidebar-refresh-btn { background: none; border: none; font-size: 16px; color: var(--muted-text); cursor: pointer; padding: 2px 6px; border-radius: 8px; transition: all 0.2s; }
.sidebar-refresh-btn:hover { background: rgba(0,0,0,0.05); color: var(--text-color); }

/* Trending Topics */
.trending-topics-list { display: flex; flex-direction: column; gap: 6px; }
.topic-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 12px; transition: all 0.2s; cursor: pointer;
  background: rgba(255,255,255,0.4); border: 1px solid transparent;
}
.topic-item:hover { background: rgba(255,255,255,0.9); border-color: var(--border-color); transform: translateX(3px); }
.topic-name { font-size: 13px; font-weight: 600; color: var(--text-color); }
.topic-count { font-size: 11px; color: var(--muted-text); }

/* Sidebar Upgrade CTA */
.sidebar-upgrade-cta {
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 18px; margin-top: 0;
}
.upgrade-cta-mini-inner { display: flex; align-items: center; gap: 12px; }

/* Trending User - Ranked */
.trending-rank { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }

/* Post card position relative for quick reactions */
.post-card { position: relative; overflow: visible; }

/* ── Monetization & Premium Styles ── */
:root {
  --gold-primary: #d97706; /* Amber 600 */
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gold-glow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Gold Pro Badge */
.gold-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--gold-glow);
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Boosted Post Indicator */
.post-card.is-boosted {
  border-left: 4px solid var(--gold-primary);
  background: rgba(245, 158, 11, 0.03);
}

.boosted-tag {
  font-size: 11px;
  color: var(--gold-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

/* Boost Button for Owners */
.post-boost-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--muted-text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-boost-btn:hover {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

/* Monetization Modal */
.monetization-modal {
  max-width: 450px !important;
  text-align: center;
}

.monetization-modal h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.monetization-modal .price-tag {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 15px 0;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.method-card {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.method-card:hover, .method-card.active {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.05);
}

.method-card i {
  font-size: 24px;
  display: block;
  margin-bottom: 5px;
}

.method-label {
  font-size: 13px;
  font-weight: 700;
}


/* ── REPORT SYSTEM STYLES ── */
.post-header-menu {
  position: relative;
}

.post-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  min-width: 150px;
  z-index: 100;
  overflow: hidden;
  margin-top: 8px;
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-dropdown-menu button {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  transition: all 0.2s;
}

.post-dropdown-menu button:hover {
  background: #f5f5f7;
}

.comment-report-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  opacity: 0;
  transition: all 0.2s;
  padding: 2px 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.comment:hover .comment-report-btn {
  opacity: 0.5;
}

.comment-report-btn:hover {
  opacity: 1 !important;
  color: #ff3b30;
}

.qa-danger {
  background: rgba(255, 59, 48, 0.08) !important;
  color: #ff3b30 !important;
}

.qa-danger:hover {
  background: #ff3b30 !important;
  color: #fff !important;
}

.report-modal {
  max-width: 450px;
}

/* Story Toggle Switch */
.story-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-toggle-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.toggle-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Suspended Card */
.suspended-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: var(--shadow-lg);
}

.suspended-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   PREMIUM EDIT PROFILE MODAL
   ============================================ */

.edit-modal-card {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.edit-modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 30px 24px 28px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.edit-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Clickable DP */
.edit-dp-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 50%;
}

.edit-dp-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: block;
    transition: filter 0.25s ease;
}

.edit-dp-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.edit-dp-wrapper:hover .edit-dp-overlay {
    opacity: 1;
}

.edit-dp-wrapper:hover .edit-dp-img {
    filter: brightness(0.7);
}

.edit-dp-camera {
    font-size: 22px;
    line-height: 1;
}

.edit-dp-hint {
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.edit-upload-status {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    margin-top: 10px;
    min-height: 16px;
}

/* Body */
.edit-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edit-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.edit-field-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.edit-field-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24,119,242,0.12);
}

.edit-field-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24,119,242,0.12);
}

/* Avatar Preset Grid */
.edit-avatar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-avatar-grid .avatar-option {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.edit-avatar-grid .avatar-option:hover {
    transform: scale(1.12);
    border-color: var(--primary);
}

.edit-avatar-grid .avatar-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24,119,242,0.25);
    transform: scale(1.08);
}

/* Footer */
.edit-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.edit-cancel-btn {
    flex: 1;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--muted-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.edit-cancel-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.edit-save-btn {
    flex: 2;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(24,119,242,0.35);
}

.edit-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24,119,242,0.45);
}

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

/* ──────────────────────────────────────────────────────────
   FINAL MOBILE OVERRIDES (Enforce Full Width)
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  body, html { overflow-x: hidden; width: 100%; }
  
  #main-header {
      position: fixed !important; /* Force fixed at top for mobile */
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      border-radius: 0 !important;
      border: none !important;
      border-bottom: 1px solid rgba(0,0,0,0.08) !important;
      padding: 0 !important;
      z-index: 9999 !important;
      height: 56px !important; /* Consistent height */
  }
  
  .header-content {
      max-width: 100% !important;
      width: 100% !important;
      padding: 0 12px !important;
      margin: 0 !important;
      height: 100% !important;
      display: flex !important;
      align-items: center !important;
  }

  main#app-container, body[data-page="feed"] main#app-container {
      max-width: 100% !important;
      width: 100% !important;
      padding: 0 0 100px 0 !important;
      margin: 0 !important;
      display: block !important; /* Kill grid on mobile */
  }

  .feed-layout {
      width: 100% !important;
      display: block !important;
      padding: 0 !important;
      margin: 0 !important;
  }

  .feed-main {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
  }

  /* Sidebars must be gone */
  .feed-nav-left, .feed-sidebar, #nav-links a, #notif-container, .logout-text {
      display: none !important;
  }

  /* Show and optimize search bar for mobile header */
  #user-search-container {
      display: flex !important;
      flex: 1 !important;
      margin: 0 12px !important;
      max-width: none !important;
  }
  #user-search-input {
      height: 36px !important;
      font-size: 13px !important;
      background: rgba(0,0,0,0.04) !important;
      border: 1px solid rgba(0,0,0,0.03) !important;
      padding: 0 15px !important;
      width: 100% !important;
  }

  /* Full width cards with NO border radius or side borders */
  .post-box, .glass-card, .stories-bar, .post-item, .sidebar-widget, .feed-controls-bar, .filter-chips {
      border-radius: 0 !important;
      border-left: none !important;
      border-right: none !important;
      width: 100% !important;
      margin: 0 0 8px 0 !important;
      box-shadow: none !important;
      padding: 12px !important;
  }

  /* Horizontal scroll for anything that overflows */
  .feed-controls-bar, .filter-chips, .post-modes, .post-templates, .stories-scroll {
      overflow-x: auto !important;
      display: flex !important;
      gap: 10px !important;
      background: #fff;
      scrollbar-width: none;
      -ms-overflow-style: none;
  }
  .feed-view-tabs, .post-modes, .post-templates { width: max-content !important; flex-shrink: 0; }
  .feed-tab-btn, .filter-chip, .post-mode-btn, .template-chip { white-space: nowrap !important; flex-shrink: 0; }

  /* Logout button correction */
  #logout-btn {
      background: transparent !important;
      padding: 4px !important;
      border: none !important;
      display: block !important;
  }
  .logout-icon {
      display: block !important;
      width: 22px !important;
      height: 22px !important;
      object-fit: contain !important;
  }

  /* Navbar specifics */
  .bottom-nav { display: flex !important; }
  #back-to-top { bottom: 85px !important; }
}

/* Specific z-index for story viewers modal to be on top of story viewer */
#story-viewers-modal {
  z-index: 110000 !important;
  background: rgba(0,0,0,0.7);
}
#story-viewers-modal .post-modal-card {
  max-width: 400px; border-radius: 20px;
}

/* Repost System UI */
.repost-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--muted-text);
    margin-bottom: 12px; padding: 0 4px;
}
.repost-inner-card {
    border: 1.5px solid rgba(0,0,0,0.06); border-radius: 16px;
    padding: 16px; margin-top: 12px; background: rgba(0,0,0,0.015);
    transition: background 0.2s; cursor: pointer;
}
.repost-inner-card:hover { background: rgba(0,0,0,0.035); }
.orig-post-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.orig-post-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.orig-post-name { font-size: 14px; font-weight: 700; color: var(--text-color); }
.orig-post-time { font-size: 12px; color: var(--muted-text); }
.orig-post-body { font-size: 14px; line-height: 1.5; color: var(--text-color); }
.orig-post-img { width: 100%; border-radius: 12px; margin-top: 10px; max-height: 250px; object-fit: cover; }


/* EX Premium Modal & Toast System */
.ex-modal-overlay {
  position: fixed; inset: 0; z-index: 200000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ex-modal-overlay.active { opacity: 1; pointer-events: auto; }
.ex-modal-card {
  background: #fff; width: 90%; max-width: 400px; padding: 24px; border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}
.ex-modal-overlay.active .ex-modal-card { transform: scale(1) translateY(0); }
.ex-modal-title { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 12px; }
.ex-modal-message { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 24px; }
.ex-modal-actions { display: flex; gap: 12px; justify-content: center; }
.ex-btn-primary {
  background: #111; color: #fff; border: none; padding: 12px 28px;
  border-radius: 14px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.ex-btn-primary:hover { background: #333; transform: translateY(-2px); }
.ex-btn-secondary {
  background: #f0f0f0; color: #111; border: none; padding: 12px 28px;
  border-radius: 14px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.ex-btn-secondary:hover { background: #e0e0e0; }
.hidden { display: none !important; }

.ex-toast-container {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 200001; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.ex-toast {
  background: rgba(0,0,0,0.85); color: #fff; padding: 12px 24px;
  border-radius: 20px; font-size: 14px; font-weight: 600;
  backdrop-filter: blur(5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toastSlideIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

