/* =====================================================
   WAVU SOCIAL
   MODERN RESPONSIVE DESIGN
===================================================== */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;

  --bg: #f5f9fc;
  --card: #ffffff;

  --text: #102a43;
  --muted: #718096;

  --border: #e5edf4;

  --success: #16a34a;
  --danger: #ef4444;

  --shadow:
    0 10px 35px rgba(15, 23, 42, 0.08);

  --sidebar-width: 260px;
}


/* =====================================================
   RESET
===================================================== */

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


html {
  scroll-behavior: smooth;
}


body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);

  min-height: 100vh;
}


button,
input,
textarea {
  font: inherit;
}


button {
  border: 0;
  cursor: pointer;
}


img {
  max-width: 100%;
}


.hidden {
  display: none !important;
}


/* =====================================================
   AUTH
===================================================== */

.auth-screen {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #e0f2fe,
      #f8fafc
    );
}


.auth-background-circle {
  position: absolute;

  width: 400px;
  height: 400px;

  border-radius: 50%;

  background: rgba(14, 165, 233, 0.12);
}


.circle-one {
  top: -180px;
  left: -150px;
}


.circle-two {
  right: -150px;
  bottom: -180px;
}


.auth-card {
  width: min(430px, 100%);

  background: rgba(255,255,255,0.95);

  padding: 40px;

  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.12);

  position: relative;
  z-index: 2;
}


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

  margin-bottom: 20px;
}


.brand-logo {
  width: 55px;
  height: 55px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #38bdf8
    );

  color: white;

  font-size: 25px;
  font-weight: 900;

  box-shadow:
    0 10px 25px rgba(14,165,233,.3);
}


.brand-logo.small {
  width: 42px;
  height: 42px;

  border-radius: 13px;

  font-size: 20px;
}


.brand h1 {
  font-size: 28px;
  letter-spacing: 1px;
}


.brand span {
  display: block;

  color: var(--muted);

  font-size: 12px;
}


.auth-subtitle {
  color: var(--muted);

  margin-bottom: 28px;
}


.auth-form h2 {
  margin-bottom: 20px;
}


.auth-form label {
  display: block;

  font-size: 13px;
  font-weight: 700;

  margin-bottom: 7px;
}


.auth-form input {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid var(--border);

  border-radius: 13px;

  outline: none;

  margin-bottom: 15px;

  background: #fbfdff;

  transition: .2s;
}


.auth-form input:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(14,165,233,.10);
}


.primary-btn {
  width: 100%;

  padding: 14px 18px;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );

  color: white;

  font-weight: 800;

  transition: .2s;
}


.primary-btn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 25px rgba(14,165,233,.25);
}


.switch-text {
  text-align: center;

  margin-top: 20px;

  color: var(--muted);

  font-size: 14px;
}


.switch-text button {
  background: transparent;

  color: var(--primary);

  font-weight: 800;
}


/* =====================================================
   APP
===================================================== */

.app {
  min-height: 100vh;
}


.sidebar {
  position: fixed;

  left: 0;
  top: 0;
  bottom: 0;

  width: var(--sidebar-width);

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fcff
    );

  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 22px 16px;

  z-index: 100;
}


.sidebar-brand {
  display: flex;
  align-items: center;

  gap: 11px;

  padding: 0 10px 30px;
}


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


.sidebar-brand span {
  display: block;

  font-size: 11px;

  color: var(--muted);
}


.navigation {
  display: flex;
  flex-direction: column;

  gap: 6px;
}


.nav-btn {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 13px;

  padding: 13px 14px;

  border-radius: 13px;

  background: transparent;

  color: #64748b;

  text-align: left;

  transition: .2s;

  position: relative;
}


.nav-btn:hover {
  background: var(--primary-light);

  color: var(--primary-dark);
}


.nav-btn.active {
  background:
    linear-gradient(
      135deg,
      #e0f2fe,
      #f0f9ff
    );

  color: var(--primary-dark);

  font-weight: 800;
}


.nav-icon {
  width: 24px;

  font-size: 20px;

  text-align: center;
}


.badge {
  margin-left: auto;

  min-width: 23px;
  height: 23px;

  padding: 0 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--danger);

  color: white;

  border-radius: 50px;

  font-size: 11px;

  font-weight: 800;
}


.sidebar-bottom {
  border-top: 1px solid var(--border);

  padding-top: 18px;
}


.sidebar-user {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 15px;

  padding: 5px;
}


.sidebar-user img {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  object-fit: cover;
}


