/* 🌞 LIGHT THEME — scoped correctly */
[data-theme="light"] {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #111;
  --color-muted: #555;
  --color-border: #ddd;
  --color-accent: #ff7a00;
  --color-accent-2: #00b64e;
}

/* Scope all button and element overrides */
[data-theme="light"] .btn,
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-secondary {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

[data-theme="light"] .btn:hover {
  background: var(--color-accent-2);
}

/* Example: textareas, cards, etc. */
[data-theme="light"] textarea,
[data-theme="light"] .card {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}


:root {
  --bg: #0a0f14;
  --card: #101820;
  --muted: #8aa0b2;
  --text: #e8f1f8;
  --brand: #ff6a00; /* saffron-ish */
  --accent: #138808; /* india green */
  --blue: #2b6cb0;
  --border: #1b2836;
}

* { box-sizing: border-box }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--blue); text-decoration: none }
.container { max-width: 920px; margin: 24px auto; padding: 0 16px }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(10, 15, 20, 0.8);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px }
.logo { height: 28px }
.brand-text { font-weight: 700; color: var(--text); font-size: 18px }
.nav { display: flex; gap: 10px; align-items: center }
.nav-username { color: var(--muted); margin-right: 8px }

/* Buttons */
.btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--muted) }
.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border: none;
  color: white;
}
.btn-secondary { background: #15222f }
.full { width: 100% }

/* Cards and Forms */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.title { margin: 0 0 12px 0 }
.alert {
  background: #3b1e1e;
  border: 1px solid #6a2e2e;
  color: #ffcccc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.form {
  display: flex; flex-direction: column; gap: 10px;
}
.form input, .form textarea {
  background: #0f1620;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
}
.file-label {
  display: inline-block;
  cursor: pointer;
  color: var(--muted);
}
.auth-card { max-width: 420px; margin: 60px auto }

/* ============================= */
/* ✨ Feed Tabs — Sidebar Glow Style */
/* ============================= */
.feed-tabs .tab {
  color: #bbb;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Hover & Active — Orange glow like sidebar */
.feed-tabs .tab:hover,
.feed-tabs .tab.active {
  color: #fff;
  background: rgba(255, 106, 0, 0.08); /* subtle saffron wash */
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.4),
              inset 0 0 6px rgba(255, 106, 0, 0.25);
  border-color: rgba(255, 106, 0, 0.25);
}

/* Optional: Smooth transition on activation */
.feed-tabs .tab.active {
  transition: all 0.35s ease;
}


.feed-heading {
  text-align: center;
  color: #ccc;
  margin-bottom: 15px;
}

/* Feed */
.feed-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .feed-grid { grid-template-columns: 1fr }
}
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  font-weight: 700;
}
.meta { font-size: 12px; color: var(--muted) }
.content { white-space: pre-wrap; margin: 8px 0 10px }
.media-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.media-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.muted { color: var(--muted) }
.mt { margin-top: 12px }
.center { text-align: center }
.bg {
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(255, 106, 0, 0.08), transparent 50%),
    radial-gradient(1000px 600px at 110% 10%, rgba(19, 136, 8, 0.08), transparent 40%),
    var(--bg);
}




.profile-header h2 {
  margin: 0;
}

