﻿@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700&family=Source+Sans+3:wght@400;600&family=Cairo:wght@400;600;700&display=swap');

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --accent: #4361ee;
  --accent-dark: #2f3ab2;
  --primary: #2f3ab2;
  --primary-dark: #24308e;
  --text: #1f2430;
  --muted: #6b7280;
  --shadow: 0 20px 40px rgba(31, 36, 48, 0.08);
  --header-height: 84px;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
}

/* RTL Support for Arabic text */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Segoe UI', Tahoma, 'Arabic Typesetting', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.7;
}

/* Improve Arabic headings clarity */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-family: 'Segoe UI', Tahoma, 'Arabic Typesetting', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* Improve Arabic paragraphs and text content clarity */
[dir="rtl"] p,
[dir="rtl"] div,
[dir="rtl"] span,
[dir="rtl"] a {
  font-family: 'Segoe UI', Tahoma, 'Arabic Typesetting', sans-serif;
}

/* Arabic font for specific content elements */
[dir="rtl"] .post-card-title,
[dir="rtl"] .post-card-content,
[dir="rtl"] .feedback-message,
[dir="rtl"] .feedback-name,
[dir="rtl"] .networking-name,
[dir="rtl"] .networking-role,
[dir="rtl"] .networking-meta,
[dir="rtl"] .story-card-name,
[dir="rtl"] .story-card-summary,
[dir="rtl"] .story-full-name,
[dir="rtl"] .story-full-body,
[dir="rtl"] .job-description {
  font-family: 'Segoe UI', Tahoma, 'Arabic Typesetting', sans-serif;
  font-size: 16px;
  word-spacing: 0.15em;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(31, 36, 48, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'League Spartan', sans-serif;
}

.logo-badge {
  width: 46px;
  height: 46px;
  background: #fff;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(31, 36, 48, 0.12);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-label {
  color: var(--muted);
  font-weight: 600;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f1f3f7;
  border-radius: 999px;
  font-weight: 600;
}

.contact-chip a {
  text-decoration: none;
  color: inherit;
}

.icon {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.icon.facebook {
  background: #1877f2;
}

.icon.phone {
  background: #1f9d68;
}

.layout {
  display: flex;
  flex-direction: row;
  padding-top: var(--header-height);
  min-height: 100vh;
}

.menu-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #fff;
  box-shadow: 2px 0 20px rgba(31, 36, 48, 0.07);
  display: flex;
  flex-direction: column;
  z-index: 35;
  overflow-y: auto;
}


.menu-decoration {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #cfd5f3;
  font-family: 'League Spartan', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #151a3b;
}

.menu-icon {
  background: #fff;
  color: var(--accent-dark);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: relative;
  top: -6px;
}

.menu-decoration .menu-icon {
  top: 0;
}

.menu-title {
  letter-spacing: 0.02em;
}

.menu-links {
  position: static;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 12px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  z-index: 20;
}

/* sidebar overlay - unused */
.sidebar-overlay {
  display: none;
}

.sidebar-overlay.open {
  display: none;
}

.menu-links .nav-item {
  background: #eef1ff;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.menu-links .nav-item:hover,
.menu-links .nav-item.active {
  border-color: rgba(67, 97, 238, 0.45);
}

.nav-item {
  text-decoration: none;
  color: #1a1f40;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: 0.2s ease;
  width: 100%;
}

.nav-item:hover,
.nav-item.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.nav-icon {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.menu-icon svg,
.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.logout-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #d72638;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(215, 38, 56, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: #b81e2e;
  box-shadow: 0 12px 24px rgba(215, 38, 56, 0.35);
  transform: translateY(-1px);
}

.logout-form {
  margin: 0;
  display: flex;
}

.menu-logout {
  display: flex;
  margin-top: 4px;
}

.menu-toggle {
  display: none;
}

.menu-bar.open ~ .content .menu-toggle,
body.sidebar-open .menu-toggle {
  display: none;
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-bars span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content {
  padding: 30px 32px 60px;
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

.welcome-card {
  background: linear-gradient(120deg, #2f3ab2 0%, #3a2f9b 45%, #1d2170 100%);
  color: #fff;
  padding: 26px 28px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.welcome-user {
  display: flex;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'League Spartan', sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.welcome-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.welcome-subtitle {
  opacity: 0.8;
  margin-top: 4px;
}

.link-btn {
  margin-top: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.05);
}

.welcome-actions {
  display: flex;
  gap: 10px;
}

.quick-action {
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.db-warning {
  background: #fff4e8;
  border: 1px solid #f2c59f;
  color: #8c4a18;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 18px;
}

.upload-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.upload-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.upload-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.upload-form input[type="file"] {
  flex: 1;
  min-width: 220px;
}

.upload-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #2f3ab2 0%, #1d2170 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.upload-btn:hover {
  background: linear-gradient(135deg, #3a47d5 0%, #2a2f9a 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(47, 58, 178, 0.4);
}

.upload-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.upload-alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.upload-alert.success {
  background: #e9f7ef;
  color: #1c6b47;
  border: 1px solid #b9e7cf;
}

.upload-alert.error {
  background: #ffecef;
  color: #b42318;
  border: 1px solid #f3b4bb;
}

.file-list {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
  font-size: 14px;
}

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

.file-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.feedback-section {
  margin-bottom: 26px;
}

.feedback-hero {
  background: linear-gradient(110deg, #11b0d8 0%, #1a7fe0 55%, #2f59d8 100%);
  color: #fff;
  padding: 26px 28px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(16, 120, 208, 0.25);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.feedback-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.feedback-hero-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.feedback-hero-subtitle {
  margin-top: 6px;
  opacity: 0.85;
  font-size: 14px;
}

.feedback-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}

.feedback-alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.feedback-alert.success {
  background: #e9f7ef;
  color: #1c6b47;
  border: 1px solid #b9e7cf;
}

.feedback-alert.error {
  background: #ffecef;
  color: #b42318;
  border: 1px solid #f3b4bb;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.feedback-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.feedback-form input,
.feedback-form textarea {
  border: 1px solid #e2e6f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8f9fc;
  font-family: inherit;
}

.feedback-rating {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: #2a2f3c;
}

.rating-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2a2f3c;
}

.feedback-submit {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #19a252 0%, #138f4b 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.networking {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.networking-block {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.networking-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f6;
  margin-bottom: 16px;
}

.networking-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}

.networking-icon.connect {
  background: #2f6bff;
}

.networking-icon.mentor {
  background: #1f9d68;
}

.networking-icon.faculty {
  background: #8b3cf6;
}

.networking-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.networking-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.networking-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.networking-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.networking-card {
  background: #fafbff;
  border: 1px solid #e5e9f3;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(31, 36, 48, 0.06);
}

.networking-name {
  font-weight: 700;
  font-size: 16px;
}

.networking-role {
  color: #4b5563;
  font-size: 13px;
}

.networking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.job-description {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
  line-height: 1.5;
}

.networking-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform-origin: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.networking-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 18px rgba(31, 36, 48, 0.18);
  filter: brightness(0.98);
}

.networking-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 6px 12px rgba(31, 36, 48, 0.12);
}

.networking-btn.primary {
  background: #2f6bff;
}

.networking-btn.primary:hover {
  background: #255fe6;
}

.networking-btn.secondary {
  background: #1f9d68;
}

.networking-btn.secondary:hover {
  background: #178456;
}

.networking-btn.faculty {
  background: #8b3cf6;
}

.networking-btn.faculty:hover {
  background: #7832d8;
}

.networking-icon.event {
  background: #4361ee;
}

.event-btn {
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
}

.event-btn:hover {
  background: linear-gradient(135deg, #3a50d0 0%, #24308e 100%);
}

.event-card {
  position: relative;
  padding-top: 60px;
}

.event-date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  color: #fff;
  border-radius: 12px;
  width: 52px;
  text-align: center;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 14px rgba(47, 58, 178, 0.35);
}

.event-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.event-day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

/* Event create form */
.event-create-form {
  display: flex;
  flex-direction: column;
}

.event-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.event-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.event-form-field input,
.event-form-field textarea {
  border: 1px solid #e2e6f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8f9fc;
  font-family: inherit;
  resize: vertical;
}

.delete-event-btn {
  background: none !important;
  color: #d72638;
  border: 1.5px solid #d72638;
  border-radius: 10px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
  letter-spacing: 0.01em;
}

.delete-event-btn::before {
  content: "\2716";
  font-size: 12px;
  line-height: 1;
}

.delete-event-btn:hover {
  background: #d72638 !important;
  color: #fff;
  box-shadow: 0 2px 10px rgba(215, 38, 56, 0.25);
  transform: translateY(-1px);
}

.delete-event-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.request-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 28, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 60;
}

.request-overlay.open {
  display: block;
}

.request-panel {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 70;
}

.request-panel.open {
  display: flex;
}

.request-panel-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 50px rgba(15, 18, 28, 0.25);
  width: min(520px, 92vw);
}

.request-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.request-panel-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.request-panel-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.request-close {
  border: 1px solid #e4e7f1;
  background: #fff;
  color: #2a2f3c;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.request-form input {
  border: 1px solid #e2e6f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8f9fc;
}

.request-submit {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #2f3ab2 0%, #1d2170 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.request-alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.request-alert.success {
  background: #e9f7ef;
  color: #1c6b47;
  border: 1px solid #b9e7cf;
}

.request-alert.error {
  background: #ffecef;
  color: #b42318;
  border: 1px solid #f3b4bb;
}

/* ── Success Toast ── */
.success-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #e9f7ef;
  color: #15803d;
  border: 1.5px solid #86efac;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.success-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.request-list {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.request-name {
  font-weight: 700;
  font-size: 14px;
}

.request-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
}

.list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feedback-item {
  background: #f7f8fb;
  padding: 12px 14px;
  border-radius: 12px;
}

.feedback-name {
  font-weight: 700;
  font-size: 14px;
}

.feedback-message {
  margin: 8px 0;
  color: #444c5e;
  font-size: 13px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: #ffffff;
}

body.profile-page {
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 55%, #1d2170 100%);
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.profile-shell {
  max-width: 1100px;
}

.auth-card {
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  border-radius: 26px;
  padding: 38px 34px;
  box-shadow: 0 24px 50px rgba(47, 58, 178, 0.3);
  text-align: center;
  color: #fff;
}

.auth-header h1 {
  margin: 0;
  font-family: 'League Spartan', sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.auth-header p {
  margin: 6px 0 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.input-group input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #000;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #000 !important;
  background-color: transparent !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-group input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.input-group select {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #000;
  appearance: none;
}

.input-group select option {
  color: #000;
  background: #fff;
}

.input-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.input-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.password-toggle {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}

.auth-primary {
  margin-top: 6px;
  background: #fff;
  border: none;
  color: #2f3ab2;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, box-shadow 0.2s;
}

.auth-primary:hover {
  background: #eef1ff;
  box-shadow: 0 6px 16px rgba(47, 58, 178, 0.25);
}

.auth-switch {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-switch a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.auth-error {
  background: #ffecef;
  color: #b42318;
  border: 1px solid #f3b4bb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-note {
  background: #eef2ff;
  color: #353b60;
  border: 1px solid #ccd6ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.profile-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: #fff;
}

.profile-page-header h1 {
  margin: 0;
  font-family: 'League Spartan', sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.profile-page-header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.profile-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-back {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-back:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.profile-back:active {
  transform: translateY(0);
}

.profile-logout {
  margin: 0;
}

.profile-logout-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #c23a6f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.profile-logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  filter: brightness(0.95);
}

.profile-logout-btn:active {
  transform: translateY(0);
}

.profile-section {
  margin-top: 28px;
  display: none;
}

.profile-section.open {
  display: block;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.security-card {
  background: #fffaf5;
}

.profile-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.profile-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef1ff;
  color: #3c35b8;
  display: grid;
  place-items: center;
}

.profile-title-icon.lock {
  background: #e8f7f0;
  color: #1f9d68;
}

.profile-title-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ecefff;
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.info-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.info-value {
  font-weight: 600;
  font-size: 14px;
}

.profile-divider {
  height: 1px;
  background: #eef1f6;
  margin: 18px 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.profile-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.profile-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e6f0;
  background: #f8f9fc;
  font-size: 14px;
}

.profile-field input:-webkit-autofill,
.profile-field input:-webkit-autofill:hover,
.profile-field input:-webkit-autofill:focus,
.profile-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f8f9fc inset !important;
  box-shadow: 0 0 0 1000px #f8f9fc inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: #f8f9fc !important;
  transition: background-color 5000s ease-in-out 0s;
}

.profile-btn {
  align-self: flex-end;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(47, 58, 178, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.profile-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.profile-btn:active {
  transform: translateY(0);
}

.profile-btn.name {
  background: linear-gradient(135deg, #4d47c2 0%, #2f3ab2 100%);
}

.profile-btn.name:hover {
  box-shadow: 0 14px 28px rgba(47, 58, 178, 0.35);
}

.profile-btn.password {
  background: linear-gradient(135deg, #1f9d68 0%, #1c8b5c 100%);
  box-shadow: 0 12px 24px rgba(31, 157, 104, 0.25);
  width: 100%;
  align-self: stretch;
}

.profile-btn.password:hover {
  box-shadow: 0 14px 28px rgba(31, 157, 104, 0.4);
}

.profile-alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.profile-alert.success {
  background: #e9f7ef;
  color: #1c6b47;
  border: 1px solid #b9e7cf;
}

.profile-alert.error {
  background: #ffecef;
  color: #b42318;
  border: 1px solid #f3b4bb;
}

.profile-note {
  background: #fff4e8;
  color: #8c4a18;
  border: 1px solid #f2c59f;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  :root {
    --header-height: 140px;
  }

  .top-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .contact {
    flex-wrap: wrap;
  }

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

  .profile-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-btn {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 200px;
  }

  .content {
    padding: 24px 16px 50px;
  }

  .menu-logout .logout-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .welcome-actions {
    width: 100%;
    justify-content: space-between;
  }

}

/* ── Notification Bell ── */
.notif-wrapper {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
}

.notif-bell {
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  border: none;
  cursor: pointer;
  padding: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.4);
}

.notif-bell:hover {
  background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.notif-bell svg {
  fill: currentColor;
  width: 28px;
  height: 28px;
}

.notif-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 400px;
  background: #fff;
  border: 1px solid #e2e6f0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 18, 28, 0.12);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eef1f6;
}

.notif-dropdown-title {
  font-weight: 700;
  font-size: 15px;
  color: #1d2238;
}

.notif-mark-read {
  background: none;
  border: none;
  color: #2f6bff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.notif-mark-read:hover {
  background: #eef1f6;
}

.notif-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-clear-all {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.notif-clear-all:hover {
  background: #fdecea;
  color: #c0392b;
}

.notif-dropdown-body {
  overflow-y: auto;
  max-height: 340px;
  padding: 4px 0;
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: #8a91ab;
  font-size: 13px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.notif-item.unread {
  background: #f4f7ff;
  border-left-color: #2f6bff;
}

.notif-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-icon.accepted {
  background: #e9f7ef;
  color: #1c6b47;
}

.notif-item-icon.accepted svg {
  fill: #1c6b47;
}

.notif-item-icon.rejected {
  background: #ffecef;
  color: #b42318;
}

.notif-item-icon.rejected svg {
  fill: #b42318;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-text {
  font-size: 13px;
  color: #3a3f57;
  line-height: 1.5;
}

.notif-item-text strong {
  font-weight: 600;
  color: #1d2238;
}

.notif-decision.accepted {
  color: #1c6b47;
  font-weight: 700;
}

.notif-decision.rejected {
  color: #b42318;
  font-weight: 700;
}

.notif-item-date {
  font-size: 11px;
  color: #8a91ab;
  margin-top: 3px;
}

/* ── Edit Button ── */
.edit-btn {
  background: none !important;
  color: #2f6bff;
  border: 1.5px solid #2f6bff;
  border-radius: 10px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
  letter-spacing: 0.01em;
}

.edit-btn::before {
  content: "\270E";
  font-size: 13px;
  line-height: 1;
}

.edit-btn:hover {
  background: #2f6bff !important;
  color: #fff;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.25);
  transform: translateY(-1px);
}

.edit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.edit-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.edit-contact-form .event-form-field {
  width: 100%;
}

.edit-contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ── Accept / Reject Buttons ── */
.request-row {
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.request-row-info {
  flex: 1;
  min-width: 0;
}

.request-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  border: none;
  border-radius: 10px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
  letter-spacing: 0.01em;
}

.accept-btn {
  background: none;
  color: #1c6b47;
  border: 1.5px solid #1c6b47;
}

.accept-btn:hover {
  background: #1c6b47;
  color: #fff;
  box-shadow: 0 2px 10px rgba(28, 107, 71, 0.25);
  transform: translateY(-1px);
}

.accept-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.reject-btn {
  background: none;
  color: #d72638;
  border: 1.5px solid #d72638;
}

.reject-btn:hover {
  background: #d72638;
  color: #fff;
  box-shadow: 0 2px 10px rgba(215, 38, 56, 0.25);
  transform: translateY(-1px);
}

.reject-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge.accepted {
  background: #e9f7ef;
  color: #1c6b47;
  border: 1px solid #b9e7cf;
}

.status-badge.rejected {
  background: #ffecef;
  color: #b42318;
  border: 1px solid #f3b4bb;
}

@media (max-width: 600px) {
  .notif-dropdown {
    width: 290px;
    right: -40px;
  }

  .request-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .request-row-actions {
    align-self: flex-end;
  }
}

/* ══════════════════════════════════════════
   Success Stories Page
   ══════════════════════════════════════════ */

.stories-hero {
  background: linear-gradient(120deg, #4361ee 0%, #2f3ab2 45%, #1e2980 100%);
  color: #fff;
  padding: 28px 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 14px 30px rgba(47, 58, 178, 0.25);
  position: relative;
  overflow: hidden;
}

.stories-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.stories-hero-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stories-hero-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.stories-hero-subtitle {
  margin: 6px 0 0;
  opacity: 0.88;
  font-size: 14px;
}

/* ── Stories Grid ── */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.story-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(31, 36, 48, 0.12);
}

.story-card-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'League Spartan', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(47, 58, 178, 0.3);
}

.story-card-avatar[dir="rtl"] {
  align-self: flex-start;
}

.contact-view[dir="rtl"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story-card-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.story-card-summary {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.story-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #4361ee;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  transition: color 0.2s ease, gap 0.2s ease;
}

.story-read-more:hover {
  color: #2f3ab2;
  gap: 10px;
}

/* ── Full Story View ── */
.story-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
  transition: gap 0.2s;
}

.story-back-link:hover {
  gap: 10px;
}

.story-full-view {
  background: var(--surface);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

[dir="rtl"] .story-full-view {
  text-align: right;
}

.story-full-view[dir="rtl"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story-full-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'League Spartan', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(47, 58, 178, 0.3);
}

.story-full-avatar[dir="rtl"] {
  margin: 0 auto 16px 0;
}

.story-full-name {
  font-family: 'League Spartan', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
}

.story-full-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.story-full-body {
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  color: #3a3f57;
}

@media (max-width: 600px) {
  .stories-hero {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }

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

  .story-full-view {
    padding: 24px 18px;
  }
}

/* ══════════════════════════════════════════
   Dashboard Posts
   ══════════════════════════════════════════ */

.post-create-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.post-create-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.post-create-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'League Spartan', sans-serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(47, 58, 178, 0.3);
  flex-shrink: 0;
}

.post-create-name { font-weight: 700; font-size: 15px; }
.post-create-hint { color: var(--muted); font-size: 13px; }

.post-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-title-input {
  border: 1px solid #e2e6f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  background: #f8f9fc;
  font-family: inherit;
  transition: border-color 0.2s;
}
.post-title-input:focus { outline: none; border-color: #4361ee; background: #fff; }

.post-content-input {
  border: 1px solid #e2e6f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f8f9fc;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}
.post-content-input:focus { outline: none; border-color: #4361ee; background: #fff; }

.post-create-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-image-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #eef1ff;
  color: #4361ee;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.post-image-label:hover { background: #dde3ff; transform: translateY(-1px); }
.post-image-label svg { flex-shrink: 0; }
.post-image-input { display: none; }

.post-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 58, 178, 0.35); }

.post-image-preview {
  position: relative;
  display: inline-block;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e6f0;
}
.post-image-preview img { display: block; width: 100%; height: auto; border-radius: 10px; }

.post-remove-preview {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.post-remove-preview:hover { background: rgba(215,38,56,0.9); }

/* Feed */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.post-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 24px 48px rgba(31,36,48,0.1); }

.post-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-card-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #4361ee 0%, #2f3ab2 100%);
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'League Spartan', sans-serif;
  font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(47,58,178,0.25);
  flex-shrink: 0;
}

.post-card-author { font-weight: 700; font-size: 15px; }
.post-card-date { font-size: 12px; color: var(--muted); }
.post-edited-badge { color: #8b5cf6; font-style: italic; }

.post-card-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 20px; font-weight: 700;
  margin: 0 0 8px; color: #1a1f40;
}

.post-card-content {
  font-size: 14px; line-height: 1.7;
  color: #3a3f57; margin-bottom: 14px;
  word-wrap: break-word;
}

.post-card-image {
  border-radius: 14px; overflow: hidden;
  margin-bottom: 14px; border: 1px solid #eef1f6; max-width: 70%;
}
.post-card-image img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.post-card-image[dir="rtl"] { margin-left: auto; margin-right: 0; }

.post-card-actions {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid #eef1f6;
}
.post-card-actions form {
  display: inline-flex; margin: 0; padding: 0;
}
.post-card-actions .action-btn {
  margin-top: 0;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
}
.post-card-actions .edit-btn {
  background: none !important;
  color: #2f6bff;
  border: 1.5px solid #2f6bff;
}
.post-card-actions .edit-btn:hover {
  background: #2f6bff !important;
  color: #fff;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.25);
  transform: translateY(-1px);
}
.post-card-actions .reject-btn {
  background: none;
  color: #d72638;
  border: 1.5px solid #d72638;
}
.post-card-actions .reject-btn:hover {
  background: #d72638;
  color: #fff;
  box-shadow: 0 2px 10px rgba(215, 38, 56, 0.25);
  transform: translateY(-1px);
}

.post-edit-form { padding-top: 4px; }

.post-edit-current-image {
  border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e6f0; max-width: 300px;
}
.post-edit-current-image img { display: block; width: 100%; height: auto; border-radius: 10px; }

.post-remove-image-check {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; font-size: 13px; color: #d72638; cursor: pointer;
}
.post-remove-image-check input[type="checkbox"] { accent-color: #d72638; }

@media (max-width: 600px) {
  .post-create-footer { flex-direction: column; align-items: stretch; }
  .post-submit-btn, .post-image-label { justify-content: center; }
  .post-card-image img { max-height: 300px; }
}