.sidebar-user strong {
  display: block;

  font-size: 13px;
}


.sidebar-user span {
  font-size: 11px;

  color: var(--success);
}


.logout-btn {
  width: 100%;

  padding: 11px;

  border-radius: 11px;

  background: #fff1f2;

  color: #dc2626;

  font-weight: 700;
}


.logout-btn:hover {
  background: #ffe4e6;
}


/* =====================================================
   MAIN
===================================================== */

.main-content {
  margin-left: var(--sidebar-width);

  min-height: 100vh;
}


.topbar {
  height: 78px;

  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 0 35px;

  background: rgba(255,255,255,.9);

  border-bottom: 1px solid var(--border);

  position: sticky;

  top: 0;

  z-index: 50;

  backdrop-filter: blur(15px);
}


.menu-button {
  width: 42px;
  height: 42px;

  border-radius: 11px;

  background: var(--primary-light);

  color: var(--primary-dark);

  font-size: 21px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.topbar-title h2 {
  font-size: 20px;
}


.topbar-title span {
  color: var(--muted);

  font-size: 11px;
}


.topbar-right {
  display: flex;
  align-items: center;

  gap: 12px;
}


.search-box {
  width: 240px;

  height: 42px;

  border: 1px solid var(--border);

  background: white;

  border-radius: 12px;

  display: flex;
  align-items: center;

  padding: 0 13px;

  gap: 8px;
}


.search-box span {
  color: var(--muted);
}


.search-box input {
  width: 100%;

  border: 0;

  outline: 0;

  background: transparent;
}


.top-icon {
  width: 42px;
  height: 42px;

  border-radius: 12px;

  background: white;

  border: 1px solid var(--border);

  position: relative;

  font-size: 18px;
}


.top-icon:hover {
  background: var(--primary-light);
}


.top-badge {
  position: absolute;

  right: -3px;
  top: -4px;

  min-width: 17px;
  height: 17px;

  border-radius: 50%;

  background: var(--danger);

  color: white;

  font-size: 9px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.mini-profile {
  display: flex;
  align-items: center;

  gap: 9px;

  padding-left: 8px;
}


.mini-profile img {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  object-fit: cover;
}


.mini-profile strong {
  display: block;

  font-size: 13px;
}


.mini-profile small {
  color: var(--muted);

  font-size: 10px;
}


/* =====================================================
   PAGES
===================================================== */

.page {
  padding: 35px;

  max-width: 1450px;

  margin: auto;
}


.page-heading {
  margin-bottom: 30px;
}


.page-heading h1 {
  font-size: 32px;

  margin: 5px 0 7px;
}


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


.eyebrow {
  color: var(--primary-dark);

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 1.4px;
}


/* =====================================================
   WELCOME
===================================================== */

.welcome-card {
  min-height: 350px;

  border-radius: 28px;

  padding: 45px;

  background:
    linear-gradient(
      135deg,
      #0284c7,
      #0ea5e9,
      #38bdf8
    );

  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  overflow: hidden;

  position: relative;

  box-shadow:
    0 20px 50px rgba(14,165,233,.25);
}


.welcome-content {
  position: relative;

  z-index: 2;

  max-width: 650px;
}


.welcome-card .eyebrow {
  color: #dff6ff;
}


.welcome-card h1 {
  font-size: clamp(35px, 5vw, 58px);

  line-height: 1.05;

  margin: 12px 0 20px;
}


.welcome-card p {
  max-width: 600px;

  color: #e0f7ff;

  line-height: 1.7;

  margin-bottom: 25px;
}


.welcome-button {
  width: auto;

  background: white;

  color: var(--primary-dark);
}


.welcome-symbol {
  width: 260px;
  height: 260px;

  border-radius: 50%;

  border: 25px solid rgba(255,255,255,.15);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 130px;

  font-weight: 900;

  color: rgba(255,255,255,.85);
}


.section-header {
  margin: 35px 0 20px;
}


.section-header h2 {
  margin-top: 5px;
}


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

  margin-top: 5px;
}


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

.dashboard-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}


.stat-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 24px;

  display: flex;
  align-items: flex-start;

  gap: 18px;

  box-shadow: var(--shadow);
}


.stat-icon {
  width: 50px;
  height: 50px;

  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-light);

  color: var(--primary-dark);

  font-size: 23px;
}


.stat-card strong {
  display: block;

  margin-bottom: 7px;
}


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

  font-size: 13px;

  line-height: 1.5;
}


/* =====================================================
   DISCOVER
===================================================== */