.nav-username {
  color: var(--muted);
  margin-right: 8px;
  transition: color 0.2s;
}
.nav-username:hover {
  color: var(--text);
  text-decoration: underline;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-profile-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

.nav-profile-link:hover {
  opacity: 0.8;
}

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

.nav-username {
  margin-left: 6px;
  font-weight: 500;
}

.edit-bio-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-bio-form textarea {
  background: #0f1620;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
  resize: none;
}
.edit-bio-form button {
  align-self: flex-start;
}

.highlight-post {
  border: 1px solid #6fcf97;
  box-shadow: 0 0 10px rgba(111, 207, 151, 0.3);
  transition: all 0.3s ease-in-out;
}

/* 🟢 Highlight recent posts */
.post-card.recent {
  box-shadow: 0 0 10px #00ff7f;
  border: 1px solid #00ff7f;
  transition: box-shadow 1s ease-out, border 1s ease-out;
  animation: fadeHighlight 12s forwards;
}

@keyframes fadeHighlight {
  0% { box-shadow: 0 0 10px #00ff7f; border-color: #00ff7f; }
  80% { box-shadow: 0 0 2px #005f3f; border-color: #005f3f; }
  100% { box-shadow: none; border-color: var(--border); }
}

.banner {
  transition: opacity 0.5s ease;
}

.loader {
  text-align: center;
  padding: 12px;
  color: var(--muted);
  display: none;
}

/* ====================== */
/* 🧠 Profile Hover Popup */
/* ====================== */
.profile-popup {
  position: absolute;
  background: #000;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px;
  width: max-content;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  z-index: 9999;
  display: inline-block;
  transition: opacity 0.15s ease;
  color: #e7e9ea;
}
.profile-popup.visible { display: block; opacity: 1; }

.profile-popup img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #333;
}

.profile-popup h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 2px;
  color: #fff;
}

.profile-popup .username {
  color: #8b98a5;
  font-size: 14px;
  font-weight: 500;
}

.profile-popup .bio {
  margin-top: 8px;
  color: #e7e9ea;
  font-size: 14px;
  line-height: 1.4;
}

.profile-popup .stats {
  margin-top: 10px;
  font-size: 14px;
  color: #8b98a5;
}

.profile-popup .stats b {
  color: #e7e9ea;
  font-weight: 600;
}

.profile-popup .divider {
  height: 1px;
  background: #2a2a2a;
  margin: 10px 0;
}

.profile-popup .summary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  color: #e7e9ea;
  border: 1px solid #2a2a2a;
  border-radius: 9999px;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.profile-popup .summary-btn:hover {
  background: #181818;
}

/* Follow / Unfollow button — orange→green theme */
.profile-popup .follow-btn {
  background: linear-gradient(90deg, #ff7b00 0%, #00ff7f 100%);
  border: none;
  color: #111;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.profile-popup .follow-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.like-btn i {
  font-size: 1.3rem;
  color: #ff007f; /* nice pink */
}

.like-btn:hover {
  transform: scale(1.25);
  filter: brightness(1.3);
}

.like-btn:focus {
  outline: none;
}

.like-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.like-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff007f;
}

.comment .comment {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 10px;
  margin-left: 15px;
}

/* ===============================
   💬 Scrollable Nested Comments
   =============================== */

.comments-scroll {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-x: contain;
  white-space: nowrap;
}

/* inner content expands */
.comments-wrapper {
  display: inline-block;
  width: max-content;
  min-width: 100%;
  white-space: normal;
}

/* Auto-hide scrollbar until hover */
.comments-scroll::-webkit-scrollbar {
  height: 0px;
}
.comments-scroll:hover::-webkit-scrollbar {
  height: 8px;
}
.comments-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.comments-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

/* Firefox support */
.comments-scroll {
  scrollbar-width: none;
}
.comments-scroll:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) rgba(0,0,0,0.1);
}
.comment-like-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ff007f;
  font-size: 1rem;
}
.comment-like-btn:focus {
  outline: none;
}



/* ===========================
   🔄 Share Button Styling
   =========================== */
.share-btn {
  background: none;        /* remove default gray background */
  border: none;            /* remove border */
  padding: 0;              /* remove default button padding */
  cursor: pointer;         /* show pointer on hover */
  display: inline-flex;    /* keep alignment consistent with icon */
  align-items: center;
  justify-content: center;
}

.share-btn:focus,
.share-btn:active {
  outline: none;           /* remove blue highlight */
  box-shadow: none;
}

/* Hover animation (optional, subtle highlight) */
.share-btn:hover i {
  color: #00ffaa;          /* brighter green on hover */
  transform: scale(1.1);   /* small zoom effect */
  transition: 0.15s ease;
}
.share-btn i {
  color: #00ff7f;   /* default green color */
  font-size: 1.2rem;
}

/* ===========================
   ✅ General Popup Message
   (for actions like "Post shared successfully")
   =========================== */
.popup-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.popup-message.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Success / Error color themes */
.popup-success {
  border-color: #00ff7f;
  color: #00ff7f;
}

.popup-error {
  border-color: #ff4d4d;
  color: #ff4d4d;
}

.repost-banner {
  color: #00ff7f;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.repost-banner::before {
  content: "🔁";
  font-size: 1rem;
}

.reaction-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.reaction-bar > div {
  flex: 1;
  text-align: center;
}

.hashtag {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 600;
}

.hashtag:hover {
  text-decoration: underline;
}

.mention {
  color: #ff7f00;
  text-decoration: none;
  font-weight: 600;
}

.mention:hover {
  text-decoration: underline;
}

/* ============================ */
/* 🔍 Header + Search Styling   */
/* ============================ */

/* ✅ Header setup */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ✅ Left section: Logo + brand + search */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  top: 1px; /* fixes subtle misalignment on settings page */
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

/* ✅ Facebook-style Search Bar */
.search-wrapper {
  display: flex;
  align-items: center;
  background: #242526; /* darker consistent look */
  border-radius: 999px;
  padding: 6px 12px;
  margin-left: 12px; /* sits beside 'Vaani' */
  width: 260px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  top: 0;
}

.search-wrapper:hover {
  background: #3a3b3c;
}

