/* ═══════════════════════════════════════════════
   MENTORSWIPE — Main Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --ms-primary:    #7c3aed;
  --ms-secondary:  #ec4899;
  --ms-accent:     #f59e0b;
  --ms-dark:       #0f0a1e;
  --ms-card-bg:    #ffffff;
  --ms-text:       #1e1b4b;
  --ms-muted:      #6b7280;
  --ms-border:     #e5e7eb;
  --ms-yes:        #22c55e;
  --ms-no:         #ef4444;
  --ms-radius:     20px;
  --ms-shadow:     0 20px 60px rgba(124,58,237,.15);
  --ms-grad:       linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

/* ── Reset & Base ── */
.ms-container * { box-sizing: border-box; }
.ms-container {
  font-family: 'DM Sans', sans-serif;
  color: var(--ms-text);
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ── Buttons ── */
.ms-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.ms-btn-primary {
  background: var(--ms-grad);
  color: #fff;
}
.ms-btn-primary:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.ms-btn-secondary {
  background: #f3f4f6;
  color: var(--ms-text);
}
.ms-btn-secondary:hover { background: #e5e7eb; }
.ms-btn-outline {
  background: transparent;
  color: var(--ms-primary);
  border: 2px solid var(--ms-primary);
}
.ms-btn-outline:hover { background: var(--ms-primary); color: #fff; }
.ms-btn-sm { padding: 8px 18px; font-size: .8rem; }
.ms-btn-full { width: 100%; display: block; margin-top: 12px; }

/* ── Alerts ── */
.ms-alert {
  padding: 14px 20px;
  border-radius: var(--ms-radius);
  margin-bottom: 20px;
  font-weight: 500;
}
.ms-alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

/* ── Role Badges ── */
.ms-role-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
}
.ms-role-mentor     { background: linear-gradient(135deg,#7c3aed,#5b21b6); color: #fff; }
.ms-role-apprentice { background: linear-gradient(135deg,#0891b2,#0e7490); color: #fff; }
.ms-badge-sm { font-size: .7rem; padding: 3px 10px; }
.ms-badge-float { position: absolute; top: 12px; right: 12px; }

/* ═══════════════════════════════════
   PROFILE FORM
   ═══════════════════════════════════ */
.ms-profile-form-wrap {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
  overflow: hidden;
}

.ms-profile-header {
  background: var(--ms-grad);
  padding: 40px 30px 30px;
  text-align: center;
  color: #fff;
}
.ms-profile-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin: 12px 0 6px;
  color: #fff;
}

.ms-avatar-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.ms-avatar-preview {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.4);
}
.ms-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
}
.ms-avatar-wrap:hover .ms-avatar-overlay { opacity: 1; }

.ms-form { padding: 30px; }

.ms-form-group {
  margin-bottom: 20px;
}
.ms-form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ms-text);
  margin-bottom: 6px;
  font-family: 'Syne', sans-serif;
}
.ms-hint { font-weight: 400; color: var(--ms-muted); font-size: .75rem; }

.ms-form-group input[type="text"],
.ms-form-group input[type="number"],
.ms-form-group textarea,
.ms-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ms-border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--ms-text);
  background: #fafafa;
  transition: border-color .2s;
  outline: none;
}
.ms-form-group input:focus,
.ms-form-group textarea:focus { border-color: var(--ms-primary); background: #fff; }
.ms-form-group input[type="file"] {
  padding: 10px;
  background: #f3f4f6;
  border-style: dashed;
  cursor: pointer;
}

.ms-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .ms-form-row { grid-template-columns: 1fr; } }