.profiles-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(230px, 1fr));

  gap: 20px;
}


.profile-item {
  background: white;

  border: 1px solid var(--border);

  border-radius: 22px;

  padding: 25px;

  text-align: center;

  box-shadow: var(--shadow);

  transition: .2s;
}


.profile-item:hover {
  transform: translateY(-4px);

  box-shadow:
    0 20px 45px rgba(15,23,42,.11);
}


.user-avatar {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  object-fit: cover;

  margin-bottom: 14px;

  border: 4px solid #e0f2fe;
}


.profile-item h3 {
  font-size: 17px;

  margin-bottom: 6px;
}


.profile-item p {
  color: var(--muted);

  font-size: 13px;

  min-height: 38px;
}


.profile-item-actions {
  display: flex;

  gap: 8px;

  margin-top: 18px;
}


.profile-item-actions button {
  flex: 1;

  padding: 10px;

  border-radius: 10px;

  font-weight: 700;
}


.view-btn {
  background: #f1f5f9;

  color: var(--text);
}


.friend-btn {
  background: var(--primary);

  color: white;
}


.accept-btn {
  background: var(--success);

  color: white;
}


.cancel-btn {
  background: #fef2f2;

  color: #dc2626;
}


.refuse-btn {
  background: #fee2e2;

  color: #dc2626;

  padding: 9px 13px;

  border-radius: 9px;
}


/* =====================================================
   LISTS
===================================================== */

.list-container {
  background: white;

  border: 1px solid var(--border);

  border-radius: 20px;

  overflow: hidden;

  box-shadow: var(--shadow);
}


.friend-item,
.notification-item {
  min-height: 78px;

  padding: 15px 18px;

  display: flex;
  align-items: center;

  gap: 13px;

  border-bottom: 1px solid var(--border);
}


.friend-item:last-child,
.notification-item:last-child {
  border-bottom: 0;
}


.list-avatar {
  width: 45px;
  height: 45px;

  min-width: 45px;

  border-radius: 50%;

  object-fit: cover;
}


.list-info {
  flex: 1;
}


.list-info h3 {
  font-size: 14px;

  margin-bottom: 4px;
}


.list-info p {
  color: var(--muted);

  font-size: 12px;
}


.list-actions {
  display: flex;

  gap: 7px;
}


.list-actions button {
  padding: 8px 12px;

  border-radius: 9px;

  font-size: 12px;

  font-weight: 700;
}


/* =====================================================
   MESSAGES
===================================================== */

.messages-layout {
  height: calc(100vh - 150px);

  min-height: 550px;

  display: grid;

  grid-template-columns: 330px 1fr;

  background: white;

  border: 1px solid var(--border);

  border-radius: 22px;

  overflow: hidden;

  box-shadow: var(--shadow);
}


.conversation-panel {
  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;

  min-width: 0;
}


.panel-title {
  padding: 20px;

  border-bottom: 1px solid var(--border);
}


.panel-title h2 {
  margin-top: 3px;
}


.panel-title > span {
  color: var(--muted);

  font-size: 11px;
}


.conversation-list {
  overflow-y: auto;
}


.conversation {
  padding: 14px 16px;

  display: flex;
  align-items: center;

  gap: 11px;

  cursor: pointer;

  border-bottom: 1px solid #f1f5f9;

  transition: .2s;
}


.conversation:hover {
  background: #f8fbfe;
}


.conversation.unread {
  background: #eff9ff;
}


.conversation-avatar {
  width: 46px;
  height: 46px;

  min-width: 46px;

  border-radius: 50%;

  object-fit: cover;
}


.conversation-info {
  min-width: 0;

  flex: 1;
}


.conversation-info strong {
  display: block;

  font-size: 14px;

  margin-bottom: 4px;
}


