:root {
  --primary: #2563eb;
  --primary2: #7c3aed;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #687386;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --success: #16a34a;
  --danger: #dc2626;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Noto Sans Bengali",
    "Hind Siliguri",
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.dark {
  --bg: #0f172a;
  --card: #172033;
  --text: #f8fafc;
  --muted: #aab5c7;
  --border: #2d3a50;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1150px, calc(100% - 30px));
  margin: auto;
}


/* ================= HEADER ================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong {
  display: block;
  font-size: 20px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.nav a,
.nav-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.nav a:hover,
.nav-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 27px;
  color: var(--text);
}


/* ================= HERO ================= */

.hero {
  padding: 90px 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.15),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(37, 99, 235, 0.12),
      transparent 35%
    );
}

.hero-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: 0.2s;
}

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

.primary-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.secondary-btn {
  background: var(--card);
  color: var(--text);
}

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

.hero-card {
  background: var(--card);
  padding: 45px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-icon {
  font-size: 65px;
  margin-bottom: 15px;
}

.hero-card h3 {
  font-size: 25px;
}

.hero-card p {
  font-size: 15px;
  margin-top: 8px;
}


/* ================= SEARCH ================= */

.search-section {
  padding: 20px 0;
}

.search-box {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box span {
  font-size: 22px;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}


/* ================= SECTION ================= */

.section {
  padding: 70px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
}


/* ================= FORMS ================= */

.opinion-form {
  background: var(--card);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select,
.filter-bar select,
.dashboard-filters input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

.form-group small {
  color: var(--muted);
}


/* ================= FILTER ================= */

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}


/* ================= OPINIONS ================= */

.opinions-list {
  display: grid;
  gap: 20px;
}

.opinion-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.opinion-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

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

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary2)
  );
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.user-info strong {
  display: block;
}

.user-info small {
  display: block;
  color: var(--muted);
}

.category-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  height: fit-content;
}

.opinion-text {
  white-space: pre-wrap;
  margin: 15px 0;
}

.opinion-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 15px;
}

.opinion-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.action-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
}

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

.comments {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.comment {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.comment strong {
  font-size: 14px;
}

.comment p {
  margin: 5px 0;
}

.comment small {
  color: var(--muted);
}

.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.comment-actions button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
}

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

.comment-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  padding: 10px;
}

.comment-form button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 9px;
  padding: 0 15px;
}

.reply {
  margin-left: 30px;
  margin-top: 10px;
}


/* ================= DASHBOARD ================= */

.dashboard-filters {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 12px;
  margin-bottom: 25px;
}

.dashboard-filters .form-group {
  width: 220px;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card span {
  font-size: 30px;
  display: block;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  margin: 5px 0;
}

.stat-card small {
  color: var(--muted);
}

.dashboard-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.dashboard-extra > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.dashboard-extra h3 {
  margin-bottom: 12px;
}

.dashboard-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}


/* ================= CHAT ================= */

.chat-section {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(37, 99, 235, 0.04)
    );
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  min-height: 600px;
}

.online-card,
.chat-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-card-header {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-card-header strong {
  display: block;
}

.chat-card-header small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.chat-name-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 9px;
}

.my-chat-name {
  margin: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 13px;
}

.user-search-wrap {
  padding: 0 12px 10px;
}

.user-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 0 10px;
}

.user-search-box span {
  flex: 0 0 auto;
  font-size: 17px;
}

.user-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.user-search-box input::placeholder {
  color: var(--muted);
}

.user-search-box button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

.user-search-result {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: 6px 3px 0;
}

.online-users-list {
  padding: 10px;
  max-height: 510px;
  overflow-y: auto;
}

.online-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 11px;
  border-radius: 12px;
  margin-bottom: 5px;
}

.online-user:hover,
.online-user.active {
  background: rgba(37, 99, 235, 0.1);
}

.online-user-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary2)
  );
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  position: relative;
}

.online-user-avatar::after {
  content: "";
  width: 11px;
  height: 11px;
  background: #22c55e;
  border: 2px solid var(--card);
  position: absolute;
  right: -1px;
  bottom: 0;
  border-radius: 50%;
}

.online-user-info {
  min-width: 0;
}

.online-user-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-info small {
  color: #22c55e;
}

.chat-window {
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary2)
  );
  display: grid;
  place-items: center;
  color: white;
}

.chat-header strong {
  display: block;
}

.chat-header small {
  display: block;
  color: var(--muted);
}

.chat-messages {
  flex: 1;
  min-height: 450px;
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
  background:
    radial-gradient(
      circle at center,
      rgba(37, 99, 235, 0.03),
      transparent 60%
    );
}

