/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg,#eee,#ddd,#eee);
  height: 20px;
  margin: 10px 0;
  border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --cyan: #06b6d4;
  --dark: #020617;
  --dark-soft: #0f172a;
  --card: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --white: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 24px;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(99,102,241,.35), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(6,182,212,.25), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(139,92,246,.22), transparent 40%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #1e1b4b 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 92%;
  max-width: 1120px;
  margin: auto;
}

a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: white;
}

h1, h2, h3, h4 {
  color: white;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.center-text {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

/* NAVBAR */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  margin-right: auto;
}

.logo,
.logo a {
  color: white !important;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: white;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* UNIVERSAL SECTIONS */

section {
  padding: 64px 0;
}

.page-section,
.content-section {
  padding: 64px 0;
}

.page-section > .container,
.content-section > .container,
body > section.container,
.profile-card,
.data-card,
.question-card,
.step-card,
.mentor-card,
.question-form {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-section > .container,
.content-section > .container,
body > section.container {
  padding: clamp(24px, 5vw, 58px);
}

.light-bg,
.blue-bg {
  background: transparent;
}

/* HERO */

.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.chat-section,
.audio-booking {
  width: 100%;
  max-width: 720px;
  margin: 30px auto 0;
  padding: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* BUTTONS */

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 35px rgba(99,102,241,0.35);
  transition: 0.25s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(99,102,241,0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: none;
}

/* FORMS */

.question-form {
  max-width: 700px;
  margin: 38px auto;
  padding: clamp(24px, 4vw, 40px);
}

.question-form input,
.question-form select,
.question-form textarea,
.profile-card input,
#loginBox input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,23,42,0.72);
  color: white;
  padding: 15px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
  margin-bottom: 15px;
  outline: none;
  transition: 0.25s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(15,23,42,0.95);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.22);
}

.question-form button,
.question-form .btn {
  width: 100%;
  margin-top: 8px;
}

#formMessage,
#mentorMessage,
#contactFormMessage,
#msg,
#loginMsg {
  text-align: center;
  font-weight: 800;
  margin-top: 14px;
}

/* CARDS / GRIDS */

.steps,
.mentor-container,
.questions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.step-card,
.question-card,
.mentor-card,
.data-card {
  padding: 24px;
  transition: 0.25s ease;
}

.step-card:hover,
.question-card:hover,
.mentor-card:hover,
.data-card:hover {
  transform: translateY(-6px);
  border-color: rgba(165,180,252,0.45);
}

.mentor-card {
  overflow: hidden;
  padding: 0;
}

.mentor-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.mentor-info {
  padding: 22px;
}

.badge {
  display: inline-block;
  background: rgba(34,197,94,0.16);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.35);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  margin-top: 26px;
  font-weight: 600;
}

/* QUESTIONS / ANSWERS */

.questions-container {
  max-width: 1120px;
  margin: 40px auto;
}

.question-card h3 {
  margin-bottom: 12px;
}

.question-card small {
  color: #cbd5e1;
  display: inline-block;
  margin-bottom: 12px;
}

.answer {
  margin-top: 16px;
  padding: 18px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(165,180,252,0.2);
  border-left: 4px solid var(--primary);
  border-radius: 18px;
}

.reply {
  font-size: 14px;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
}

/* PROFILE */

.profile-card {
  max-width: 560px;
  margin: 48px auto;
  padding: 34px;
  text-align: center;
}

.profile-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid rgba(255,255,255,0.2);
}

.profile-section {
  width: 92%;
  max-width: 850px;
  margin: 40px auto;
}

.profile-section h3 {
  margin-bottom: 18px;
}

/* AUTH SIMPLE PAGES */

body > div[style*="max-width:400px"],
#loginBox {
  width: 92% !important;
  max-width: 430px !important;
  margin: 100px auto !important;
  padding: 34px !important;
  text-align: center !important;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ADMIN */

.admin-section {
  width: 92%;
  max-width: 1100px;
  margin: 50px auto;
}

.danger-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* USER AREA */

#userArea {
  display: flex;
  align-items: center;
  gap: 10px;
}

#userArea .btn,
#userArea a.btn,
#userArea button {
  margin: 0;
  padding: 9px 15px;
  font-size: 0.85rem;
}

/* FOOTER */