.last-message {
  color: var(--muted);

  font-size: 12px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.unread-dot {
  color: var(--primary);

  font-size: 18px;
}


.chat-panel {
  min-width: 0;

  position: relative;

  background:
    linear-gradient(
      180deg,
      #fafdff,
      #f5f9fc
    );
}


.chat-empty {
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 30px;
}


.empty-chat-icon {
  width: 80px;
  height: 80px;

  border-radius: 50%;

  background: var(--primary-light);

  color: var(--primary-dark);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;

  margin-bottom: 20px;
}


.chat-empty p {
  color: var(--muted);

  margin-top: 7px;
}


.chat-box {
  height: 100%;

  display: flex;
  flex-direction: column;
}


.chat-header {
  min-height: 70px;

  padding: 12px 18px;

  background: white;

  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;

  justify-content: space-between;
}


.chat-user-info {
  display: flex;
  align-items: center;

  gap: 11px;
}


.chat-user-info img {
  width: 43px;
  height: 43px;

  border-radius: 50%;

  object-fit: cover;
}


.chat-user-info strong {
  display: block;

  font-size: 14px;
}


.chat-user-info span {
  color: var(--success);

  font-size: 11px;
}


.chat-header-actions {
  display: flex;

  gap: 7px;
}


.chat-action {
  width: 38px;
  height: 38px;

  border-radius: 10px;

  background: #f1f5f9;

  color: var(--text);

  font-size: 17px;
}


.chat-action:hover {
  background: var(--primary-light);

  color: var(--primary-dark);
}


.messages-container {
  flex: 1;

  overflow-y: auto;

  padding: 25px;

  display: flex;
  flex-direction: column;

  gap: 12px;
}


.message {
  max-width: min(75%, 520px);

  display: flex;
  flex-direction: column;
}


.message.mine {
  align-self: flex-end;

  align-items: flex-end;
}


.message.theirs {
  align-self: flex-start;

  align-items: flex-start;
}


.message-text {
  padding: 11px 14px;

  border-radius: 16px;

  line-height: 1.45;

  font-size: 14px;

  word-break: break-word;
}


.message.mine .message-text {
  background: var(--primary);

  color: white;

  border-bottom-right-radius: 4px;
}


.message.theirs .message-text {
  background: white;

  border: 1px solid var(--border);

  border-bottom-left-radius: 4px;
}


.message-time {
  font-size: 9px;

  color: var(--muted);

  margin-top: 4px;
}


/* =====================================================
   ATTACHMENTS
===================================================== */

.message-attachment {
  margin-top: 7px;

  max-width: 350px;

  overflow: hidden;

  border-radius: 14px;

  background: white;

  border: 1px solid var(--border);
}


.message-attachment img {
  display: block;

  width: 100%;

  max-height: 280px;

  object-fit: cover;
}


.message-attachment video {
  display: block;

  width: 100%;

  max-height: 300px;

  background: #000;
}


.file-attachment {
  padding: 13px;

  display: flex;
  align-items: center;

  gap: 10px;
}


.file-attachment-icon {
  width: 40px;
  height: 40px;

  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-light);

  font-size: 19px;
}


.file-attachment-info {
  min-width: 0;

  flex: 1;
}


