/* ══════════════════════════════════════════════════════════
   AlumniConnect — MES Ponnani College
   assets/css/style.css  |  Mobile-first Responsive Styles
   ══════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Playfair+Display:wght@700&display=swap');

/* ── CSS Variables ────────────────────────────────────── */
:root {
  /* ── Modern Light Social Theme ────────────────────── */
  --primary:       #1a1a1a;   /* near-black — buttons, active states */
  --primary-dark:  #111111;   /* deeper black */
  --primary-light: #444444;   /* dark grey */
  --primary-pale:  #f0f0f5;   /* light grey tint */
  --primary-xpale: #f8f8fb;   /* near white */
  --accent:        #ff6b8a;   /* pink-coral accent — likes, badges */
  --accent-light:  #fff0f3;   /* pale pink */
  --coral:         #ff6b8a;   /* same pink for alerts */
  --coral-light:   #fff0f3;
  --teal:          #22c55e;   /* green for success/online */
  --teal-light:    #dcfce7;
  --sky:           #6366f1;   /* indigo for info */
  --sky-light:     #eef2ff;
  --purple:        #8b5cf6;
  --purple-light:  #ede9fe;
  --bg:            #eeeef3;   /* main page background — light blue-grey */
  --surface:       #ffffff;   /* white cards */
  --surface-alt:   #fff8ec;   /* warm cream for alternate posts */
  --border:        #e8e8ed;   /* very light border */
  --border-s:      #d0d0d8;
  --text-dark:     #1a1a2e;   /* deep navy-black */
  --text-mid:      #333344;
  --text-muted:    #666677;   /* medium grey */
  --text-hint:     #999aaa;   /* light grey */
  --sidebar-w:     240px;
  --header-h:      58px;
  --radius:        14px;
  --radius-sm:     6px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 4px rgba(30,38,84,.08);
  --shadow-md:     0 4px 20px rgba(30,38,84,.10);
  --shadow-lg:     0 8px 40px rgba(30,38,84,.12);
  --font-body:     'Roboto', system-ui, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;
  --transition:    all .15s ease;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16.5px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font-body); }

/* ════════════════════════════════════════════════════════
   HEADER / TOP NAV
   ════════════════════════════════════════════════════════ */
.ac-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.ac-header__logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-dark);
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
}

.ac-header__tagline {
  font-size: 11px;
  color: var(--text-hint);
  white-space: nowrap;
  display: none;
}

.ac-header__spacer { flex: 1; }

/* Header right — notification + user */
.ac-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-header__icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-pale);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.ac-header__icon-btn:hover { background: var(--border); color: var(--text-dark); }

.ac-header__badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--coral);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 4px;
  min-width: 16px;
  text-align: center;
  line-height: 16px;
}

/* Hamburger — mobile only */
.ac-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.ac-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.ac-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ac-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ac-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════
   LAYOUT SHELL
   ════════════════════════════════════════════════════════ */
.ac-shell {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}

/* ════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════ */
.ac-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  /* Desktop: sticky */
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  transition: transform .25s ease;
  z-index: 200;
}

/* Mobile: sidebar is off-canvas, slides in */
@media (max-width: 767px) {
  .ac-sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100vh - var(--header-h));
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .ac-sidebar.is-open {
    transform: translateX(0);
  }
  /* Overlay behind sidebar on mobile */
  .ac-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0,0,0,.35);
    z-index: 199;
  }
  .ac-overlay.is-open { display: block; }
}