.search-wrapper i {
  color: #b0b3b8;
  font-size: 0.9rem;
  margin-right: 8px;
}

.search-wrapper input {
  background: transparent !important; /* fixes white bg issue */
  border: none !important;
  outline: none;
  color: #e4e6eb;
  font-size: 0.95rem;
  width: 100%;
  padding: 4px 0;
}

/* ==========================================================
   🔍 ENHANCED UNIVERSAL SEARCH DROPDOWN (Users + Tags + Posts)
   ========================================================== */

.search-dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

/* Section titles like "Users", "Tags", "Posts" */
.search-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #aaa;
  padding: 6px 10px 2px;
  border-bottom: 1px solid #222;
  margin-top: 4px;
}

/* Each search item row */
.search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease, transform 0.1s ease;
}

.search-item:hover {
  background: rgba(255,255,255,0.05);
  transform: scale(1.01);
}

/* Small avatars inside dropdown */
.search-item img.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Tag and post colors */
.search-item.tag {
  color: #58a6ff;
}
.search-item.post b {
  color: var(--brand);
}

/* No results */
.no-results {
  text-align: center;
  color: var(--muted);
  padding: 10px;
  font-size: 0.9rem;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Search dropdown avatars & layout === */
.search-dropdown .result-item img,
.search-dropdown .avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 28px;
}

.search-dropdown .result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #ddd;
  max-width: 100%;
}

.search-dropdown .result-item div {
  min-width: 0;                /* enable ellipsis */
}

.search-dropdown .result-item div b,
.search-dropdown .result-item div small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown .search-section-title {
  padding: 6px 10px;
  font-size: 12px;
  color: #8aa0b2;
  border-top: 1px solid #333;
}


/* ✅ Nav buttons alignment */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Canonical header/search sizing & style (global) ===== */
.site-header{
  padding: 8px 20px !important;                 /* consistent header padding */
}

.header-left{ gap: 12px; align-items:center; }

/* Pill container — same thickness everywhere */
.search-wrapper{
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;                                  /* <-- uniform pill height */
  padding: 0 14px !important;                    /* no vertical padding */
  width: 260px;
  border-radius: 999px;
  background: #242526 !important;               /* dark (same as settings) */
  transition: background .2s ease;
}
.search-wrapper:hover{ background:#3a3b3c !important; }

.search-wrapper i{
  color:#b0b3b8;
  font-size: 14px;
  margin-right: 8px;
}

/* Input inside the pill */
.search-wrapper input{
  background: transparent !important;
  border: none !important;
  outline: none !important;
  height: 24px !important;                       /* sleek input height */
  line-height: 24px !important;
  padding: 0 !important;                         /* no extra thickness */
  margin: 0 !important;
  width: 100%;
  color: #e4e6eb !important;
  font-size: .95rem !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif !important;
  box-shadow: none !important;
  appearance: none !important;
}
.search-wrapper input::placeholder{
  color:#b0b3b8 !important;
  opacity:.9;
}

/* ============================= */
/* 🎨 Fix hashtag & mention link colors */
/* ============================= */

/* Hashtag styling (for <a class="tag-link">) */
.tag-link {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 600;
}

.tag-link:hover {
  text-decoration: underline;
  color: #7db8ff;               /* lighter blue hover */
}

/* Mention styling (for <a class="mention-link">) */
.mention-link {
  color: #ff7f00;               /* same saffron-orange as before */
  font-weight: 600;
  text-decoration: none;
}

.mention-link:hover {
  text-decoration: underline;
  color: #ff9933;               /* lighter hover tone */
}

/* ============================= */
/* 🔔 bell icon
/* ============================= */
.nav-bell {
  position: relative;
  color: white;
  font-size: 1.4rem;
  margin-right: 15px;
}

.nav-bell:hover {
  color: #ffcc00;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: red;
  color: white;
  font-size: 0.7rem;
  border-radius: 50%;
  padding: 2px 6px;
  display: inline-block;
}

/* ============================= */
/* 🖼 Fix Single Post Image Size */
/* ============================= */
.single-post .post-media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  overflow: hidden;
}