/* Role Toggle */
.ms-role-toggle {
  display: flex;
  gap: 12px;
}
.ms-role-toggle input[type="radio"] { display: none; }
.ms-role-opt {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 2px solid var(--ms-border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  transition: all .2s;
}
.ms-role-toggle input:checked + .ms-role-opt {
  border-color: var(--ms-primary);
  background: #ede9fe;
  color: var(--ms-primary);
}

/* ═══════════════════════════════════
   SWIPE HEADER
   ═══════════════════════════════════ */
.ms-swipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.ms-swipe-info p {
  margin: 6px 0 0;
  color: var(--ms-muted);
  font-size: .9rem;
}
.ms-nav-links { display: flex; gap: 8px; }

/* ═══════════════════════════════════
   CARD STACK
   ═══════════════════════════════════ */
.ms-swipe-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ms-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 580px;
  margin-bottom: 28px;
}

.ms-card {
  position: absolute;
  inset: 0;
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transform-origin: bottom center;
  transition: box-shadow .2s;
  will-change: transform;
}
.ms-card:active { cursor: grabbing; }
.ms-card:nth-last-child(2) {
  transform: scale(.97) translateY(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.ms-card:nth-last-child(3) {
  transform: scale(.94) translateY(16px);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.ms-card-image {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: #f0ebe9;
}

/* Swipe Labels */
.ms-swipe-label {
  position: absolute;
  top: 24px;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .05em;
  border: 3px solid currentColor;
  opacity: 0;
  transform: rotate(-15deg);
  transition: opacity .05s;
}
.ms-label-yes {
  left: 20px;
  color: var(--ms-yes);
  transform: rotate(-15deg);
}
.ms-label-no {
  right: 20px;
  color: var(--ms-no);
  transform: rotate(15deg);
}

/* Exposed via JS */
.ms-card.is-swiping-right .ms-label-yes,
.ms-card.is-swiping-left  .ms-label-no  { opacity: 1; }

.ms-card-body {
  padding: 18px 20px 20px;
}
.ms-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ms-card-title-row h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--ms-text);
}
.ms-card-meta {
  font-size: .8rem;
  color: var(--ms-muted);
  margin: 0 0 8px;
}
.ms-card-bio {
  font-size: .88rem;
  color: var(--ms-text);
  line-height: 1.5;
  margin: 0 0 8px;
}
.ms-card-goal {
  font-size: .82rem;
  color: var(--ms-primary);
  font-weight: 500;
  margin: 0 0 10px;
}
.ms-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-skill-tag {
  background: #ede9fe;
  color: var(--ms-primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}

/* ── Action Buttons ── */
.ms-action-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}
.ms-action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .15s;
  background: #fff;
}
.ms-action-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,.2); }
.ms-action-btn:active { transform: scale(.95); }