/* Sidebar: brand */
.ac-sidebar__brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.ac-sidebar__appname {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.1;
}
.ac-sidebar__college {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sidebar: user info */
.ac-sidebar__user {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-sidebar__uname { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.ac-sidebar__batch { font-size: 10px; color: var(--text-hint); margin-top: 1px; }

/* Sidebar: nav */
.ac-sidebar__nav { flex: 1; padding: 10px 8px; }

.ac-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.ac-nav-item:hover {
  background: var(--primary-pale);
  color: var(--text-dark);
}
.ac-nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}
.ac-nav-item__icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.ac-nav-item__label { flex: 1; }

.ac-nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar: footer links */
.ac-sidebar__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.ac-sidebar__footer a {
  display: block;
  font-size: 11px;
  color: var(--text-hint);
  margin-bottom: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.ac-sidebar__footer a:hover { color: var(--text-dark); }

/* ════════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════════ */
.ac-main {
  flex: 1;
  overflow-x: hidden;
  min-width: 0;
}

/* Registration / Login pages — wrapper fills ac-shell and centres content */
.ac-shell > div[style*="align-items:center"],
.ac-shell > div[style*="align-items: center"] {
  flex: 1;
  width: 100%;
}


/* ════════════════════════════════════════════════════════
   AVATAR COMPONENT
   ════════════════════════════════════════════════════════ */
.ac-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: var(--primary-dark);
  flex-shrink: 0;
  overflow: hidden;
  letter-spacing: .02em;
}
.ac-avatar--sm  { width: 32px;  height: 32px;  font-size: 11px; }
.ac-avatar--md  { width: 42px;  height: 42px;  font-size: 14px; }
.ac-avatar--lg  { width: 64px;  height: 64px;  font-size: 20px; }
.ac-avatar--xl  { width: 80px;  height: 80px;  font-size: 24px; }
.ac-avatar--sq  { border-radius: 8px; }
.ac-avatar--coral   { background: var(--coral); }
.ac-avatar--accent  { background: var(--accent); color: var(--text-dark); }
.ac-avatar--teal    { background: var(--teal); }
.ac-avatar--sky     { background: var(--sky); }
.ac-avatar--purple  { background: var(--purple); }

/* ════════════════════════════════════════════════════════
   CARD COMPONENT
   ════════════════════════════════════════════════════════ */
.ac-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Profile hero card must show avatar overflowing cover */
.profile-hero { overflow: visible !important; }
.profile-hero .profile-cover { overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ac-card--elevated { box-shadow: var(--shadow-md); }
.ac-card__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ac-card__body { padding: 16px; }
.ac-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ════════════════════════════════════════════════════════
   BUTTON COMPONENT
   ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  border-radius: 20px;
}
.btn--primary:hover { background: #333; border-color: #333; }

.btn--secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-s);
}
.btn--secondary:hover { background: var(--primary-xpale); }

.btn--accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn--accent:hover { background: #d97706; }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--ghost:hover { background: var(--primary-pale); }

.btn--danger {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral-light);
}
.btn--danger:hover { background: var(--coral-light); }

.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn--lg { padding: 12px 28px; font-size: 15px; }
.btn--full { width: 100%; }

/* ════════════════════════════════════════════════════════
   FORM COMPONENTS
   ════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--surface-alt);
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(102,117,174,.12);
}
.form-control::placeholder { color: var(--text-hint); }
.form-control.is-invalid { border-color: var(--coral); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(240,88,120,.12); }

/* Select arrow */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234b5a6e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint { font-size: 11px; color: var(--text-hint); margin-top: 4px; }
.form-error { font-size: 11px; color: var(--coral); margin-top: 4px; font-weight: 600; }

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

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ════════════════════════════════════════════════════════
   PILL / BADGE COMPONENT
   ════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pill--primary { background: var(--primary-pale);  color: var(--primary-dark); }
.pill--accent  { background: var(--accent-light);  color: #b45309; }
.pill--coral   { background: var(--coral-light);   color: var(--coral); }
.pill--teal    { background: var(--teal-light);    color: var(--teal); }
.pill--sky     { background: var(--sky-light);     color: #0369a1; }
.pill--purple  { background: var(--purple-light);  color: var(--purple); }

/* ════════════════════════════════════════════════════════
   FLASH MESSAGE
   ════════════════════════════════════════════════════════ */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid transparent;
}
.flash--success { background: #d1fae5; border-color: #34d399; color: #065f46; }
.flash--error   { background: var(--coral-light); border-color: var(--coral); color: #9b1c3c; }
.flash--info    { background: var(--primary-pale); border-color: var(--primary); color: var(--primary-dark); }
.flash--warning { background: var(--accent-light); border-color: var(--accent); color: #92400e; }

/* ════════════════════════════════════════════════════════
   AUTH PAGES (Register / Login)
   ════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Registration */
.reg-wrap { width: 100%; max-width: 640px; margin: 0 auto; }

.reg-intro { text-align: center; margin-bottom: 20px; }
.reg-intro__title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.reg-intro__sub { font-size: 13px; color: var(--primary); font-weight: 600; }

/* Step dots */
.step-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.step-dot {
  height: 6px;
  border-radius: 3px;
  flex: 1;
  max-width: 120px;
  background: var(--border);
  transition: background .25s;
}
.step-dot.active  { background: var(--accent); }
.step-dot.done    { background: var(--primary-light); }

/* Reg card */
.reg-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 36px 44px;
}
@media (max-width: 640px) {
  .reg-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .reg-card { padding: 20px 16px; }
}

.step-panel { display: none; }
.step-panel.active { display: block; }

.step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.oauth-row { display: flex; gap: 10px; margin-bottom: 16px; }
.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid var(--border-s);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.oauth-btn:hover { background: var(--primary-pale); }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-hint);
  font-size: 11px;
}
.divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }

/* Confirmation screen */
.reg-confirm__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.reg-confirm__next {
  background: var(--primary-xpale);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 2;
}

/* Login */
.login-card {
  display: flex;
  width: 100%;
  max-width: 820px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-form-side { flex: 1; padding: 40px; }
.login-stat-side {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f3460 100%);
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 640px) {
  .login-card { flex-direction: column; }
  .login-stat-side { width: 100%; padding: 24px; }
  .login-form-side { padding: 28px 20px; }
}

.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.login-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 22px; }