footer {
  background: rgba(2,6,23,0.9);
  color: #cbd5e1;
  text-align: center;
  padding: 34px 16px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer p {
  color: #cbd5e1;
  margin: 0;
}

/* MOBILE */

@media (max-width: 900px) {
  nav .container {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(2,6,23,0.98);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0 0 24px 24px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    color: white;
  }

  #userArea {
    flex-direction: column;
    align-items: stretch !important;
  }

  #userArea .btn,
  #userArea a.btn,
  #userArea button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  section,
  .page-section,
  .content-section {
    padding: 34px 0;
  }

  .page-section > .container,
  .content-section > .container,
  body > section.container {
    width: 94%;
    padding: 24px 16px;
    border-radius: 24px;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  p {
    font-size: 0.98rem;
  }

  .steps,
  .mentor-container,
  .questions-container {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(99,102,241,0.35);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.center .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  width: 100%;
}

.center .btn {
  min-width: 220px;
  text-align: center;
}

.page-section .container {
  text-align: center;
}

.explore-section {
  text-align: center;
}

.explore-list {
  list-style: none;        /* remove bullets */
  padding: 0;
  margin-top: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;     /* THIS centers items */
  gap: 12px;
}

.explore-list li {
  text-align: center;
}

.explore-list a {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 18px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.25s ease;
}

.explore-list a:hover {
  background: rgba(99,102,241,0.2);
  color: white;
  transform: translateY(-2px);
}


.explore-list {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.container ul {
  list-style: none;          /* remove bullets */
  padding: 0;
  margin-top: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;       /* CENTER items */
  gap: 12px;
}

.container ul li {
  text-align: center;
}

.container ul li a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.25s ease;
}

.container ul li a:hover {
  background: rgba(99,102,241,0.2);
  color: white;
  transform: translateY(-2px);
}

section {
  text-align: center;
}

section p {
  max-width: 700px;
  margin: 0 auto;
}

.container ul {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.view-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.main-thread {
  display: grid;
  gap: 24px;
}

.thread-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.question-badge {
  display: inline-block;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(165,180,252,0.28);
  color: #c7d2fe;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 16px;
}

.question-meta {
  color: var(--muted);
  font-weight: 700;
  margin-top: 14px;
}

.answers-header {
  text-align: center;
  margin-top: 20px;
}

.answer-card {
  margin-bottom: 22px;
}

.mentor-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
}

.mentor-line span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.answer-text {
  font-size: 1.05rem;
  color: #e2e8f0;
}

.answer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.answer-actions button {
  padding: 10px 16px;
  font-size: 14px;
}

.reply-box {
  margin-top: 18px;
}

.reply-box textarea {
  min-height: 90px;
}

.replies-list {
  margin-top: 16px;
}

.reply-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
}

.reply-item p {
  margin: 6px 0 0;
}

.thread-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 100px;
}

.tag-list {
  display: grid;
  gap: 10px;
}

.tag-list a {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: #cbd5e1;
}

.empty-state-box {
  text-align: center;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .view-layout {
    grid-template-columns: 1fr;
  }

  .thread-sidebar {
    position: static;
  }

}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;

  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);

  margin-bottom: 15px;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.change-dp-btn {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #6366f1;
  color: white;
  border: none;
  cursor: pointer;
}

/* FIX QUESTION CARD TEXT VISIBILITY */
.question-card,
.question-attachment {
  margin: 14px 0;
}

.question-attachment img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}

.question-attachment a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-weight: 800;
}

.question-card h3,
.question-card h3 a,
.question-card:hover h3,
.question-card:hover h3 a {
  color: #0f172a !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.question-card small,
.question-card:hover small {
  color: #475569 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.question-card a {
  text-decoration: none;
}

.question-card:hover {
  transform: translateY(-5px);
}


.question-title-link,
.question-title-link:hover,
.question-title-link:visited,
.question-title-link:active {
  color: #0f172a !important;
  text-decoration: none;
}

.question-meta {
  color: #475569 !important;
}

/* FIX FILTER BUTTON VISIBILITY */
.filter-btn {
  color: #1e293b !important; /* dark text */
}

.filter-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important; /* white text */
}

.filter-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 2px solid #ffffff;
}

/* FIX DISABLED LOOKING BUTTONS */
.filter-btn[data-category] {
  opacity: 1 !important;
}


