@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 16px 0;
}

.site-nav:not(.scrolled) {
  background: transparent;
}

.site-nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 56px;
  width: auto;
  transition: height 0.3s;
}

.site-nav.scrolled .nav-logo img {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  transition: color 0.2s;
  text-decoration: none;
}

/* Transparent nav - white links */
.site-nav:not(.scrolled) .nav-links a {
  color: var(--white);
}
.site-nav:not(.scrolled) .nav-links a:hover,
.site-nav:not(.scrolled) .nav-links a.active {
  color: var(--teal);
}

/* Scrolled nav - dark links */
.site-nav.scrolled .nav-links a {
  color: var(--dark);
}
.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active {
  color: var(--teal);
}

.nav-login-btn {
  font-family: var(--font-heading) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px !important;
  border: 2px solid var(--teal);
  border-radius: 2px;
  color: var(--teal) !important;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-login-btn:hover {
  background: var(--teal) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.site-nav.scrolled .nav-hamburger span {
  background: var(--dark);
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-caret { font-size: 0.7rem; opacity: 0.7; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 280px;
  padding: 12px 0;
  z-index: 100;
  border-top: 3px solid var(--teal);
}
.nav-dropdown-county { padding: 4px 0; }
.nav-dropdown-county-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  padding: 6px 18px 4px;
}
.nav-dropdown-item {
  display: block;
  padding: 6px 18px;
  font-size: 0.88rem;
  color: var(--dark) !important;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-dropdown-item:hover {
  background: var(--off-white);
  color: var(--teal) !important;
}
.nav-dropdown-footer {
  border-top: 1px solid var(--light-grey);
  margin-top: 8px;
  padding: 10px 18px 0;
}
.nav-dropdown-footer a {
  font-size: 0.82rem;
  color: var(--teal) !important;
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav-dropdown { position: static; box-shadow: none; border: none; padding: 0; border-radius: 0; }
  .nav-dropdown-county-label { color: rgba(255,255,255,0.6); }
  .nav-dropdown-item { color: var(--white) !important; }
  .nav-dropdown-footer { border-top-color: rgba(255,255,255,0.2); }
  .nav-dropdown-footer a { color: var(--teal) !important; }
}

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.1rem !important;
    color: var(--white) !important;
    padding: 12px 24px !important;
  }

  .nav-login-btn {
    margin-top: 16px;
    border-color: var(--teal) !important;
    color: var(--teal) !important;
  }
}
.site-footer {
  background: var(--teal);
  color: var(--white);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 12px;
}

.footer-col strong { color: var(--white); font-weight: 600; }

.footer-contact a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.15);
}

