/* ============================================================
   SHARED COMPONENTS — Buttons, Cards, Badges, Modals, Forms
   ============================================================ */

/* ── BUTTONS ── */
.btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
  line-height: 1;
}

.btn svg,
.mobile-toggle svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg,
.mobile-toggle:hover svg {
  transform: translateX(4px);
}

.icon-fade:hover svg {
  transform: scale(1.1);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(0, 102, 200, 0.25);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 102, 200, 0.15);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark-bg);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 210, 196, 0.4);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Post Interaction Animations */
@keyframes like-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.like-animated svg {
  animation: like-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ── BADGES & CHIPS ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* Role-Based Authentication Badges */
.nav-role-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  vertical-align: middle;
}

.nav-role-badge.super_admin {
  background-color: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.nav-role-badge.school_admin {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-role-badge.visitor {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* User Type Badges */
.nav-role-badge.student {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-role-badge.teacher {
  background-color: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.nav-role-badge.parent {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-role-badge.alumni {
  background-color: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.nav-role-badge.school_representative {
  background-color: rgba(236, 72, 153, 0.1);
  color: #DB2777;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

/* School Affiliations / School Community Members */
.profile-affiliation-badge-container a:hover {
  color: var(--primary-hover);
}

.profile-affiliation-badge-container {
  position: relative;
}

.profile-affiliation-badge-container a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  font-weight: 800;
}

.profile-affiliation-badge-container a:hover {
  color: var(--primary-hover);
}

.profile-affiliation-icon {
  font-size: 1rem;
}

.dashboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.profile-affiliation-verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #16A34A;
  color: white;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 900;
}

.cm-member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 200, 0.2);
}

.cm-member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px rgba(0, 102, 200, 0.08);
}

.cm-member-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 14px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px rgba(0, 102, 200, 0.08);
}


/* ── CARDS & TABLES ── */
.dash-table-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dash-table-wrapper {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-table thead {
  background-color: var(--light-bg);
}

.dash-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
}

.dash-table tbody tr:hover {
  background-color: rgba(0, 102, 200, 0.02);
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

/* Suggested Widgets Card Base */
.manage-network-card,
.invitations-card,
.suggestions-card,
.schools-suggestion-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.manage-network-card:hover,
.invitations-card:hover,
.suggestions-card:hover,
.schools-suggestion-card:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}


/* ── MODALS & SHEETS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--dark-bg);
}

/* Registration Onboarding Modal (Interactive Feature) */
.modal-title h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-title p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Success State Screen */
.success-screen {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.success-screen.active {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px auto;
  animation: pulse-ring 2s infinite;
}

.success-screen h3 {
  margin-bottom: 8px;
}

/* Event Registration Wizard Styling */
.registration-wizard-modal {
  max-width: 680px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 24px !important;
  overflow: hidden;
}

.registration-wizard-modal form {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  margin-top: 15px;
}

/* Custom scrollbar for form step container */
.registration-wizard-modal form::-webkit-scrollbar {
  width: 6px;
}

.registration-wizard-modal form::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}

.registration-wizard-modal form::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.wizard-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.wizard-header h3 {
  font-size: 1.4rem;
  color: var(--dark-bg);
  margin-bottom: 4px;
}

.event-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Progress bar system */
.wizard-progress-bar {
  position: relative;
  margin: 15px 0 25px 0;
  padding: 0 10px;
}

.progress-line {
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
  transition: width 0.3s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.progress-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.progress-step-node span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.progress-step-node label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.progress-step-node.active span {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.progress-step-node.active label {
  color: var(--primary);
  font-weight: 700;
}

.progress-step-node.completed span {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.progress-step-node.completed label {
  color: var(--accent);
}

/* Summary view */
.summary-card {
  max-height: 400px;
  overflow-y: auto;
}

.summary-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.summary-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.summary-section h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 0.9rem;
}

.summary-grid div {
  color: var(--dark-bg);
}

.summary-grid strong {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}

.summary-grid .full-width {
  grid-column: 1 / -1;
}

.info-note {
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile sheets and overlays */
.mobile-network-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-network-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-network-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.15);
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.mobile-network-sheet.active {
  transform: translateY(0);
}

.mobile-sheet-header {
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
}

.mobile-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(15, 23, 42, 0.15);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-sheet-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.btn-close-sheet {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.mobile-sheet-content {
  overflow-y: auto;
  padding: 10px 20px 30px;
}

.mobile-network-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-network-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-network-item:hover,
.mobile-network-item:active {
  background: rgba(15, 23, 42, 0.04);
}

.mobile-network-item .item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
}

.mobile-network-item .item-left svg {
  color: var(--text-muted);
}

.mobile-network-item:hover .item-left svg {
  color: var(--primary);
}

.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100vw);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.btn-search-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.btn-search-back:active {
  background-color: rgba(15, 23, 42, 0.06);
}

.search-overlay-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-bg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 20px;
  padding: 6px 12px;
  height: 38px;
  position: relative;
}

.search-overlay-input-wrapper .search-icon {
  color: var(--text-muted);
}

.search-overlay-input-wrapper input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}

.btn-clear-search {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}

.search-overlay-filters {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.search-overlay-filters::-webkit-scrollbar {
  display: none;
}

.search-filter-chip {
  background: var(--light-bg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-filter-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.search-overlay-results {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 80px;
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.search-result-row:last-child {
  border-bottom: none;
}

.search-result-row .result-avatar-link {
  flex-shrink: 0;
  display: block;
}

.search-result-row .result-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.search-result-row .result-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.search-result-row .result-avatar-school {
  border-radius: var(--radius-sm);
  color: var(--white);
}

.search-result-row .result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.search-result-row .result-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-result-row .result-headline {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-row .result-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.search-result-row .result-actions {
  flex-shrink: 0;
}

.search-result-row .result-actions button {
  height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  border: 1.5px solid var(--primary) !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.search-result-row .result-actions button:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.search-result-row .result-actions button.btn-connected {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: var(--primary) !important;
}

.search-result-row .result-actions button.btn-connected:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}

.search-result-row .result-actions button.btn-requested {
  background: #f3f4f6 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-main) !important;
}

.search-result-row .result-actions button.btn-following {
  background: var(--light-bg) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-main) !important;
}

.mobile-controls-row {
  display: none;
}


/* ── FORMS & DROPDOWNS ── */
.modal-title {
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--text-main);
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 102, 200, 0.1);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Event registration wizard form row and validation errors */
.form-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group textarea {
  font-size: 1rem !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-md) !important;
  background-color: var(--white);
}

.input-invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-error {
  color: #EF4444;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.input-invalid+.input-error {
  display: block;
}

.radio-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-content {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.radio-card-content .icon {
  font-size: 1.8rem;
}

.radio-card-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark-bg);
  margin-bottom: 2px;
}

.radio-card-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.radio-card input[type="radio"]:checked+.radio-card-content {
  border-color: var(--primary);
  background-color: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 1px var(--primary);
}

.consent-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem !important;
  color: var(--dark-bg) !important;
  line-height: 1.4;
  margin-top: 15px;
}

.consent-checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin-top: 3px;
  cursor: pointer;
}