.file-attachment-info strong {
  display: block;

  font-size: 12px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.file-attachment-info small {
  color: var(--muted);

  font-size: 10px;
}


.file-download {
  color: var(--primary-dark);

  text-decoration: none;

  font-size: 12px;

  font-weight: 800;
}


/* =====================================================
   MESSAGE FORM
===================================================== */

.message-form {
  min-height: 68px;

  padding: 12px;

  background: white;

  border-top: 1px solid var(--border);

  display: flex;
  align-items: center;

  gap: 8px;
}


.message-form input[type="text"] {
  flex: 1;

  min-width: 0;

  border: 1px solid var(--border);

  border-radius: 13px;

  padding: 12px 14px;

  outline: none;

  background: #f8fafc;
}


.message-form input[type="text"]:focus {
  border-color: var(--primary);

  background: white;
}


.message-tool,
.send-message-btn {
  width: 42px;
  height: 42px;

  min-width: 42px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
}


.message-tool {
  background: #f1f5f9;
}


.message-tool:hover {
  background: var(--primary-light);
}


.send-message-btn {
  background: var(--primary);

  color: white;
}


.attachment-preview {
  background: #f8fafc;

  border-top: 1px solid var(--border);

  padding: 9px 13px;
}


.attachment-preview-content {
  display: flex;
  align-items: center;

  gap: 10px;
}


.attachment-preview-content > div:first-child {
  font-size: 22px;
}


.attachment-preview-content > div:nth-child(2) {
  flex: 1;

  min-width: 0;
}


.attachment-preview-content strong {
  display: block;

  font-size: 12px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.attachment-preview-content small {
  color: var(--muted);

  font-size: 10px;
}


.attachment-preview-content button {
  width: 30px;
  height: 30px;

  border-radius: 8px;

  background: #fee2e2;

  color: #dc2626;
}


/* =====================================================
   PROFILE
===================================================== */

.profile-layout {
  display: grid;

  grid-template-columns: 330px 1fr;

  gap: 20px;
}


.profile-preview,
.profile-edit {
  background: white;

  border: 1px solid var(--border);

  border-radius: 22px;

  padding: 30px;

  box-shadow: var(--shadow);
}


.profile-preview {
  text-align: center;
}


.profile-image-wrapper {
  width: 130px;
  height: 130px;

  margin: 0 auto 20px;

  position: relative;
}


.profile-image-wrapper img {
  width: 100%;
  height: 100%;

  border-radius: 50%;

  object-fit: cover;

  border: 5px solid #e0f2fe;
}


.avatar-edit {
  position: absolute;

  right: 2px;
  bottom: 3px;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: var(--primary);

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  border: 3px solid white;
}


.profile-preview h2 {
  margin-bottom: 5px;
}


.profile-preview > p {
  color: var(--muted);

  font-size: 13px;
}


.profile-status {
  display: inline-block;

  margin-top: 20px;

  padding: 7px 12px;

  background: #f0fdf4;

  color: var(--success);

  border-radius: 50px;

  font-size: 11px;

  font-weight: 800;
}


.profile-edit h2 {
  margin-bottom: 25px;
}


.profile-edit label {
  display: block;

  margin: 15px 0 7px;

  font-size: 13px;

  font-weight: 700;
}


.profile-edit input,
.profile-edit textarea {
  width: 100%;

  padding: 13px;

  border: 1px solid var(--border);

  border-radius: 12px;

  outline: none;

  resize: vertical;
}


.profile-edit input:focus,
.profile-edit textarea:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(14,165,233,.08);
}


.profile-edit .primary-btn {
  margin-top: 20px;
}


.avatar-info {
  margin-top: 25px;

  padding: 17px;

  background: #f8fafc;

  border-radius: 14px;
}


.avatar-info p {
  color: var(--muted);

  font-size: 12px;

  margin-top: 5px;

  line-height: 1.5;
}


/* =====================================================
   SETTINGS
===================================================== */

.settings-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: 20px;

  overflow: hidden;

  box-shadow: var(--shadow);
}


.setting-row {
  padding: 22px;

  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--border);
}


.setting-row:last-child {
  border-bottom: 0;
}


.setting-row strong {
  display: block;

  margin-bottom: 5px;
}


.setting-row p {
  color: var(--muted);

  font-size: 12px;
}


.setting-status {
  background: #dcfce7;

  color: #15803d;

  padding: 7px 11px;

  border-radius: 50px;

  font-size: 11px;

  font-weight: 800;
}


.danger-btn {
  padding: 10px 15px;

  border-radius: 10px;

  background: #fee2e2;

  color: #dc2626;

  font-weight: 800;
}


/* =====================================================
   MODAL
===================================================== */

.modal {
  position: fixed;

  inset: 0;

  z-index: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}


.modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(15,23,42,.55);

  backdrop-filter: blur(5px);
}


.modal-card,
.video-call-card {
  position: relative;

  z-index: 2;

  width: min(400px, 100%);

  background: white;

  border-radius: 24px;

  padding: 30px;

  text-align: center;

  box-shadow:
    0 30px 80px rgba(0,0,0,.2);
}


.modal-close {
  position: absolute;

  right: 15px;
  top: 15px;

  width: 35px;
  height: 35px;

  border-radius: 10px;

  background: #f1f5f9;

  font-size: 22px;
}


.modal-avatar {
  width: 110px;
  height: 110px;

  border-radius: 50%;

  object-fit: cover;

  border: 5px solid var(--primary-light);

  margin-bottom: 15px;
}


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

  line-height: 1.6;

  margin-top: 8px;
}


.modal-actions {
  margin-top: 20px;
}


.modal-actions button {
  padding: 12px 18px;

  border-radius: 11px;

  font-weight: 800;
}


/* =====================================================
   VIDEO CALL
===================================================== */

.video-call-icon {
  width: 70px;
  height: 70px;

  margin: 10px auto 15px;

  border-radius: 50%;

  background: var(--primary-light);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
}


.video-call-card > p {
  color: var(--muted);

  margin: 8px 0 18px;
}


.video-placeholder {
  height: 210px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #0f172a,
      #1e293b
    );

  color: white;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
}


.video-placeholder span {
  font-size: 45px;

  margin-bottom: 10px;
}


.video-placeholder p {
  color: #cbd5e1;

  font-size: 13px;
}


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

.loading,
.empty-state {
  padding: 35px;

  text-align: center;

  color: var(--muted);
}