/* News list */
.footer-news {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-news li { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 14px; }
.footer-news li:last-child { border-bottom: none; }
.footer-news a {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  margin-bottom: 4px;
}
.footer-news span {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Events list */
.footer-events {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-events li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 14px;
}
.footer-events li:last-child { border-bottom: none; }
.footer-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  font-family: var(--font-heading);
}
.footer-event-date span {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.8;
}
.footer-event-date strong {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.footer-event-time {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 2px !important;
}
.footer-event-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0 !important;
}

.footer-view-all {
  display: inline-block;
  margin-top: 12px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
}

/* Bottom bar */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.8;
  color: var(--white);
}
.footer-bottom a {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* ── Hero ────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 20px auto;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: var(--font-heading);
  opacity: 0.95;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-or {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.8;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow.left { left: 16px; }
.hero-arrow.right { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-dot.active { background: var(--white); }

/* ── About ───────────────────────────────────────────────── */
.home-about {
  background: var(--off-white);
  padding: 72px 0;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.home-about-img img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.home-about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 8px 0 20px;
  color: var(--dark);
}

.home-about-text p {
  color: var(--mid-grey);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ── Footer content section ───────────────────────────────── */
.home-footer-content {
  background: var(--off-white);
  padding: 60px 0;
  border-top: 1px solid var(--light-grey);
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.home-cta-col h3,
.home-events-col h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.home-cta-col p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-bottom: 10px;
}
.home-cta-col a[href^="tel"],
.home-cta-col a[href^="mailto"] {
  color: var(--teal);
  font-weight: 600;
}

.team-card-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.1) 100%);
}

@media (max-width: 768px) {
  .home-about-grid,
  .home-footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 { font-size: 2.4rem; }
}
/* styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--mid-grey);
  line-height: 1;
}

.modal-header { margin-bottom: 28px; }
.modal-header h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.modal-event-info {
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
}
.modal-event-info strong { font-family: var(--font-heading); }
.modal-event-info p { font-size: 0.85rem; color: var(--mid-grey); margin-top: 4px; }

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

.field-error { color: #e53e3e; font-size: 0.78rem; margin-top: 4px; display: block; }
.form-error { color: #e53e3e; font-size: 0.85rem; margin-bottom: 16px; }

.modal-gdpr {
  font-size: 0.75rem;
  color: var(--mid-grey);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--white);
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}
.modal-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal-success h2 { color: var(--dark); margin-bottom: 12px; }
.modal-success p { color: var(--mid-grey); line-height: 1.7; }

@media (max-width: 480px) {
  .modal-box { padding: 24px; }
  .modal-form-row { grid-template-columns: 1fr; }
}
/* styles */
/* styles */
/* styles */
/* ── Login page layout ───────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
}

/* ── Brand panel (left) ──────────────────────────────────── */
.login-brand {
  width: 42%;
  background: linear-gradient(160deg, #1a2e35 0%, #0f1e24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(30, 158, 151, 0.08);
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.05);
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 340px;
  width: 100%;
}

.login-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
}

.login-logo-network { color: white; }
.login-logo-in { color: #1E9E97; }

.login-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.login-brand-divider {
  width: 48px;
  height: 3px;
  background: #1E9E97;
  border-radius: 2px;
  margin-bottom: 32px;
}

.login-brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.login-feature-icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Form panel (right) ──────────────────────────────────── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f8fafa;
}

.login-form-inner {
  max-width: 400px;
  width: 100%;
}

.login-form-header {
  margin-bottom: 36px;
}

.login-form-header h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a2e35;
  margin-bottom: 6px;
}

.login-form-header p {
  color: #888;
  font-size: 0.9rem;
}

/* ── Form fields ─────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-field input {
  padding: 13px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: white;
  color: #1a2e35;
  width: 100%;
}

.login-field input:focus {
  border-color: #1E9E97;
  box-shadow: 0 0 0 3px rgba(30, 158, 151, 0.1);
}

.login-field input.error {
  border-color: #ef4444;
}

/* ── Error ───────────────────────────────────────────────── */
.field-error {
  color: #ef4444;
  font-size: 0.78rem;
  display: block;
}

.login-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Submit button ───────────────────────────────────────── */
.login-submit {
  width: 100%;
  padding: 14px;
  background: #1E9E97;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.login-submit:hover:not(:disabled) {
  background: #167a74;
}

.login-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 2FA ─────────────────────────────────────────────────── */
.login-2fa-info {
  text-align: center;
  padding: 20px 0;
}

.login-2fa-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.login-2fa-info p {
  color: #555;
  font-size: 0.9rem;
}

.login-totp-input {
  text-align: center;
  font-size: 2rem !important;
  font-family: var(--font-heading) !important;
  letter-spacing: 8px;
  font-weight: 700;
  padding: 16px !important;
}

/* ── Footer ──────────────────────────────────────────────── */
.login-back {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-align: center;
  width: 100%;
}
.login-back:hover { color: #1E9E97; }

.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.82rem;
  color: #aaa;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .login-page { flex-direction: column; }
  .login-brand {
    width: 100%;
    padding: 32px 24px;
    min-height: auto;
  }
  .login-brand-features { display: none; }
  .login-logo { font-size: 2rem; }
  .login-form-panel { padding: 32px 24px; }
}
/* ============================================================
   NETWORKIN PORTAL - LAYOUT
   Branded with NetworkIN teal/orange palette
   ============================================================ */

.portal-layout {
  display: flex;
  height: 100vh;
  background: #f0f4f4;
  font-family: var(--font-body);
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.portal-sidebar {
  width: 230px;
  min-width: 230px;
  background: #1a2e35;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow: hidden;
}

.portal-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Logo */
.portal-sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.portal-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
}