.stat-block {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.1);
}
.stat-block__value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
}
.stat-block__label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ════════════════════════════════════════════════════════
   NEWS FEED
   ════════════════════════════════════════════════════════ */
.feed-layout { display: flex; gap: 0; }
.feed-main   { flex: 1; padding: 16px; min-width: 0; }
.feed-aside  {
  width: 260px;
  flex-shrink: 0;
  padding: 16px 12px 16px 0;
}
@media (max-width: 960px) { .feed-aside { display: none; } }

/* Compose */
.compose-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.compose-row  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.compose-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-alt);
  outline: none;
}
.compose-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  flex-wrap: wrap;
}
.compose-action {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
}
.compose-action:hover { background: var(--primary-pale); }

/* Post card */
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.post-header { padding: 14px 14px 0; display: flex; align-items: center; gap: 10px; }
.post-name   { font-size: 15px; font-weight: 500; }
.post-meta   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.post-body   { padding: 10px 14px 14px; font-size: 14px; line-height: 1.7; }
.post-img    { width: 100%; max-height: 280px; object-fit: cover; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-actions {
  display: flex;
  gap: 2px;
  padding: 6px 10px;
  border-top: 1px solid var(--border);
}
.post-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.post-action-btn:hover { background: var(--primary-pale); }
.post-action-btn.liked { color: var(--coral); }

/* Right sidebar widgets */
.sw { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.sw-title { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.sw-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sw-row:last-child { border-bottom: none; padding-bottom: 0; }
.sw-name { font-size: 14px; font-weight: 500; }
.sw-sub  { font-size: 12px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════════════════════════ */
.profile-wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.profile-hero { position: relative; }
.profile-wrap .ac-card:first-child { overflow: visible; }

.profile-cover {
  height: 140px;
  background: linear-gradient(120deg, #1a1a2e 0%, #16213e 45%, #0f3460 80%, #533483 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: static;   /* avatar now positions relative to .profile-hero */
  overflow: hidden;
}
.profile-cover__deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245,162,27,.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,.2) 0%, transparent 35%);
}
.profile-cover__avatar {
  position: absolute;
  top: 88px;          /* cover=140px, avatar=104px: centre sits at 140-52=88 */
  left: 24px;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 5px solid white;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  background: var(--primary-pale);
  z-index: 10;
}

.profile-info { padding: 76px 20px 16px; }
.profile-name { font-family: var(--font-display); font-size: 24px; }
.profile-role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.profile-bio  { font-size: 13px; line-height: 1.7; margin-top: 10px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.profile-stats { display: flex; border-top: 1px solid var(--border); overflow-x: auto; }
.profile-stat { flex: 1; text-align: center; padding: 12px 8px; border-right: 1px solid var(--border); min-width: 70px; }
.profile-stat:last-child { border-right: none; }
.profile-stat__value { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.profile-stat__label { font-size: 11px; color: var(--text-muted); }

/* Section card */
.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.section-card__title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }

.tl-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; padding-bottom: 0; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 4px; flex-shrink: 0; }
.tl-dot--muted { background: var(--border-s); }
.tl-title { font-size: 14px; font-weight: 500; }
.tl-sub   { font-size: 13px; color: var(--text-muted); }
.tl-year  { font-size: 11px; color: var(--text-hint); margin-top: 2px; }

/* Edit profile panel */
.edit-panel {
  display: none;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}
.edit-panel.is-open { display: block; }
.edit-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.edit-panel__title { font-family: var(--font-display); font-size: 17px; }
.edit-panel__close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-hint);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* Photo upload */
.photo-upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.photo-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--border-s);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  border: 1.5px solid var(--border-s);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.photo-label:hover { background: var(--primary-pale); border-color: var(--primary); }
.photo-optional { font-size: 11px; color: var(--text-hint); margin-top: 5px; }