.single-post .post-image {
  max-width: 85%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.single-post .post-image:hover {
  transform: scale(1.02);
}
/* ============================= */
/* 🧑‍💻 Fix avatar size in single post */
/* ============================= */
.single-post .post-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ⚡ Neon purple glow for Trending Tags header
.sidebar .card .trending-header {
  color: #b26bff !important;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(178, 107, 255, 0.5);
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}


.sidebar .card .trending-header:hover {
  text-shadow: 0 0 12px #b26bff, 0 0 24px rgba(178, 107, 255, 0.8);
  transform: scale(1.05);
} */

/* 🧡 Override Trending Header Color Locally for Feed Page */
.sidebar .card .trending-header {
  color: #e67e22 !important;
  text-shadow: 0 0 6px rgba(230, 126, 34, 0.7) !important;
  transition: text-shadow 0.3s ease, transform 0.3s ease !important;
}

.sidebar .card .trending-header:hover {
  text-shadow: 0 0 12px #ff9933, 0 0 24px rgba(255, 153, 51, 0.9) !important;
  transform: scale(1.05) !important;
}


/* 💙 Trending hashtags match post hashtag color */
.sidebar #trendingList a {
  color: #58a6ff; /* same blue as post hashtags */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sidebar #trendingList a:hover {
  color: #7db8ff; /* lighter blue hover */
  text-shadow: 0 0 6px rgba(125, 184, 255, 0.6);
}