.portal-logo-network { color: #ffffff; }
.portal-logo-in { color: #1E9E97; }

.portal-logo-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1E9E97;
  display: block;
  margin-top: 4px;
}

/* Nav */
.portal-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.portal-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}

.portal-nav-item.active {
  background: rgba(30,158,151,0.18);
  color: #1E9E97;
  border-left-color: #1E9E97;
  font-weight: 600;
}

.portal-nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* User section */
.portal-sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.portal-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1E9E97;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

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

.portal-user-info {
  flex: 1;
  min-width: 0;
}

.portal-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-user-role {
  font-size: 0.68rem;
  color: #1E9E97;
  margin-top: 2px;
  text-transform: capitalize;
}

.portal-signout {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px;
  transition: color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.portal-signout:hover { color: rgba(255,100,100,0.8); }

/* ── Main content ────────────────────────────────────────── */
.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.portal-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  -webkit-overflow-scrolling: touch;
}

/* ── Mobile header ───────────────────────────────────────── */
.portal-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1a2e35;
  border-bottom: 2px solid #1E9E97;
  flex-shrink: 0;
}

.portal-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
}

.portal-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Mobile drawer overlay ───────────────────────────────── */
.portal-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
}

.portal-drawer {
  width: 260px;
  min-width: 260px;
  background: #1a2e35 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  z-index: 501;
  overflow: hidden;
}

.portal-drawer-backdrop {
  flex: 1;
  background: rgba(0,0,0,0.55);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .portal-sidebar { display: none; }
  .portal-mobile-header { display: flex; }
  .portal-content { padding: 16px; }
}

@media (max-width: 480px) {
  .portal-content { padding: 12px; }
}

/* ── Portal UI Components ────────────────────────────────── */

/* Stats grid */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* Stat card */
.portal-stat-card {
  background: white;
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 4px solid #1E9E97;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.portal-stat-card.orange { border-left-color: #F5A623; }
.portal-stat-card.purple { border-left-color: #8b5cf6; }
.portal-stat-card.green  { border-left-color: #10b981; }
.portal-stat-card.red    { border-left-color: #ef4444; }

.portal-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-family: var(--font-heading);
}

.portal-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a2e35;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-top: 4px;
}

/* Page header */
.portal-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a2e35;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.portal-page-subtitle {
  font-size: 0.82rem;
  color: #888;
  margin-top: 2px;
}

/* Buttons */
.portal-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 9px 18px;
  border-radius: 7px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.portal-btn-primary {
  background: #1E9E97;
  color: white;
  border-color: #1E9E97;
}
.portal-btn-primary:hover {
  background: #167a74;
  border-color: #167a74;
  color: white;
}

.portal-btn-orange {
  background: #F5A623;
  color: white;
  border-color: #F5A623;
}
.portal-btn-orange:hover {
  background: #e0911a;
  border-color: #e0911a;
  color: white;
}

.portal-btn-ghost {
  background: transparent;
  color: #1E9E97;
  border-color: #1E9E97;
}
.portal-btn-ghost:hover {
  background: #1E9E97;
  color: white;
}

.portal-btn-danger {
  background: transparent;
  color: #ef4444;
  border-color: #ef4444;
}
.portal-btn-danger:hover {
  background: #ef4444;
  color: white;
}

.portal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.portal-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  overflow: hidden;
}

.portal-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2e35;
}

.portal-card-body {
  padding: 18px;
}

/* Tables */
.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table thead tr {
  background: #f8fafa;
}