/* FIX BUTTON VISIBILITY */
.btn-outline {
  background: white;
  border: 2px solid #4f46e5;
  color: #4f46e5;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}

.btn-outline:hover {
  background: #4f46e5;
  color: white;
}

/* SEARCH BUTTON FIX */
.search-btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}

.search-btn:hover {
  background: #4338ca;
}

input {
  background: white !important;
  color: black !important;
  border: 1px solid #ccc;
}


/* 🔥 FORCE FIX ADMIN BUTTON VISIBILITY */
.btn-outline,
button.btn-outline {
  background: #ffffff !important;
  border: 2px solid #4f46e5 !important;
  color: #4f46e5 !important;
  font-weight: 700 !important;
  box-shadow: 0 5px 15px rgba(79,70,229,0.2) !important;
}

/* HOVER */
.btn-outline:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* FIX SMALL ROUND BUTTONS (TOP RIGHT) */
/* ADMIN ONLY BUTTON FIX */
body.admin-page .btn-outline,
body.admin-page button.btn-outline {
  background: #ffffff !important;
  border: 2px solid #4f46e5 !important;
  color: #4f46e5 !important;
}

body.admin-page .admin-header button,
body.admin-page .admin-card button {
  border: 2px solid #4f46e5 !important;
  background: #ffffff !important;
  color: #4f46e5 !important;
}

/* ACTIVE / PRIMARY BUTTON */
.btn,
button.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: white !important;
  border: none !important;
}

/* FIX INPUT FIELD (SEARCH BAR LOOK) */
input {
  background: #ffffff !important;
  color: #000 !important;
  border: 1px solid #ccc !important;
}

/* FIX TAB BUTTONS (Questions / Mentor / Users etc) */
.tabs button {
  background: #e5e7eb !important;
  color: #374151 !important;
  border: none !important;
}

.tabs button.active {
  background: #4f46e5 !important;
  color: #fff !important;
}

/* FIX HERO BIG BUTTONS */
.hero-buttons a,
.hero-buttons .btn {
  padding: 10px 18px !important;
  font-size: 14px !important;
  border-radius: 16px !important;
  min-width: auto !important;
}

/* FIX ASK / MENTOR BOX SIZE */
.steps a,
.steps .btn {
  width: auto !important;
  height: auto !important;
  padding: 16px 20px !important;
  border-radius: 20px !important;
}

/* ✅ FIX HOMEPAGE HERO BUTTON STRETCH ISSUE */
.hero-buttons {
  align-items: center !important;
}

.hero-buttons > a.btn {
  height: auto !important;
  min-height: 0 !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}

/* Put guidance box on next row */
.hero-buttons .chat-section {
  flex: 0 0 100% !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* CENTER HERO BUTTONS PERFECTLY */
.hero-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  text-align: center !important;
}

/* REMOVE EMPTY CHAT SPACE EFFECT */
.hero-buttons .chat-section {
  display: none !important;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.change-dp-btn {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #22c55e);
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  cursor: pointer;
}


.upload-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  text-align: center;
}

.upload-box label {
  display: block;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 10px;
  cursor: pointer;
}

.upload-box input {
  width: 100%;
  background: rgba(15,23,42,0.85);
  color: white;
  padding: 12px;
  border-radius: 14px;
}

.upload-box small {
  display: block;
  color: #94a3b8;
  margin-top: 8px;
}

#filePreview {
  margin-top: 12px;
}

.question-file-preview-img {
  max-width: 190px;
  max-height: 190px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
}

.file-preview-name {
  margin-top: 10px;
  color: #cbd5e1;
  font-weight: 700;
}
.question-detail-attachment {
  margin: 20px auto;
  max-width: 700px;
}

.question-detail-attachment img {
  width: 100%;
  border-radius: 15px;
  max-height: 400px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
}

.question-detail-attachment a {
  display: inline-block;
  padding: 10px 16px;
  background: #6366f1;
  color: white;
  border-radius: 20px;
  font-weight: 600;
}

.question-detail-attachment a {
  display: inline-block;
  padding: 10px 16px;
  background: #6366f1;
  color: white;
  border-radius: 20px;
  font-weight: 600;
}

/* ============================= */
/* PRO DM / MY CHATS PAGE FIX */
/* ============================= */

body:has(.dm-wrapper) {
  background: #0b1020;
}