/* ============================= */
/* ✏️ Edit / 🗑 Delete Buttons */
/* ============================= */
.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.edit-btn,
.delete-btn {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.edit-btn:hover {
  color: #ff9933; /* orange hover */
  transform: scale(1.1);
}

.delete-btn:hover {
  color: #ff4d4d; /* red hover */
  transform: scale(1.1);
}

.edit-btn i,
.delete-btn i {
  font-size: 0.85rem;
  margin-right: 3px;
}

/* =================================== */
/* 🖊 Edit & 🗑 Delete Buttons — Dark Feed Style */
/* =================================== */

.edit-btn,
.delete-btn {
  background: none !important;  /* removes white background */
  border: none !important;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.edit-btn:hover {
  color: #ff9933; /* orange hover */
  transform: scale(1.15);
}

.delete-btn:hover {
  color: #ff4d4d; /* red hover */
  transform: scale(1.15);
}

.edit-btn i, .delete-btn i {
  font-size: 0.9rem;
}

/* ============================= */
/* 🧩 Global Modal (Edit/Delete) */
/* ============================= */
/* === Global Modals (Edit/Delete) === */
.modal {
  display: none;                    /* hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal[style*="display: block"] {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: var(--text);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}
.close:hover,
.close:focus { color: #fff; }

/* =======================================================
   ✏️ INLINE COMMENT EDITOR — Dark Feed Integrated
======================================================= */

.inline-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.inline-edit-textarea {
  width: 100%;
  background: #0f1620;                 /* same tone as your form inputs */
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.95rem;
  resize: vertical;
  box-shadow: 0 0 4px rgba(255, 106, 0, 0.3);   /* subtle saffron glow */
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.inline-edit-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 6px rgba(255, 106, 0, 0.4);
  outline: none;
}

.inline-edit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.inline-edit-actions button {
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* 💾 Save button */
.inline-edit-actions .save-edit {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #111;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.4);
}
.inline-edit-actions .save-edit:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ✖ Cancel button */
.inline-edit-actions .cancel-edit {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.inline-edit-actions .cancel-edit:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* 🗑 Inline Delete Confirm */
.inline-delete-confirm {
  margin-top: 6px;
  color: #ff4f4f;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-delete-confirm button {
  border-radius: 6px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.inline-delete-confirm .confirm-delete-yes {
  background: #ff4f4f;
  border: none;
  color: white;
}

.inline-delete-confirm .confirm-delete-no:hover {
  background: #222;
}

/* Simple fade for inline edit / delete */
.inline-editor,
.inline-delete-confirm {
  animation: fadeIn 0.2s ease;
}

/* ==========================================================
   ✨ Profile Popup Buttons (Aligned & Balanced)
   ========================================================== */

.profile-popup .follow-btn,
.profile-popup .summary-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Follow button (gradient) */
.profile-popup .follow-btn {
  background: linear-gradient(90deg, #ff7b00 0%, #00ff7f 100%);
  color: #111;
  border: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.profile-popup .follow-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* Profile Summary button */
.profile-popup .summary-btn {
  display: inline-block;
  background: transparent;
  color: #00ff7f;
  border: 1px solid #00ff7f;
  text-decoration: none;
}
.profile-popup .summary-btn:hover {
  background: rgba(0, 255, 127, 0.1);
  transform: scale(1.03);
}

/* Keep popup aligned */
.profile-popup {
  padding-bottom: 14px;
}

/* ======================================================
   🪟 User List Modal (Likes / Views)
   ====================================================== */

.user-list-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  animation: fadeIn 0.2s ease;
}

.user-list-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.user-list-modal .modal-content {
  position: relative;
  background: #101820; /* match your --card */
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1;
  color: #e8f1f8; /* same as --text */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.user-list-modal .modal-content h3 {
  text-align: center;
  margin-bottom: 14px;
  color: #ff7b00;
  font-size: 1rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

.user-list-modal .user-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-list-modal .user-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.user-list-modal .user-list li:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-list-modal .user-list img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333;
}

.user-list-modal .user-list a {
  color: #00ff7f;
  font-weight: 600;
  text-decoration: none;
}

.user-list-modal .user-list a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ======================================================
   🩹 Fix Single Post Header Layout & Clickable Buttons
   ====================================================== */

/* Proper layout — avatar + username left, buttons top-right */
.single-post .post-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  padding: 4px 0;
}

/* Avatar + username/date link block */
.single-post .post-header .user-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Avatar styling */
.single-post .post-header .post-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* Username/date block */
.single-post .post-header .post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ✅ Prevent invisible link overlay from blocking buttons */
.single-post .post-header .user-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ✅ Edit/Delete buttons top-right, clickable */
.single-post .post-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  pointer-events: auto;
  margin-left: auto;
}

/* Buttons look consistent with feed */
.single-post .btn-icon {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

/* Hover states */
.single-post .btn-icon:hover {
  color: #fff;
  transform: scale(1.05);
}

.single-post .edit-btn:hover {
  color: #ff9933;
}

.single-post .delete-btn:hover {
  color: #ff4d4d;
}

.banner.success {
  background-color: #102010;
  color: #00ff7f;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #00ff7f;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 9999;
}

.post-video {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #222;
  margin-top: 8px;
}

.post-audio {
  width: 100%;
  margin-top: 8px;
}

.preview-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #222;
  margin-right: 6px;
}

.preview-label {
  color: #aaa;
  font-size: 0.9em;
  background: #1b1b1b;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #333;
  margin-right: 6px;
}
#uploadProgressBar {
  display: block;
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #00ff99, #00ccff);
  margin-top: 8px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.btn-secondary i {
  margin-right: 6px;
}


/* ✅ Verified user badge styling */
.verified-icon {
  color: #1da1f2; /* Twitter-style blue */
  margin-left: 5px;
  font-size: 0.95em;
  vertical-align: middle;
}

.verified-icon[title] {
  cursor: help;
}

.verified-icon:hover {
  color: #4da3ff;
  filter: drop-shadow(0 0 4px #1da1f2);
}

.conversation-meta .verified-icon {
  font-size: 0.85em;
  margin-left: 4px;
}



/* ============================== */
/* 🏛 Official Statement — Golden Edge Glow */
/* ============================== */
.post-card.official_statement {
  border: none !important;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),   /* faint edge */
    0 0 12px rgba(255, 215, 0, 0.3);     /* soft outer glow */
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

/* Badge */
.post-badge.official {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(90deg, #ffd700, #ffb700);
  color: #111;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 200, 50, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================== */
/* 🎖 Milestone — Silver Edge Glow */
/* ============================== */
.post-card.milestone {
  border: none !important;
  box-shadow:
    0 0 0 1px rgba(220, 220, 220, 0.25),
    0 0 12px rgba(220, 220, 220, 0.3);
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

/* Badge */
.post-badge.milestone {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(90deg, #e0e0e0, #bfbfbf);
  color: #111;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================== */
/* 📅 Commitment — Cyan Edge Glow */
/* ============================== */
.post-card.commitment {
  border: none !important;
  box-shadow:
    0 0 0 1px rgba(0, 191, 255, 0.25),
    0 0 12px rgba(0, 191, 255, 0.3);
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

/* Badge */
.post-badge.commitment {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}
.commitment-meta {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
}


/* ============================== */
/* 💬 Mention Highlight — Green Edge Glow */
/* ============================== */
.mention-highlight {
  border: none !important;
  box-shadow:
    0 0 0 1px rgba(0, 255, 127, 0.25),   /* faint green edge */
    0 0 12px rgba(0, 255, 127, 0.3);     /* soft outer glow */
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

/* Floating "You were mentioned" badge */
.mention-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(90deg, #00ff7f, #00ffaa);
  color: #111;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 255, 127, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateY(-2px);
}



/* ========================================
   🌗 Vaani Theme Toggle (Aligned + Compact)
   ======================================== */

/* === Sidebar Theme Toggle — matches sidebar menu button style === */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;                /* same horizontal padding as sidebar buttons */
  margin: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  justify-content: flex-start;       /* aligns left like other sidebar items */
}

/* Hover effect — consistent glow */
.theme-toggle-wrapper:hover {
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.2);
  color: var(--brand);
}

/* Theme label text */
.theme-toggle-wrapper span {
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

/* On hover, label turns orange */
.theme-toggle-wrapper:hover span {
  color: var(--brand);
}

/* Hide actual checkbox */
.theme-toggle-input {
  display: none;
}

/* ========================================
   🌗 Toggle Switch Core (Compact)
   ======================================== */
.theme-toggle-label {
  width: 38px;          /* compact size */
  height: 20px;
  background: #444;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  transition: background 0.3s ease;
  color: #fff;
}

/* Icons */
.theme-toggle-label i {
  font-size: 11px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-label .fa-sun {
  color: #ffd43b;
  margin-left: 1px;
}

.theme-toggle-label .fa-moon {
  color: #aab8c2;
  margin-right: 1px;
}

/* Toggle ball */
.theme-toggle-label .toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s ease;
}

/* When active */
.theme-toggle-input:checked + .theme-toggle-label {
  background: #ffa500;
}
.theme-toggle-input:checked + .theme-toggle-label .toggle-ball {
  transform: translateX(18px);
}

/* Subtle hover nudge */
.theme-toggle-label:hover .fa-sun {
  transform: translateX(-1px);
}
.theme-toggle-label:hover .fa-moon {
  transform: translateX(1px);
}

/* ========================================
   🌗 Icon Visibility Logic
   ======================================== */
[data-theme="dark"] .theme-toggle-label .fa-sun {
  opacity: 0;
}
[data-theme="dark"] .theme-toggle-label .fa-moon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-label .fa-sun {
  opacity: 1;
}
[data-theme="light"] .theme-toggle-label .fa-moon {
  opacity: 0;
}

/* ========================================
   🌗 Sidebar Layout Integration
   ======================================== */
.theme-toggle-sidebar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 12px;
  margin: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle-sidebar:hover {
  background: rgba(255, 106, 0, 0.1);
  color: var(--brand);
}

/* Optional label visibility in expanded sidebar */
.theme-toggle-text {
  display: none;
  font-weight: 500;
  color: var(--text);
}

.floating-sidebar:hover .theme-toggle-text {
  display: inline;
}

/* Alignment: compact view center, expanded view left */
.floating-sidebar .theme-toggle-sidebar {
  justify-content: center;
}
.floating-sidebar:hover .theme-toggle-sidebar {
  justify-content: flex-start;
}


/* ==========================================================
   🔽 Load More Link — Sidebar Suggested Users
   ========================================================== */
/* 🔸 Load More link styling */
.load-more-link {
  display: block;
  text-align: right;
  font-weight: 600;
  font-size: 13px;
  color: #ff7b00; /* match 'Suggested Users' */
  margin-top: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.load-more-link:hover {
  color: #ff9f2f;
  transform: translateX(2px);
  text-decoration: underline;
}


/* 🟡 Light theme override */
[data-theme="light"] .load-more-link {
  color: #2563eb;
}

[data-theme="light"] .load-more-link:hover {
  color: #1e40af;
}


/* ==========================================================
   ✅ FINAL USER PROFILE PAGE (SAVE BUTTON FIXED & CENTERED)
   ========================================================== */

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 30px;
  gap: 28px;
}

/* ---------- Profile Header ---------- */
.profile-header {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  text-align: left !important;
  box-sizing: border-box;
}

.profile-header .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 260px;
  gap: 6px;
}

.profile-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.profile-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; flex-shrink: 0; white-space: nowrap; }
.profile-actions form { display: inline-flex; align-items: center; margin: 0; }
.profile-actions .btn, .profile-actions a.btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; line-height: 1; border-radius: 6px; padding: 0 12px; }

/* ---------- Basic Info ---------- */
.profile-basics p { margin: 2px 0; color: var(--muted); line-height: 1.5; }
.profile-basics strong { color: var(--text); }
.bio { margin-top: 6px; font-style: italic; color: var(--muted); white-space: pre-line; }
.bio.muted { color: #9ca3af; }
.location, .joined { color: var(--muted); font-size: 0.9rem; }

/* ---------- Public Record ---------- */
.public-record { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(255, 153, 51, 0.1); border: 1px solid rgba(255, 153, 51, 0.4); border-radius: 20px; padding: 4px 10px; font-size: 0.85rem; color: var(--text); }
.chip-primary { background: linear-gradient(90deg, #ff8a00, #ffb347); color: #fff; }

/* ---------- Edit Profile (Own User) ---------- */
.profile-edit {
  width: 100%;
  max-width: 850px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two columns layout */
  gap: 12px 20px;
  box-sizing: border-box;
}

/* Label spacing fix */
.profile-edit label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  display: block;
  line-height: 1.2;
}

/* Inputs */
.profile-edit input,
.profile-edit select,
.profile-edit textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* File input */
.profile-edit input[type="file"] {
  padding: 6px;
  background: var(--card);
}

/* ---------- Save Profile Button ---------- */
.profile-edit button {
  grid-column: 1 / -1;                /* spans both columns */
  justify-self: center;               /* center horizontally */
  margin-top: 8px;                    /* small space from inputs */
  background: linear-gradient(90deg, #ff8a00, #ffb347);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 0.95rem;
}
.profile-edit button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Label-input pairs alignment */
.profile-edit > :nth-child(4n+1),
.profile-edit > :nth-child(4n+2) { grid-column: 1; }
.profile-edit > :nth-child(4n+3),
.profile-edit > :nth-child(4n+4) { grid-column: 2; }
.profile-edit { grid-auto-flow: row dense; }
.profile-edit > * { min-width: 0; }

/* ---------- Section Containers ---------- */
.pinned-section, .posts-section {
  width: 100%; max-width: 850px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  box-sizing: border-box;
}
.pinned-section { margin-top: 8px; }
.posts-section { margin-top: 12px; }

.section-title {
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  margin-bottom: 10px; border-left: 4px solid var(--brand);
  padding-left: 8px; display: flex; align-items: center; gap: 6px;
}

/* ---------- Pinned Posts ---------- */
.pinned-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.pinned-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; width: 250px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: .2s ease;
}
.pinned-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.pinned-card .btn-sm { margin-top: 8px; }

/* ---------- Posts ---------- */
.posts { display: flex; flex-direction: column; gap: 18px; }
.post.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: .2s ease;
  width: 100%; box-sizing: border-box;
}
.post.card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .profile-edit { grid-template-columns: 1fr; }
  .profile-edit > * { grid-column: auto !important; }
  .profile-edit button {
    width: 70%;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .profile-header { flex-wrap: wrap; gap: 12px; text-align: center; justify-content: center; }
  .profile-info { align-items: center; }
  .profile-actions { margin-left: 0; justify-content: center; width: 100%; }
  .pinned-grid { justify-content: center; }
  .posts { gap: 12px; }
}



/* ===================================
   Premium Plans Page - Dark Mode Styling
   =================================== */

/* Header / Hero Section */
html[data-theme="dark"] .plans-hero {
  text-align: center;
  margin: 6px 0 22px;
}
html[data-theme="dark"] .plans-hero h2 {
  font-weight: 700;
}
html[data-theme="dark"] .plans-hero p {
  color: #bfbfbf;
}

/* ===================================
   Plans Grid - Perfect 3-column Layout
   =================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-top: 40px;
  padding: 0 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: #111827;
  border: 1px solid #2d2d2d;
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  min-height: 420px;
}

.plan-card:hover {
  transform: translateY(-3px);
}

/* Active Plan Highlight */
html[data-theme="dark"] .plan-card.is-active {
  border-color: #ff8800;
  box-shadow: 0 0 18px rgba(255, 136, 0, 0.6);
}

/* Plan Variants */
html[data-theme="dark"] .plan-plus {
  background: linear-gradient(145deg, #16202a, #1f2d3a);
  border-color: #0088cc40;
}
html[data-theme="dark"] .plan-premium {
  background: linear-gradient(145deg, #1e1e2e, #2b2b3b);
  border-color: #4b008240;
}

/* Responsive Fallback */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

/* ===================================
   Plan Card Elements
   =================================== */
html[data-theme="dark"] .plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html[data-theme="dark"] .plan-tagline {
  margin-top: 8px;
  color: #ccc;
}

html[data-theme="dark"] .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #16a34a;
  margin-top: 8px;
}
html[data-theme="dark"] .price span {
  font-weight: 400;
  font-size: 0.9rem;
  color: #a3a3a3;
}

/* ===================================
   Pill Badges
   =================================== */
html[data-theme="dark"] .pill-current {
  background: linear-gradient(90deg, #ffb84d, #ffd280);
  color: #111;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 0 0 10px rgba(255, 136, 0, 0.45);
}
html[data-theme="dark"] .pill-soft {
  background: rgba(0, 188, 212, 0.12);
  color: #a7f2ff;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 3px 10px;
}
html[data-theme="dark"] .pill-pop {
  background: rgba(186, 104, 200, 0.14);
  color: #f0c8ff;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ===================================
   Plan Features List
   =================================== */
html[data-theme="dark"] .plan-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
html[data-theme="dark"] .plan-features li {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #e5e5e5;
}

/* ===================================
   Upgrade CTA Buttons - Orange Glow
   =================================== */
.cta-btn {
  display: inline-block;
  background: transparent;
  border: 1.8px solid #f97316;
  color: #f97316;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.cta-btn:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.8);
}

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

.cta-btn.disabled {
  background: #2b2b2b !important;
  color: #bdbdbd !important;
  border: 1px solid #3a3a3a !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* ===================================
   Comparison Table
   =================================== */
.plan-comparison {
  margin-top: 60px;
  padding: 0 20px;
  text-align: center;
}

.plan-comparison h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #f3f3f3;
}

.plan-comparison table {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 136, 0, 0.15);
}

.plan-comparison th,
.plan-comparison td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-comparison th {
  background: #1f1f1f;
  font-weight: 700;
  color: #00ff99;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.plan-comparison td {
  color: #d4d4d4;
  font-size: 0.9rem;
}

.plan-comparison tr:last-child td {
  border-bottom: none;
}

.plan-comparison td:first-child {
  text-align: left;
  font-weight: 600;
  color: #9fd4ff;
}


/* ==========================================================
   📌 PINNED POSTS STYLING — for Profile Page
   ========================================================== */

/* Section container */
.pinned-section {
  margin-top: 30px;
  width: 100%;
  max-width: 850px;
  text-align: left;
}

.pinned-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--text);
  border-left: 4px solid var(--brand);
  padding-left: 8px;
}

/* Grid layout for multiple pinned cards */
.pinned-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

/* Individual pinned card */
.pinned-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
}

.pinned-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Media inside pinned posts */
.pinned-card .media-grid img {
  border-radius: 6px;
  max-width: 180px;
}

/* Buttons for pin/unpin */
.pin-btn,
.unpin-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(90deg, #ff6a00, #ff9e2c);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.3);
  transition: all 0.2s ease;
}

.pin-btn:hover,
.unpin-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

/* Light theme adjustments */
html[data-theme="light"] .pinned-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pinned-section h3 {
  color: #1a1a1a;
}

html[data-theme="light"] .pin-btn,
html[data-theme="light"] .unpin-btn {
  background: linear-gradient(90deg, #ff8a00, #ffc14d);
  color: #222;
  box-shadow: 0 0 6px rgba(255, 136, 0, 0.3);
}


/* ===================================================
   🌑 DARK THEME — Datetime Picker (Calendar + Clock)
   =================================================== */

html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"] {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 0.95rem !important;
  width: 220px !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* Make calendar/clock icon visible on dark */
html[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

/* Hover + focus glow (saffron/orange theme) */
html[data-theme="dark"] input[type="datetime-local"]:hover,
html[data-theme="dark"] input[type="date"]:hover,
html[data-theme="dark"] input[type="time"]:hover,
html[data-theme="dark"] input[type="datetime-local"]:focus,
html[data-theme="dark"] input[type="date"]:focus,
html[data-theme="dark"] input[type="time"]:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 6px rgba(255, 106, 0, 0.4);
  outline: none;
}

/* Optional: align with .form aesthetics */
html[data-theme="dark"] .form input[type="datetime-local"],
html[data-theme="dark"] .form input[type="date"],
html[data-theme="dark"] .form input[type="time"] {
  background: #0f1620 !important;
  border-radius: 10px !important;
}



/* ==========================================================
   🗓 Scheduled Posts Page (Dark Theme Default)
   ========================================================== */
.scheduled-container {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 16px;
}

.scheduled-container h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  border-left: 4px solid var(--brand);
  padding-left: 8px;
}

/* Scheduled post card */
.scheduled-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scheduled-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

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

.scheduled-post .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-right: 10px;
}

.scheduled-post .post-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.scheduled-post .post-time {
  font-size: 0.85rem;
  color: var(--muted);
}

.scheduled-post .post-content {
  margin-top: 10px;
  color: var(--text);
  white-space: pre-wrap;
}

.scheduled-post .media-preview img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid var(--border);
}

.scheduled-post .actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.scheduled-post .actions button {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.scheduled-post .actions button:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Hide the datetime input offscreen so it doesn't affect layout */
.vaani-picker-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 🕒 Scheduled Posts — dark textarea to match feed editor */
.edit-inline-form textarea,
.scheduled-post .edit-inline-form textarea {
  background: #0f1620;              /* same tone used for .form inputs */
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  resize: vertical;
}

/* Scheduled Posts — align buttons like Feed */
.scheduled-post .inline-edit-actions {
  margin-top: 8px;
}

/* Scheduled Posts: darken only the inline edit textarea (dark mode) */
html[data-theme="dark"] .edit-inline-form textarea[name="content"] {
  background: #0f1620 !important;   /* match feed editor tone */
  color: var(--text, #e6edf3) !important;
  border: 1px solid var(--border, #2a3543) !important;
  border-radius: 10px;
}

.mention-dropdown {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.mention-item {
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mention-item:hover {
  background: #333;
}

.mention-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}


/* Themed select for dark mode */
html[data-theme="dark"] .theme-select {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border, #333);
  border-radius: 4px;
  padding: 4px 8px;
}

/* The dropdown items themselves */
html[data-theme="dark"] .theme-select option {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}