.portal-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-family: var(--font-heading);
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.portal-table td {
  padding: 11px 14px;
  font-size: 0.85rem;
  color: #1a2e35;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.portal-table tbody tr:hover { background: #fafefe; }
.portal-table tbody tr:last-child td { border-bottom: none; }

/* Status badges */
.portal-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.portal-badge-green  { background: #d1fae5; color: #065f46; }
.portal-badge-red    { background: #fee2e2; color: #991b1b; }
.portal-badge-amber  { background: #fef3c7; color: #92400e; }
.portal-badge-teal   { background: #d0f0ee; color: #0f5550; }
.portal-badge-grey   { background: #f3f4f6; color: #6b7280; }
.portal-badge-orange { background: #fed7aa; color: #9a3412; }

/* Toggle */
.portal-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.portal-toggle input { opacity: 0; width: 0; height: 0; }
.portal-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.2s;
}
.portal-toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.portal-toggle input:checked + .portal-toggle-slider { background: #1E9E97; }
.portal-toggle input:checked + .portal-toggle-slider:before { transform: translateX(18px); }

/* Form fields */
.portal-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
  background: white;
  color: #1a2e35;
}
.portal-input:focus { border-color: #1E9E97; }

select.portal-input { cursor: pointer; }

.portal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #555;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.portal-form-group { margin-bottom: 14px; }

/* Quick log buttons */
.portal-quick-log-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .portal-quick-log-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.portal-quick-log-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: #f8fafa;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 6px;
}

.portal-quick-log-btn:hover {
  background: #e8f7f6;
  border-color: #1E9E97;
}

.portal-quick-log-btn span:first-child { font-size: 1.6rem; }
.portal-quick-log-btn span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: #555;
}

/* Mobile-friendly table wrapper */
.portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 10px 10px;
}



/* ============================================================
   NETWORKIN.UK - GLOBAL STYLES
   Brand: Teal #1E9E97, Orange #F5A623, Dark #1A2E35
   ============================================================ */
:root {
  --teal: #1E9E97;
  --teal-dark: #167a74;
  --teal-darker: #0f5550;
  --orange: #F5A623;
  --orange-dark: #e0911a;
  --dark: #1A2E35;
  --dark-overlay: rgba(26, 46, 53, 0.82);
  --white: #ffffff;
  --off-white: #f8f9f9;
  --light-grey: #e8ecec;
  --mid-grey: #888;
  --text: #333;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--teal);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}
/* ── Typography helpers ───────────────────────────────────── */
.text-teal { color: var(--teal); }
.text-orange { color: var(--orange); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--mid-grey);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
/* ── Teal banner strip ───────────────────────────────────── */
.banner-teal {
  background: var(--teal);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}
.banner-teal h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.5px;
}
/* ── Cards ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.team-card {
  background: var(--orange);
  color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.9;
}
.team-card-body {
  padding: 14px;
}
.team-card-body h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
}
.team-card-body p {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 4px;
}
/* ── Member card ─────────────────────────────────────────── */
.member-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.member-card-body { padding: 16px; }
.member-card-body h3 {
  font-size: 1rem;
  color: var(--dark);
}
.member-card-body p {
  font-size: 0.82rem;
  color: var(--mid-grey);
  margin-top: 4px;
}
.member-card-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.member-card-links a {
  color: var(--teal);
  font-size: 0.8rem;
}
/* ── Events ──────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 0; }
.event-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-grey);
}
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  font-family: var(--font-heading);
}
.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.event-date-badge .day {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.event-info h4 {
  font-size: 1rem;
  color: var(--dark);
  font-family: var(--font-heading);
}
.event-info p {
  font-size: 0.82rem;
  color: var(--mid-grey);
  margin-top: 2px;
}
/* ── Photo gallery strip ─────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  height: 180px;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: filter 0.3s;
}
.photo-strip img:hover { filter: saturate(1.2); }
/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-darker) 0%, var(--dark) 100%);
  opacity: 0.95;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { margin-top: 12px; opacity: 0.85; font-size: 1.1rem; }
/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  font-family: var(--font-heading);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-grey);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--teal); }
textarea.form-control { resize: vertical; min-height: 120px; }
/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); height: 240px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   NETWORKIN PORTAL - MOBILE-FIRST UTILITIES
   Applied globally across all portal pages
   ============================================================ */

/* ── Responsive table → card conversion ─────────────────── */
@media (max-width: 640px) {

  /* Hide table headers on mobile */
  .portal-table-mobile thead {
    display: none;
  }

  /* Each row becomes a card */
  .portal-table-mobile tbody tr {
    display: block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    padding: 14px 16px;
    border: none;
  }

  .portal-table-mobile tbody tr:hover {
    background: white;
  }

  /* Each cell becomes a row with label */
  .portal-table-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
    gap: 12px;
  }

  .portal-table-mobile td:last-child {
    border-bottom: none;
    padding-top: 10px;
  }

  /* Data label from data-label attribute */
  .portal-table-mobile td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    flex-shrink: 0;
    min-width: 80px;
  }
}

/* ── Bottom sheet modals on mobile ──────────────────────── */
@media (max-width: 640px) {
  .portal-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .portal-modal-box {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
    padding: 20px 20px 32px;
  }

  .portal-modal-box::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto 16px;
  }
}

/* ── Full-width forms on mobile ──────────────────────────── */
@media (max-width: 640px) {
  .portal-form-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-form-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Stacked button groups on mobile ─────────────────────── */
@media (max-width: 480px) {
  .portal-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .portal-btn-group .portal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Minimum tap targets ─────────────────────────────────── */
.portal-btn {
  min-height: 44px;
  min-width: 44px;
}

/* ── Page content padding on small screens ───────────────── */
@media (max-width: 480px) {
  .portal-content {
    padding: 10px !important;
  }
}

/* ── Stats grid ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .portal-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Card actions ────────────────────────────────────────── */
.portal-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .portal-card-actions {
    flex-direction: column;
  }
  .portal-card-actions .portal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Tab bars ────────────────────────────────────────────── */
.portal-tabs {
  display: flex;
  gap: 4px;
  background: #eef2f2;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.portal-tabs::-webkit-scrollbar { display: none; }

.portal-tab-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  min-height: 36px;
}

.portal-tab-btn.active {
  background: #1E9E97;
  color: white;
}

.portal-tab-btn:not(.active) {
  background: transparent;
  color: #666;
}

/* ── Member card list (replaces table on mobile) ─────────── */
.member-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-card-item {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1E9E97;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

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

.member-card-info {
  flex: 1;
  min-width: 0;
}

.member-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a2e35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-card-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.member-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Meeting card ────────────────────────────────────────── */
.meeting-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 10px;
}

.meeting-card-main {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.meeting-card-date {
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
}

.meeting-card-date-month {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: #1E9E97;
  font-weight: 700;
  text-transform: uppercase;
}

.meeting-card-date-day {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #1a2e35;
  line-height: 1;
}

.meeting-card-date-dow {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  color: #888;
}

.meeting-card-body {
  flex: 1;
  min-width: 0;
}

.meeting-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a2e35;
  margin-bottom: 3px;
}

.meeting-card-meta {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
}

.meeting-card-footer {
  padding: 10px 16px;
  border-top: 1px solid #f5f5f5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .meeting-card-footer .portal-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}

/* ── Activity log list ───────────────────────────────────── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f4;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.activity-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a2e35;
}

.activity-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 1px;
}

.activity-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #1E9E97;
  flex-shrink: 0;
}

/* ── Log activity modal - bottom sheet ───────────────────── */
.log-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 641px) {
  .log-modal-overlay {
    align-items: center;
  }
}

.log-modal-box {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: 16px 16px 0 0;
  padding: 8px 20px 32px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 641px) {
  .log-modal-box {
    border-radius: 12px;
    padding: 28px;
    margin: 24px;
    max-height: 80vh;
  }
}

.log-modal-handle {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 8px auto 20px;
}

@media (min-width: 641px) {
  .log-modal-handle { display: none; }
}

/* ── Invoice list (mobile cards) ─────────────────────────── */
.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-item {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-item-info {
  flex: 1;
  min-width: 0;
}

.invoice-item-type {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a2e35;
  text-transform: capitalize;
}

.invoice-item-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.invoice-item-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #1a2e35;
  flex-shrink: 0;
}

/* ── Admin form grids ────────────────────────────────────── */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

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

/* ── Section headers ─────────────────────────────────────── */
.portal-section-header {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
}

/* ── Empty states ────────────────────────────────────────── */
.portal-empty {
  text-align: center;
  padding: 48px 24px;
  color: #888;
}

.portal-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.portal-empty p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}