.empty-state {
  background: white;
}


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

.toast {
  position: fixed;

  left: 50%;

  bottom: 25px;

  transform:
    translate(-50%, 100px);

  background: #0f172a;

  color: white;

  padding: 13px 20px;

  border-radius: 12px;

  z-index: 1000;

  font-size: 13px;

  box-shadow:
    0 15px 35px rgba(0,0,0,.2);

  transition: .3s;
}


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


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

  .dashboard-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .messages-layout {
    grid-template-columns:
      280px 1fr;
  }

  .search-box {
    width: 180px;
  }

}


@media (max-width: 850px) {

  :root {
    --sidebar-width: 250px;
  }


  .sidebar {
    transform:
      translateX(-100%);

    transition: .3s;
  }


  .sidebar.open {
    transform:
      translateX(0);
  }


  .main-content {
    margin-left: 0;
  }


  .menu-button {
    display: flex;
  }


  .topbar {
    padding: 0 18px;
  }


  .topbar-title {
    display: none;
  }


  .search-box {
    width: 150px;
  }


  .page {
    padding: 22px 16px;
  }


  .welcome-card {
    padding: 30px;

    min-height: 320px;
  }


  .welcome-symbol {
    width: 180px;
    height: 180px;

    font-size: 90px;
  }


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

}


@media (max-width: 650px) {

  .topbar {
    gap: 8px;
  }


  .topbar-right {
    gap: 6px;
  }


  .search-box {
    display: none;
  }


  .mini-profile div {
    display: none;
  }


  .dashboard-grid {
    grid-template-columns:
      1fr;
  }


  .welcome-card {
    min-height: 390px;

    align-items: flex-start;
  }


  .welcome-symbol {
    position: absolute;

    right: -50px;
    bottom: -50px;

    width: 220px;
    height: 220px;
  }


  .messages-layout {
    height: calc(100vh - 125px);

    grid-template-columns:
      1fr;
  }


  .conversation-panel {
    display: none;
  }


  .message {
    max-width: 88%;
  }


  .chat-panel {
    width: 100%;
  }


  .messages-container {
    padding: 15px;
  }


  .message-form {
    padding: 8px;
  }


  .message-tool,
  .send-message-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }


  .page-heading h1 {
    font-size: 27px;
  }


  .profile-item-actions {
    flex-direction: column;
  }


  .friend-item {
    flex-wrap: wrap;
  }


  .list-actions {
    width: 100%;
  }


  .list-actions button {
    flex: 1;
  }


  .setting-row {
    align-items: flex-start;

    flex-direction: column;
  }

}


@media (min-width: 851px) {

  .menu-button {
    display: flex;
  }

}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}


::-webkit-scrollbar-track {
  background: transparent;
}


::-webkit-scrollbar-thumb {
  background: #cbd5e1;

  border-radius: 20px;
}


::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
/* =========================================
   WAVU PUBLICATIONS
========================================= */

.posts-section {
  width: 100%;
  margin: 28px 0;
}

.posts-section .section-header {
  margin-bottom: 16px;
}

.post-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  margin-bottom: 22px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.post-composer textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
  background: transparent;
  color: inherit;
}

.post-media-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #9ca3af;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

#postMediaInput {
  width: 100%;
  max-width: 100%;
  font: inherit;
}

.post-media-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}

#publishPostButton {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#publishPostButton:disabled {
  opacity: 0.6;
  cursor: wait;
}

#postStatus {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.posts-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted, #6b7280);
}

.post-card {
  min-width: 0;
  padding: 16px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

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

.post-author-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.post-author-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.post-date {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

.post-text {
  margin: 10px 0 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-media {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  margin-top: 12px;
  border-radius: 12px;
  background: #111827;
}

.post-empty {
  padding: 22px;
  text-align: center;
  color: var(--text-muted, #6b7280);
  border: 1px dashed var(--border-color, #d1d5db);
  border-radius: 14px;
}

@media (max-width: 600px) {
  .post-composer,
  .post-card {
    padding: 13px;
    border-radius: 14px;
  }

  .post-media {
    max-height: 420px;
  }
}


/* WAVU - Bouton de sélection de média */
#postMediaInput {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
  color: #1e293b;
  font: inherit;
  cursor: pointer;
}

#postMediaInput::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#postMediaInput::file-selector-button:hover {
  background: #1d4ed8;
}

#postMediaInput::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.post-media-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.post-media-label:hover {
  background: #dbeafe;
}

/* WAVU LOGO IMAGE FIX */
.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