.dm-wrapper {
  max-width: 1150px;
  height: calc(100vh - 90px);
  margin: 25px auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.dm-left {
  border-right: 1px solid #e5e7eb;
  background: #fff;
  overflow-y: auto;
}

.dm-left-header {
  padding: 22px;
  border-bottom: 1px solid #e5e7eb;
}

.dm-left-header h2 {
  text-align: left;
  font-size: 24px;
  margin: 0;
  color: #111827;
}

.search-box {
  margin-top: 15px;
  width: 100%;
  background: #f3f4f6 !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  border: none !important;
  outline: none !important;
  font-size: 14px;
  color: #111827 !important;
}

.search-box::placeholder {
  color: #9ca3af;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.chat-user:hover {
  background: #f8fafc;
}

.chat-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #6366f1;
}

.chat-user-info {
  flex: 1;
  min-width: 0;
}

.chat-user-info h3 {
  margin: 0;
  font-size: 15px;
  color: #111827 !important;
  font-weight: 700;
}

.chat-user-info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #6b7280 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-right {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.empty-chat {
  text-align: center;
}

.empty-chat img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 3px solid #6366f1;
}

.empty-chat h2 {
  margin-bottom: 10px;
  color: #111827 !important;
  font-size: 30px;
  font-weight: 800;
}

.empty-chat p {
  color: #4b5563 !important;
  max-width: 380px;
  margin: auto;
}

.open-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.open-btn:hover {
  transform: scale(1.05);
  color: white !important;
}

.dm-left::-webkit-scrollbar {
  width: 6px;
}

.dm-left::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .dm-wrapper {
    height: auto;
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .dm-right {
    display: none;
  }
}

.unread-badge {
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.chat-user {
  position: relative;
}

.chat-user small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}


/* ============================= */
/* SMART STORE WIDGET SAFE CSS */
/* ============================= */

.smart-store-widget {
  color: #172033 !important;
  margin-top: 25px;
}

.smart-store-widget .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.smart-store-widget .compact-grid {
  display: grid;
  gap: 14px;
}

.smart-store-widget .product-card {
  background: #ffffff !important;
  color: #172033 !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
}

.smart-store-widget .image-wrap {
  position: relative;
  height: 190px;
  background: #f1f5f9;
}

.smart-store-widget .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smart-store-widget .recommendation-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: #059669;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.smart-store-widget .product-content {
  padding: 18px;
}

.smart-store-widget .product-content h3,
.smart-store-widget .product-content p,
.smart-store-widget .product-footer strong {
  color: #172033 !important;
}

.smart-store-widget .product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.smart-store-widget .product-meta span {
  background: #eef2ff;
  color: #475569;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.smart-store-widget .benefit {
  font-weight: 700;
  margin-bottom: 10px;
}

.smart-store-widget .description {
  color: #64748b !important;
  font-size: 14px;
}

.smart-store-widget .product-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.smart-store-widget .product-cta {
  background: #4f46e5 !important;
  color: white !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: none !important;
}


section {
  margin: 30px 0;
}

h1, h2, h3 {
  margin-bottom: 10px;
}

p {
  margin-bottom: 10px;
}

/* ============================= */
/* MENTOR PROFILE VISIBILITY FIX */
/* ============================= */

.mentor-profile-card,
.mentor-profile-card * {
  opacity: 1 !important;
  visibility: visible !important;
}

.mentor-profile-card h1,
.mentor-profile-card h2,
.mentor-profile-card h3,
.mentor-profile-card strong {
  color: #111827 !important;
}

.mentor-profile-card p,
.mentor-profile-card span,
.mentor-profile-card div,
.mentor-profile-card small {
  color: #374151 !important;
}

.mentor-profile-card .verified-badge,
.mentor-profile-card .verified,
.mentor-profile-card .mentor-verified {
  color: #16a34a !important;
  font-weight: 700 !important;
}

.mentor-profile-card .btn {
  color: #ffffff !important;
}

.mentor-profile-card .btn-outline {
  background: #ffffff !important;
  color: #4f46e5 !important;
  border: 2px solid #4f46e5 !important;
}

/* FORCE TEXT FIX */
.mentor-profile-card {
  background: #ffffff !important;
}

/* FIX LIGHT TEXT */
.mentor-profile-card p,
.mentor-profile-card span {
  text-shadow: none !important;
}