/* ════════════════════════════════════════════════════════
   DIRECTORY
   ════════════════════════════════════════════════════════ */
.dir-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px; }
.dir-header h1 { font-family: var(--font-display); font-size: 20px; }
.dir-header p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.dir-filters { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dir-filter-input { flex: 1; min-width: 180px; }

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
}
@media (max-width: 480px) {
  .alumni-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.alumni-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}
.alumni-card:hover { border-color: var(--border-s); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.alumni-card__avatar { margin: 0 auto 10px; }
.alumni-card__name   { font-size: 14px; font-weight: 700; }
.alumni-card__role   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.alumni-card__batch  { font-size: 11px; color: var(--text-hint); margin-top: 2px; }
.alumni-card__tags   { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.alumni-card__btn    { margin-top: 10px; width: 100%; }

/* ════════════════════════════════════════════════════════
   MESSAGES
   ════════════════════════════════════════════════════════ */
.msg-layout {
  display: flex;
  height: calc(100vh - var(--header-h));
}
.contacts-panel {
  width: 260px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .contacts-panel { width: 100%; position: absolute; left: 0; top: 0; z-index: 10; }
  .contacts-panel.is-hidden { display: none; }
}
.contacts-header { padding: 14px; border-bottom: 1px solid var(--border); }
.contacts-header h2 { font-size: 15px; font-weight: 700; }
.contact-search { margin-top: 8px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.contact-item:hover { background: var(--bg); }
.contact-item.active { background: var(--primary-pale); }
.contact-item__info { flex: 1; min-width: 0; }
.contact-item__name { font-size: 13px; font-weight: 700; }
.contact-item__last { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-item__time { font-size: 10px; color: var(--text-hint); flex-shrink: 0; }

.av-online-wrap { position: relative; }
.online-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  position: absolute;
  bottom: 0; right: 0;
  border: 2px solid white;
}

.chat-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}
.chat-name   { font-size: 14px; font-weight: 700; }
.chat-status { font-size: 11px; color: #22c55e; font-weight: 600; }

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-bubble { max-width: 70%; }
.msg-bubble__text {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.msg-bubble__time { font-size: 10px; color: var(--text-hint); margin-top: 3px; }
.msg-out { align-self: flex-end; }
.msg-out .msg-bubble__text { background: var(--primary); color: white; border-bottom-right-radius: 3px; }
.msg-out .msg-bubble__time { text-align: right; }
.msg-in .msg-bubble__text { background: white; border: 1px solid var(--border); border-bottom-left-radius: 3px; }

.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: white;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }

/* ════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ════════════════════════════════════════════════════════ */
.admin-header {
  background: linear-gradient(100deg, #1a1a2e 0%, #0f3460 100%);
  padding: 20px 16px;
}
.admin-header h1 { font-family: var(--font-display); font-size: 22px; color: white; }
.admin-header p  { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 3px; }
.admin-body { padding: 16px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 767px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .metrics-grid { grid-template-columns: 1fr 1fr; } }

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.metric-card__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.metric-card__value { font-family: var(--font-display); font-size: 32px; color: var(--primary-dark); margin-top: 4px; }
.metric-card__delta { font-size: 11px; font-weight: 600; margin-top: 4px; }
.delta--up   { color: #059669; }
.delta--warn { color: var(--coral); }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 767px) { .admin-grid { grid-template-columns: 1fr; } }

.pending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.pending-item:last-child { border-bottom: none; }
.pending-item__info { flex: 1; }
.pending-item__name { font-size: 13px; font-weight: 700; }
.pending-item__meta { font-size: 11px; color: var(--text-muted); }
.pending-item__btns { display: flex; gap: 6px; flex-shrink: 0; }

.btn--approve { background: #d1fae5; color: #065f46; border-color: transparent; font-size: 11px; padding: 5px 10px; }
.btn--reject  { background: var(--coral-light); color: var(--coral); border-color: transparent; font-size: 11px; padding: 5px 10px; }

.eng-item { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.eng-item:last-child { border-bottom: none; }
.eng-label { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 5px; }
.prog-bar  { height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 4px; }
.prog--primary { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.prog--accent  { background: linear-gradient(90deg, var(--accent), #f5c842); }
.prog--sky     { background: linear-gradient(90deg, var(--sky), #38bdf8); }
.prog--coral   { background: linear-gradient(90deg, var(--coral), #f97316); }

/* ════════════════════════════════════════════════════════
   EVENTS
   ════════════════════════════════════════════════════════ */
.featured-event {
  background: linear-gradient(120deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
  margin: 16px 20px;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.featured-event__deco1 { position: absolute; right: -24px; top: -24px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06); }
.featured-event__deco2 { position: absolute; right: 20px;  top: 20px;  width: 90px;  height: 90px;  border-radius: 50%; background: rgba(245,162,27,.1);  }
.featured-event__badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  letter-spacing: .05em;
}
.featured-event__title { font-family: var(--font-display); font-size: 26px; margin-bottom: 10px; }
.featured-event__desc  { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 16px; }
.featured-event__meta  { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.featured-event__meta-item { font-size: 12px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; }
.featured-event__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--event-primary { background: white; color: #3d4a8a; border: none; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; cursor: pointer; }
.btn--event-ghost   { background: rgba(255,255,255,.15); color: white; border: 1.5px solid rgba(255,255,255,.3); padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.event-card__date { background: var(--bg); padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.event-card__month { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.event-card__day   { font-size: 22px; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.event-card__body  { padding: 12px; }
.event-card__title { font-size: 15px; font-weight: 500; }
.event-card__loc   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.event-card__footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.event-card__count  { font-size: 11px; color: var(--text-hint); }
.rsvp-btn { font-size: 12px; font-weight: 700; background: var(--primary-pale); color: var(--primary-dark); border: none; padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.rsvp-btn--confirmed { background: var(--primary); color: white; }

/* ════════════════════════════════════════════════════════
   HASHTAG / MENTION
   ════════════════════════════════════════════════════════ */
.hashtag { color: var(--primary); font-weight: 600; }
.mention  { color: var(--primary-dark); font-weight: 600; }

/* ════════════════════════════════════════════════════════
   GROUPS
   ════════════════════════════════════════════════════════ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 20px;
}
.group-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--transition); }
.group-card:hover { border-color: var(--border-s); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.group-card__banner { height: 60px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.group-card__body   { padding: 12px; }
.group-card__name   { font-size: 14px; font-weight: 700; }
.group-card__meta   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.group-card__footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.group-card__count  { font-size: 11px; color: var(--text-hint); }

/* ════════════════════════════════════════════════════════
   TAB BAR
   ════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--primary-pale);
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
  overflow-x: auto;
}
.tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn.active { background: white; color: var(--text-dark); box-shadow: var(--shadow-sm); }

/* ════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-muted  { color: var(--text-muted); }
.text-hint   { color: var(--text-hint); }
.text-center { text-align: center; }
.font-bold   { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.w-full { width: 100%; }

/* ════════════════════════════════════════════════════════
   DESKTOP BREAKPOINT TWEAKS
   ════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .ac-header__tagline { display: block; }
  .ac-hamburger { display: none; }
  .ac-overlay   { display: none !important; }
}

/* ════════════════════════════════════════════════════════
   PAGE FOOTER
   ════════════════════════════════════════════════════════ */
footer {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  font-size: 11px;
  color: var(--text-hint);
  border-top: 2px solid #8a97c8;             /* strong visible separator */
  background: transparent;
  letter-spacing: .02em;
}

/* ════════════════════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-s); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