.ms-btn-nope  { color: var(--ms-no);  border: 2px solid #fca5a5; }
.ms-btn-nope:hover  { background: #fef2f2; }
.ms-btn-like  { color: var(--ms-yes); border: 2px solid #86efac; width: 72px; height: 72px; font-size: 1.7rem; }
.ms-btn-like:hover  { background: #f0fdf4; }
.ms-btn-super { color: var(--ms-accent); border: 2px solid #fcd34d; }
.ms-btn-super:hover { background: #fffbeb; }

/* ═══════════════════════════════════
   MATCH MODAL
   ═══════════════════════════════════ */
.ms-match-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,10,30,.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ms-match-modal.is-open {
  display: flex;
  animation: ms-fade-in .3s ease;
}
@keyframes ms-fade-in {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ms-match-content {
  background: #fff;
  border-radius: 28px;
  padding: 40px 36px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  animation: ms-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ms-pop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.ms-match-hearts {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: ms-pulse 1s ease infinite;
}
@keyframes ms-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.ms-match-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--ms-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
}

.ms-match-content p {
  color: var(--ms-muted);
  margin: 0 0 24px;
}

.ms-match-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.ms-match-avatars img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ede9fe;
}
.ms-match-heart { font-size: 2rem; animation: ms-pulse 1s ease infinite; }

.ms-match-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-match-actions .ms-btn { display: block; width: 100%; }

/* ═══════════════════════════════════
   MATCHES LIST
   ═══════════════════════════════════ */
.ms-matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.ms-matches-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.ms-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.ms-match-card {
  background: #fff;
  border-radius: var(--ms-radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ms-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,.15);
}
.ms-match-card-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #ede9fe;
}
.ms-match-card-body { padding: 18px 20px 20px; }
.ms-match-card-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ms-text);
}
.ms-match-date {
  font-size: .75rem;
  color: var(--ms-muted);
  margin: 8px 0 0;
}

/* ═══════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════ */
.ms-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.ms-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.ms-empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ms-text);
}
.ms-empty-state p {
  color: var(--ms-muted);
  margin: 0 0 24px;
}
.ms-empty-state .ms-btn { margin: 6px auto; }

/* ═══════════════════════════════════
   SWIPE ANIMATIONS
   ═══════════════════════════════════ */
.ms-card.swipe-right {
  animation: swipeRight .4s ease forwards;
}
.ms-card.swipe-left {
  animation: swipeLeft .4s ease forwards;
}

@keyframes swipeRight {
  to { transform: translateX(150%) rotate(30deg); opacity: 0; }
}
@keyframes swipeLeft {
  to { transform: translateX(-150%) rotate(-30deg); opacity: 0; }
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 500px) {
  .ms-card-stack { height: 520px; }
  .ms-card-image { height: 260px; }
  .ms-match-content { padding: 28px 20px; }
  .ms-swipe-header { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════
   AVAILABILITY TOGGLE
   ═══════════════════════════════════ */

/* Availability dot on swipe cards */
.ms-avail-dot {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .02em;
}
.ms-avail-on  { background: rgba(34,197,94,.9);  color: #fff; }
.ms-avail-off { background: rgba(239,68,68,.9);  color: #fff; }

/* Profile form availability section */
.ms-avail-group { margin-top: 4px; }

.ms-avail-toggle-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f9fafb;
  border: 2px solid var(--ms-border);
  border-radius: 14px;
  padding: 14px 16px;
}

/* iOS-style toggle switch */
.ms-avail-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ms-avail-switch input { display: none; }
.ms-avail-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 28px;
  cursor: pointer;
  transition: background .25s;
}
.ms-avail-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.ms-avail-switch input:checked + .ms-avail-slider {
  background: var(--ms-yes);
}
.ms-avail-switch input:checked + .ms-avail-slider::before {
  transform: translateX(24px);
}

.ms-avail-text { flex: 1; }
.ms-avail-label {
  display: block;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  font-size: .88rem;
  color: var(--ms-text);
  margin-bottom: 3px;
}
.ms-avail-hint {
  display: block;
  font-size: .75rem;
  color: var(--ms-muted);
}

/* ═══════════════════════════════════
   BETTER MESSAGES INTEGRATION
   ═══════════════════════════════════ */
.ms-bm-hint {
  font-size: .75rem;
  color: var(--ms-muted);
  text-align: center;
  margin-top: 10px;
}
.ms-bm-hint a {
  color: var(--ms-primary);
  font-weight: 600;
  text-decoration: none;
}
.ms-bm-hint a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   DOUBLE OPT-IN NOTICE
   ═══════════════════════════════════ */
.ms-doi-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ede9fe;
  border: 1.5px solid #c4b5fd;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: .88rem;
  color: #4c1d95;
  line-height: 1.5;
}
.ms-doi-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════
   APPLY MODAL
   ═══════════════════════════════════ */
.ms-apply-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,10,30,.8);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 0;
}
.ms-apply-modal.is-open {
  display: flex;
  animation: ms-slide-up .3s ease;
}
@keyframes ms-slide-up {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ms-apply-content {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 520px;
  position: relative;
}

.ms-apply-close {
  position: absolute;
  top: 16px; right: 18px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--ms-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ms-apply-close:hover { background: #e5e7eb; }

.ms-apply-mentor-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ms-apply-avatar-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ede9fe;
  flex-shrink: 0;
}
.ms-apply-mentor-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--ms-text);
}
.ms-apply-sub { font-size: .82rem; color: var(--ms-muted); margin: 0; }