/* Banner Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(0, 102, 200, 0.25);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background-color: var(--light-bg);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.upload-icon {
  font-size: 2rem;
}

.upload-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* Avatar Upload Styles */
.avatar-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--white);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.avatar-upload-area:hover,
.avatar-upload-area.dragover {
  border-color: var(--accent);
  background-color: rgba(99, 102, 241, 0.03);
}

.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-upload-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.avatar-upload-area:hover .avatar-upload-label {
  color: var(--accent);
}

.avatar-upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Select fields wrapper */
.input-icon-wrapper select {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background-color: var(--white);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: var(--transition-smooth);
}

.input-icon-wrapper.select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--text-muted);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Dropdowns (Post Option Dropdowns) */
.post-actions-dropdown {
  position: absolute;
  right: 0;
  top: 45px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.post-actions-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.post-actions-dropdown ul {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.post-actions-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: background 0.15s;
}

.post-actions-dropdown li a:hover {
  background-color: var(--light-bg);
  color: var(--primary);
}

.post-actions-dropdown li a svg {
  color: var(--text-muted);
}

.post-actions-dropdown li a:hover svg {
  color: var(--primary);
}

/* Mentions Autocomplete */
.mentions-autocomplete {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.mentions-autocomplete.active {
  display: block;
}

.mention-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.mention-suggestion:hover,
.mention-suggestion.selected {
  background-color: var(--light-bg);
}

.mention-suggestion img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.mention-suggestion-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.mention-suggestion-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}


/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-alert {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--accent);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-alert.show {
  transform: translateX(0);
}

.toast-alert-success {
  border-left-color: var(--accent);
}

.toast-alert-info {
  border-left-color: var(--primary);
}

.toast-alert-error {
  border-left-color: #EF4444;
}

/* Toast Overrides */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.35s ease;
}

.toast-alert.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.toast-alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.25);
}