.chat-empty {
  min-height: 400px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.chat-empty div {
  font-size: 55px;
  margin-bottom: 10px;
}

.chat-message {
  max-width: 75%;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.chat-message.mine {
  margin-left: auto;
  align-items: flex-end;
}

.chat-message.other {
  margin-right: auto;
  align-items: flex-start;
}

.chat-message-name {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}

.chat-message-text {
  padding: 10px 13px;
  border-radius: 15px;
  word-break: break-word;
}

.chat-message.mine .chat-message-text {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.other .chat-message-text {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-message-time {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-input-area input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  outline: none;
}

.chat-send-btn {
  width: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 20px;
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-empty-small {
  text-align: center;
  color: var(--muted);
  padding: 25px 10px;
  font-size: 13px;
}


/* ================= ABOUT ================= */

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.feature-card > div {
  font-size: 35px;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--muted);
}


/* ================= FOOTER ================= */

.footer {
  padding: 35px 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
}

.footer-brand p,
.copyright {
  color: var(--muted);
  font-size: 13px;
}

.copyright {
  margin-top: 20px;
}


/* ================= TOAST ================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 120px);
  background: #111827;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 5000;
  opacity: 0;
  transition: 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* ================= LOADING ================= */

.loading {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

  .nav {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 65px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav-btn {
    text-align: left;
    width: 100%;
  }

  .menu-btn {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .online-users-list {
    max-height: 300px;
  }

}

@media (max-width: 650px) {

  .container {
    width: min(100% - 20px, 1150px);
  }

  .hero {
    padding: 55px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .form-grid,
  .filter-bar,
  .dashboard-extra,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 18px 10px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .opinion-form {
    padding: 20px;
  }

  .dashboard-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-filters .form-group {
    width: 100%;
  }

  .opinion-top {
    flex-direction: column;
  }

  .comment-form {
    flex-direction: column;
  }

  .comment-form button {
    padding: 10px;
  }

  .chat-message {
    max-width: 88%;
  }

}

/* ================= TOOLS ================= */
.tools-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.tool-card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.tool-card h3{margin-bottom:15px}.tool-input-row{display:flex;gap:8px}.tool-input-row input{flex:1}.tool-card input,.tool-card select{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:11px;outline:none;width:100%;margin-bottom:10px}.tool-card input:focus,.tool-card select:focus{border-color:var(--primary)}.tool-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.tool-form-grid input{margin-bottom:0}.tool-form-grid+.primary-btn,.tool-card>.primary-btn{margin-top:10px}.tool-result{margin-top:12px;padding:14px;border-radius:10px;background:var(--bg);border:1px solid var(--border);min-height:48px}.calc-display{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:15px;text-align:right;font-size:30px;font-weight:800;min-height:65px;margin-bottom:10px;overflow:hidden}.calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.calc-btn{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:9px;padding:15px;font-size:18px;font-weight:700;cursor:pointer}.calc-btn:hover{border-color:var(--primary);color:var(--primary)}.calc-op,.calc-equal{background:rgba(37,99,235,.1);color:var(--primary)}.calc-clear{color:#dc2626}.calc-zero{grid-column:span 2}.qr-result{text-align:center;min-height:220px;padding:15px}.qr-result img{max-width:200px;border:8px solid white;box-shadow:var(--shadow)}.qr-download{display:inline-block;margin-top:10px}.tools-section{background:rgba(37,99,235,.025)}@media(max-width:800px){.tools-grid{grid-template-columns:1fr}.tool-form-grid{grid-template-columns:1fr}.tool-input-row{flex-direction:column}}


/* ================= NOTIFICATIONS & ACTIVITIES ================= */
.notification-nav{position:relative;}
.notification-badge{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;margin-left:3px;}
.notification-toolbar,.activity-toolbar{display:flex;justify-content:flex-end;gap:10px;margin-bottom:16px;flex-wrap:wrap;}
.notifications-list,.activities-list{display:grid;gap:10px;max-width:900px;margin:0 auto;}
.notification-item,.activity-item{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow);display:flex;gap:12px;align-items:flex-start;}
.notification-item.unread{border-left:4px solid var(--primary);background:rgba(37,99,235,.06);}
.notification-icon,.activity-icon{font-size:24px;line-height:1;}
.notification-content,.activity-content{flex:1;}
.notification-content strong,.activity-content strong{display:block;margin-bottom:3px;}
.notification-content small,.activity-content small{color:var(--muted);font-size:12px;}
.empty-state{background:var(--card);border:1px dashed var(--border);padding:25px;text-align:center;border-radius:14px;color:var(--muted);}
@media(max-width:800px){.notification-toolbar,.activity-toolbar{justify-content:stretch}.notification-toolbar button,.activity-toolbar button{flex:1}}

/* Enhanced tools */
.calc-mode{display:flex;justify-content:flex-end;margin:-2px 0 10px}.calc-scientific{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:7px}.calc-scientific[hidden]{display:none}.tool-note{display:block;color:var(--muted);margin-top:10px}.dictionary-switch{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.dictionary-switch .secondary-btn.active{border-color:var(--primary);color:var(--primary);background:rgba(37,99,235,.08)}.qr-result canvas{max-width:100%;height:auto;background:#fff;padding:8px;box-shadow:var(--shadow)}
@media(max-width:650px){.calc-scientific{grid-template-columns:repeat(4,1fr)}.dictionary-switch .secondary-btn{flex:1}}
.network-status{font-size:11px;font-weight:700;white-space:nowrap;padding:7px 9px;border:1px solid var(--border);border-radius:999px;background:var(--card)}
@media(max-width:900px){.network-status{display:none}}


/* Homepage all-features shortcut grid */
.all-features-section {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent);
}
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.home-feature-card {
  min-height: 150px;
  padding: 20px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
  border-color: rgba(37, 99, 235, 0.4);
}
.home-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(37, 99, 235, 0.10);
}
.home-feature-card strong {
  font-size: 17px;
  line-height: 1.2;
}
.home-feature-card small {
  opacity: .72;
  line-height: 1.35;
}
@media (max-width: 1100px) {
  .home-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .home-feature-card { min-height: 135px; padding: 14px 8px; border-radius: 16px; }
  .home-feature-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 25px; }
  .home-feature-card strong { font-size: 14px; }
  .home-feature-card small { font-size: 11px; }
}
@media (max-width: 430px) {
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ================= DEVELOPER PROFILE ================= */

.developer-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 700px;
  margin: 30px auto 0;
  padding: 20px;
  text-align: left;
}

.developer-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  flex-shrink: 0;
}

.developer-info h3 {
  margin: 0 0 5px;
  font-size: 22px;
}

.developer-title {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 650px) {

  .developer-profile {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .developer-photo {
    width: 105px;
    height: 105px;
  }

  .developer-info h3 {
    font-size: 20px;
  }

}
/* ================= AUDIO / VIDEO CALLS ================= */
.chat-header-info{min-width:0;flex:1}
.call-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.call-btn{border:0;border-radius:10px;padding:7px 11px;font-weight:700;font-size:12px;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.audio-call-btn{background:#16a34a}
.video-call-btn{background:#2563eb}
.call-btn:disabled{opacity:.55;cursor:not-allowed}

.call-overlay{position:fixed;inset:0;z-index:5000;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:18px}
.call-overlay[hidden]{display:none!important}
.call-panel{width:min(520px,100%);max-height:92vh;overflow:auto;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:22px;box-shadow:0 25px 70px rgba(0,0,0,.35);padding:18px}
.call-panel-top{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding-bottom:14px}
.call-panel-top>div:nth-child(2){min-width:0;flex:1}
.call-panel-top strong,.call-panel-top small{display:block}
.call-panel-top small{color:var(--muted);margin-top:2px}
.call-type-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(37,99,235,.1);font-size:22px}
.call-close-btn{border:0;background:transparent;color:var(--muted);font-size:22px;padding:6px}
.incoming-call-actions,.active-call-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.call-action{border:0;border-radius:12px;padding:10px 14px;font-weight:700;background:rgba(100,116,139,.12);color:var(--text)}
.call-action.accept{background:#16a34a;color:#fff}
.call-action.reject,.call-action.end{background:#dc2626;color:#fff}
.call-video-area{position:relative;margin-top:16px;border-radius:16px;overflow:hidden;background:#000;aspect-ratio:16/10}
.call-video-area video{display:block;background:#000}
#remoteVideo{width:100%;height:100%;object-fit:cover}
#localVideo{position:absolute;right:12px;bottom:12px;width:31%;max-width:150px;aspect-ratio:3/4;object-fit:cover;border:2px solid #fff;border-radius:12px;box-shadow:0 5px 18px rgba(0,0,0,.4)}
.audio-call-area{text-align:center;padding:34px 10px 10px}
.call-avatar-large{width:92px;height:92px;border-radius:50%;margin:0 auto 14px;display:grid;place-items:center;background:rgba(37,99,235,.12);font-size:40px}
.audio-call-area strong,.audio-call-area small{display:block}
.audio-call-area small{color:var(--muted)}
@media(max-width:650px){
  .call-buttons{gap:5px}
  .call-btn{font-size:11px;padding:6px 9px}
  .call-panel{border-radius:18px;padding:14px}
}


#remoteAudio { display: none; }

/* ================= PRIVACY POLICY LINK IN ABOUT ================= */

.privacy-policy-card {
  display: flex;
  flex-direction: column;
}

.privacy-policy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 14px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
}

.privacy-policy-link:hover {
  opacity: 0.88;
}