.ms-apply-content textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ms-border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 16px;
}
.ms-apply-content textarea:focus { border-color: var(--ms-primary); }

.ms-apply-actions { display: flex; flex-direction: column; gap: 10px; }
.ms-apply-actions .ms-btn { display: block; width: 100%; text-align: center; }

/* ═══════════════════════════════════
   MENTOR INBOX
   ═══════════════════════════════════ */
.ms-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ms-inbox-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.ms-inbox-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ms-border);
  padding-bottom: 0;
}
.ms-inbox-tab {
  padding: 10px 18px;
  border-radius: 10px 10px 0 0;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  color: var(--ms-muted);
  border: 2px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
  transition: color .15s, background .15s;
}
.ms-inbox-tab:hover { color: var(--ms-primary); background: #f5f3ff; }
.ms-inbox-tab.is-active {
  color: var(--ms-primary);
  background: #fff;
  border-color: var(--ms-border);
  border-bottom-color: #fff;
}
.ms-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ms-primary);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: .7rem;
  font-weight: 700;
  margin-left: 6px;
}

.ms-inbox-list { display: flex; flex-direction: column; gap: 16px; }

.ms-inbox-card {
  background: #fff;
  border-radius: var(--ms-radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  display: flex;
  gap: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}
.ms-inbox-card:hover { box-shadow: 0 4px 28px rgba(124,58,237,.12); }

.ms-inbox-card-left {
  flex-shrink: 0;
  width: 110px;
}
.ms-inbox-avatar {
  width: 110px;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.ms-inbox-card-body {
  padding: 18px 20px;
  flex: 1;
}
.ms-inbox-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ms-inbox-card-top h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--ms-text);
}
.ms-applied-time { color: var(--ms-muted); }
.ms-inbox-bio { color: var(--ms-muted); font-size: .85rem; margin-bottom: 8px; }

.ms-app-message {
  background: #f5f3ff;
  border-left: 3px solid var(--ms-primary);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.ms-app-message-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ms-primary);
  margin-bottom: 4px;
  font-family: 'Syne', sans-serif;
}
.ms-app-message p { font-size: .85rem; color: var(--ms-text); margin: 0; font-style: italic; }

.ms-app-message-sm { margin-top: 8px; margin-bottom: 0; }
.ms-app-message-sm p { font-size: .8rem; }

.ms-inbox-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Accept / Decline buttons */
.ms-btn-accept {
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.ms-btn-accept:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.ms-btn-accept:disabled { opacity: .5; cursor: not-allowed; }

.ms-btn-decline {
  background: transparent;
  color: var(--ms-no);
  border: 2px solid var(--ms-no);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ms-btn-decline:hover:not(:disabled) { background: var(--ms-no); color: #fff; }
.ms-btn-decline:disabled { opacity: .5; cursor: not-allowed; }

.ms-match-confirmed {
  font-weight: 600;
  color: var(--ms-yes);
  font-size: .88rem;
  margin: 0;
}
.ms-match-confirmed a { color: var(--ms-primary); }
.ms-declined-note { font-size: .82rem; color: var(--ms-muted); margin: 0; }

/* ═══════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════ */
.ms-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.ms-status-pending  { background: #fef3c7; color: #92400e; }
.ms-status-accepted { background: #d1fae5; color: #065f46; }
.ms-status-declined { background: #fee2e2; color: #7f1d1d; }
.ms-badge-abs {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Pending/declined messaging */
.ms-pending-msg  { font-size: .82rem; color: var(--ms-muted); margin: 10px 0 0; font-style: italic; }
.ms-declined-msg { font-size: .82rem; color: var(--ms-muted); margin: 10px 0 0; }

/* Inbox notification badge on nav button */
.ms-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: .65rem;
  font-weight: 800;
  margin-left: 5px;
  vertical-align: middle;
}

/* ═══════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════ */
.ms-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1b4b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 10000;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.ms-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
