/* ============================================================
   AGRI-IMPACT GROUP — IMPACT DASHBOARD
   v6 — Live Site Color Match
   Sourced from: agriimpactdashboard.net screenshot
   Palette: Mint-white bg · Pure white cards · Forest green text
            · Lime accents · Clean airy glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════
   COLOR SYSTEM — matched from screenshot
   ══════════════════════════════════════════════════════════ */
:root {
  /* ── Site background — light minty sage ── */
  --bg-root:        #e6f4ec;   /* the soft sage-mint from screenshot */
  --bg-mid:         #ddf0e6;
  --bg-deep:        #cce9d8;

  /* ── Card / tile surfaces — clean white ── */
  --card-white:     #ffffff;
  --card-frost:     rgba(255,255,255,0.96);
  --card-soft:      rgba(255,255,255,0.88);
  --card-glass:     rgba(255,255,255,0.72);

  /* ── Typography greens — from screenshot titles ── */
  --text-heading:   #155228;   /* deep forest — "Welcome to Impact Dashboard" */
  --text-title:     #1e7a3c;   /* medium forest — tile headings */
  --text-body:      #2d3d2e;   /* near-black with green cast — body */
  --text-muted:     #6b8a70;   /* muted sage — descriptions */
  --text-subtle:    #96b09a;   /* very muted — secondary info */

  /* ── Accent green — lime from brand ── */
  --accent-lime:    #7DC31E;
  --accent-lime-2:  #6aaf15;
  --accent-lime-3:  #9ADB2E;
  --accent-forest:  #1e7a3c;
  --accent-mid:     #28a452;

  /* ── Border colors ── */
  --border-card:    rgba(0,0,0,0.06);
  --border-card-2:  rgba(30,122,60,0.15);
  --border-hover:   rgba(125,195,30,0.40);
  --border-light:   rgba(255,255,255,0.80);

  /* ── Background gradient stops ── */
  --mint-100:  #e6f4ec;
  --mint-50:   #f2faf5;
  --mint-200:  #cde8d8;
  --mint-300:  #b0d9bf;

  /* ── Shadow system — light & soft ── */
  --shadow-xs:    0 1px 4px  rgba(0,0,0,0.06);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.14), 0 2px 8px rgba(30,122,60,0.12);
  --shadow-tile:  0 2px 10px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.12);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
  --shadow-lime:  0 4px 20px rgba(125,195,30,0.25);
  --shadow-green: 0 4px 20px rgba(30,122,60,0.20);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-card: 18px;   /* matches screenshot card radius */

  --header-h:  76px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

/* ══════════════════════════════════════════════════════════
   BASE BODY — light mint background
   ══════════════════════════════════════════════════════════ */
.dashboard-body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-root);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

/* Layered mint gradient mesh — soft, airy */
.dashboard-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80vw 60vh  at 0%    0%,   rgba(200,235,210,0.55) 0%, transparent 55%),
    radial-gradient(ellipse 60vw 50vh  at 100% 10%,   rgba(255,255,255,0.65) 0%, transparent 50%),
    radial-gradient(ellipse 70vw 45vh  at 50%  100%,  rgba(185,225,200,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 40vw 35vh  at 80%   55%,  rgba(240,252,245,0.60) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Very subtle noise grain for richness */
.dashboard-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════════
   BANNER SLIDER
   ══════════════════════════════════════════════════════════ */
.banner-slider {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  z-index: 1;
  border-bottom: 3px solid rgba(125,195,30,0.20);
}

/* Fade out to mint background seamlessly */
.banner-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(230,244,236,0.10) 0%,
    rgba(230,244,236,0.00) 25%,
    rgba(230,244,236,0.45) 72%,
    rgba(230,244,236,1.00) 100%
  );
  z-index: 2;
}

.banner-slider .slides {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.banner-slider .slides.active { opacity: 1; }

.banner-slider img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.94);
}

/* Banner text */
.banner-text {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(20px, 3.2vw, 40px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 0 60px rgba(30,122,60,0.25);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

/* ══════════════════════════════════════════════════════════
   HEADER — white frosted glass over mint
   ══════════════════════════════════════════════════════════ */
.top-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 9999;

  /* White frosted glass — matches the bright live site feel */
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);

  border-bottom: 1px solid rgba(30,122,60,0.12);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 20px;

  box-shadow:
    0 1px 0 rgba(255,255,255,0.90),
    0 4px 20px rgba(0,0,0,0.08);
}

/* Lime → white → lime shimmer top bar */
.top-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3.5px;
  background: linear-gradient(90deg,
    #1a5c1f, #7DC31E, #c5f04e,
    #ffffff, #c5f04e,
    #7DC31E, #1a5c1f
  );
  background-size: 300% 100%;
  animation: shimmerBar 5s linear infinite;
}

@keyframes shimmerBar {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.top-left { flex: 0 0 auto; display: flex; align-items: center; }

.top-logo {
  width: 50px; height: 50px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(30,122,60,0.20));
}

.top-center {
  flex: 1;
  text-align: center;
  display: flex; flex-direction: column;
  justify-content: center; gap: 2px;
}

.top-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px; font-weight: 800;
  /* Deep forest green — matching the screenshot title exactly */
  color: var(--text-heading);
  letter-spacing: 0.1px; margin: 0;
}

.top-subtitle {
  font-size: 12px; font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.top-search { flex: 0 0 auto; }

.header-search {
  width: 240px; height: 40px;
  padding: 0 18px 0 40px;
  border-radius: 999px;
  /* White pill search — exactly like screenshot */
  background: #ffffff;
  border: 1px solid rgba(30,122,60,0.15);
  color: var(--text-body);
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px; outline: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%231e7a3c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.header-search::placeholder { color: var(--text-subtle); }

.header-search:focus {
  width: 290px;
  border-color: rgba(125,195,30,0.45);
  box-shadow: 0 0 0 3px rgba(125,195,30,0.12), 0 2px 8px rgba(0,0,0,0.07);
}

.top-right {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
}

.header-icon {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.header-icon i { font-size: 16px; color: var(--accent-forest); }

.header-icon:hover {
  background: rgba(30,122,60,0.07);
  border-color: rgba(30,122,60,0.12);
  color: var(--text-heading);
}

/* User Profile pill */
.user-profile {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(125,195,30,0.12);
  border: 1px solid rgba(125,195,30,0.28);
  cursor: pointer; transition: var(--transition);
}

.user-profile i { font-size: 20px; color: var(--accent-forest); }

.username-text {
  font-size: 13.5px; font-weight: 700;
  color: var(--text-heading);
}

.user-profile:hover {
  background: rgba(125,195,30,0.20);
  border-color: rgba(125,195,30,0.45);
  box-shadow: 0 2px 12px rgba(125,195,30,0.18);
}

/* ── NOTIFICATION ── */
.notification-wrapper { position: relative; display: flex; align-items: center; }

.notification-icon {
  position: relative;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(30,122,60,0.07);
  border: 1px solid rgba(30,122,60,0.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}

.notification-icon i { font-size: 16px; color: var(--accent-forest); }

.notification-icon:hover {
  background: rgba(125,195,30,0.15);
  border-color: rgba(125,195,30,0.30);
}

.notification-badge {
  position: absolute; top: -5px; right: -5px;
  background: #e8445a; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-root);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,68,90,0.50); }
  50%      { box-shadow: 0 0 0 6px rgba(232,68,90,0); }
}

.notification-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 295px;
  background: #ffffff;
  border: 1px solid rgba(30,122,60,0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px; display: none; z-index: 10001;
}

.notification-dropdown h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--accent-forest);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(30,122,60,0.10);
}

.notification-dropdown ul { list-style: none; }

.notification-dropdown li {
  font-size: 13px; padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-body);
  display: flex; align-items: flex-start; gap: 8px;
}

.notification-dropdown li:last-child { border-bottom: none; }

/* ── SETTINGS ── */
.settings-wrapper { position: relative; }

.settings-trigger {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(30,122,60,0.07);
  border: 1px solid rgba(30,122,60,0.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); gap: 4px;
}

.settings-trigger i { font-size: 15px; color: var(--accent-forest); }
.settings-trigger .small-arrow { font-size: 10px; color: var(--text-muted); }

.settings-trigger:hover {
  background: rgba(125,195,30,0.15);
  border-color: rgba(125,195,30,0.30);
}

.settings-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 200px; background: #ffffff;
  border: 1px solid rgba(30,122,60,0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px; display: none;
  flex-direction: column; z-index: 10001;
}

.dropdown-item {
  padding: 10px 14px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13.5px; font-weight: 500;
  color: var(--text-body); transition: var(--transition);
}

.dropdown-item i { font-size: 14px; color: var(--accent-forest); }

.dropdown-item:hover {
  background: rgba(125,195,30,0.10);
  color: var(--text-heading);
}

/* ── ALERT ── */
.alert-box {
  position: fixed;
  top: calc(var(--header-h) + 16px); left: 50%;
  transform: translateX(-50%);
  background: rgba(30,122,60,0.95);
  color: #fff; padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(30,122,60,0.30);
  z-index: 99999; opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════════════════════════
   CONTENT WRAPPER
   ══════════════════════════════════════════════════════════ */
.fixed-tiles-wrapper {
  position: relative; z-index: 1;
  flex: 1; padding: 0 0 60px;
}

/* ══════════════════════════════════════════════════════════
   COMPANY SECTION — white cards on mint bg
   ══════════════════════════════════════════════════════════ */
.company-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 12px;
  padding: 14px 24px 12px;
}

/* ── Base company card — white with soft shadow ── */
.company-card {
  background: var(--card-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Lime top accent line */
.company-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-lime), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.company-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(30,122,60,0.12);
}

/* Announcements — mint-tinted */
.company-section .company-card:first-child {
  background: linear-gradient(160deg, #f4fcf7 0%, #ffffff 100%);
  border-color: rgba(30,122,60,0.10);
}

/* Birthday — soft lime tint */
.company-section .company-card:last-child {
  background: linear-gradient(160deg, #f5fce8 0%, #ffffff 100%);
  border-color: rgba(125,195,30,0.18);
}
.company-section .company-card:last-child::before {
  background: linear-gradient(90deg, var(--accent-lime), #c5f04e, transparent);
}

/* Card Header */
.card-header {
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.card-header i {
  font-size: 11px; color: var(--accent-forest);
  background: rgba(30,122,60,0.08);
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(30,122,60,0.12);
}

.card-header h3 { font-size: 12px; font-weight: 700; color: var(--text-heading); }

/* Empty state */
.empty-state {
  background: rgba(30,122,60,0.04);
  border: 1px dashed rgba(30,122,60,0.18);
  border-radius: var(--radius-sm);
  padding: 14px; text-align: center;
  font-size: 11.5px; color: var(--text-subtle); font-style: italic;
}

/* ── BIRTHDAY ── */
.birthday-item {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.birthday-item:last-child { border-bottom: none; }
.birthday-info { flex: 1; }

.birthday-name   { font-size: 11px; font-weight: 700; color: var(--text-heading); margin-bottom: 1px; }
.birthday-meta   { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 1px; }
.birthday-meta i { color: var(--accent-mid); font-size: 9px; }
.birthday-role   { font-size: 10px; color: var(--text-subtle); font-weight: 500; letter-spacing: 0.2px; }

.birthday-badge {
  background: rgba(125,195,30,0.12);
  color: var(--accent-forest);
  font-size: 9.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(125,195,30,0.28); white-space: nowrap;
}

/* ── CALENDAR ── */
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-header h3 { font-size: 12px; font-weight: 700; color: var(--text-heading); }

.calendar-header button {
  background: rgba(30,122,60,0.07);
  border: 1px solid rgba(30,122,60,0.15);
  color: var(--accent-forest);
  width: 22px; height: 22px; border-radius: 6px;
  cursor: pointer; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.calendar-header button:hover {
  background: rgba(125,195,30,0.15);
  border-color: rgba(125,195,30,0.35);
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 8px; }

.calendar-day {
  text-align: center; padding: 5px 1px; border-radius: 6px;
  cursor: pointer; font-size: 10.5px; font-weight: 600;
  color: var(--text-body); transition: var(--transition);
  position: relative;
}
.calendar-day:hover { background: rgba(125,195,30,0.12); color: var(--text-heading); }
.calendar-day.today {
  background: var(--accent-lime);
  color: #fff; font-weight: 800;
  box-shadow: 0 2px 10px rgba(125,195,30,0.38);
}

.event-dot { width: 3px; height: 3px; background: var(--accent-lime); border-radius: 50%; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); }

.calendar-events {
  background: rgba(30,122,60,0.05);
  border: 1px solid rgba(30,122,60,0.12);
  border-radius: var(--radius-sm); padding: 7px 10px;
  font-size: 11px; min-height: 38px; color: var(--text-body);
}

.event-item { padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; gap: 5px; }
.event-item::before { content: ''; width: 4px; height: 4px; background: var(--accent-lime); border-radius: 50%; flex-shrink: 0; }
.event-item:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════
   TILES SECTION LABEL
   ══════════════════════════════════════════════════════════ */
.tiles-section-label {
  padding: 6px 24px 12px;
  display: flex; align-items: center; gap: 14px;
}

.tiles-section-label h2 {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-muted); white-space: nowrap;
}

.tiles-section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(30,122,60,0.20), transparent);
}

/* ══════════════════════════════════════════════════════════
   TILES CONTAINER
   ══════════════════════════════════════════════════════════ */
.tiles-container { padding: 0 24px; }

.fixed-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

/* ══════════════════════════════════════════════════════════
   TILE CARDS — white cards, green headings, exactly like screenshot
   ══════════════════════════════════════════════════════════ */
.tile {
  /* Pure white — exactly like the live site */
  background: var(--card-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 16px 18px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-tile);
  animation: tileReveal 0.50s ease both;

  transition:
    transform    0.36s cubic-bezier(0.34,1.44,0.64,1),
    box-shadow   0.30s ease,
    border-color 0.26s ease,
    background   0.26s ease;
}

/* Lime top accent stripe — appears on hover */
.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-lime), var(--accent-lime-3));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.34,1.44,0.64,1);
}

/* Lime glow from bottom on hover */
.tile::after {
  content: '';
  position: absolute;
  bottom: -60%; left: 50%;
  transform: translateX(-50%);
  width: 130%; height: 130%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(125,195,30,0.12) 0%,
    rgba(125,195,30,0.04) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
  border-radius: 50%;
}

/* ─ HOVER ─ */
.tile:hover {
  transform: translateY(-7px) scale(1.018);
  border-color: rgba(125,195,30,0.35);
  background: linear-gradient(175deg, #fafffe 0%, #f4fce8 100%);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.12),
    0 4px 16px rgba(125,195,30,0.18),
    0 0 0 1px rgba(125,195,30,0.12);
}

.tile:hover::before { transform: scaleX(1); }
.tile:hover::after  { opacity: 1; }

.tile:active { transform: translateY(-2px) scale(1.008); transition-duration: 0.10s; }

/* ─ Icon ─ */
.tile img {
  width: 46px; height: 46px;
  object-fit: contain; margin-bottom: 10px;
  border-radius: 11px;
  /* Soft mint backing — subtle pop */
  background: rgba(125,195,30,0.07);
  padding: 5px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.14));
  transition:
    transform  0.36s cubic-bezier(0.34,1.44,0.64,1),
    filter     0.30s ease,
    background 0.26s ease;
  position: relative; z-index: 1;
}

.tile:hover img {
  transform: scale(1.12) translateY(-4px);
  background: rgba(125,195,30,0.14);
  filter: drop-shadow(0 8px 16px rgba(125,195,30,0.30));
}

/* ─ Title — forest green, exactly like screenshot ─ */
.tile h3 {
  font-size: 12.5px; font-weight: 700;
  /* Forest green titles — matching the live site */
  color: var(--text-title);
  margin-bottom: 5px; line-height: 1.35;
  position: relative; z-index: 1;
  transition: color 0.26s ease;
}
.tile:hover h3 { color: var(--text-heading); }

/* ─ Description — grey, matching screenshot ─ */
.tile p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.50;
  position: relative; z-index: 1;
  transition: color 0.26s ease;
}
.tile:hover p { color: var(--text-body); }

/* ─ Arrow badge ─ */
.tile-arrow {
  position: absolute; top: 12px; right: 13px;
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(125,195,30,0.10);
  border: 1px solid rgba(125,195,30,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--accent-forest);
  opacity: 0;
  transform: scale(0.65) rotate(-15deg);
  transition: opacity 0.24s ease, transform 0.30s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none; z-index: 2;
}
.tile:hover .tile-arrow { opacity: 1; transform: scale(1) rotate(0deg); }

/* ─ Lime-tinted rhythm tiles ─ */
.tile:nth-child(5n+3) {
  background: linear-gradient(175deg, #f8fef2 0%, #ffffff 100%);
  border-color: rgba(125,195,30,0.12);
}

/* ─ Stagger animation ─ */
.tile:nth-child(1)  { animation-delay: 0.04s; }
.tile:nth-child(2)  { animation-delay: 0.08s; }
.tile:nth-child(3)  { animation-delay: 0.12s; }
.tile:nth-child(4)  { animation-delay: 0.16s; }
.tile:nth-child(5)  { animation-delay: 0.20s; }
.tile:nth-child(6)  { animation-delay: 0.24s; }
.tile:nth-child(7)  { animation-delay: 0.28s; }
.tile:nth-child(8)  { animation-delay: 0.32s; }
.tile:nth-child(9)  { animation-delay: 0.36s; }
.tile:nth-child(10) { animation-delay: 0.40s; }
.tile:nth-child(11) { animation-delay: 0.44s; }
.tile:nth-child(12) { animation-delay: 0.48s; }
.tile:nth-child(n+13) { animation-delay: 0.52s; }

@keyframes tileReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.95); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ══════════════════════════════════════════════════════════
   SOCIAL LINKS
   ══════════════════════════════════════════════════════════ */
.social-links {
  display: flex; justify-content: center;
  align-items: center; gap: 10px;
  padding: 44px 0 30px;
}

.social-links a {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--card-white);
  border: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px;
  text-decoration: none; transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.social-links a:hover {
  background: rgba(125,195,30,0.12);
  border-color: rgba(125,195,30,0.30);
  color: var(--accent-forest);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(125,195,30,0.20);
}

/* ══════════════════════════════════════════════════════════
   PARTNERS SECTION
   ══════════════════════════════════════════════════════════ */
.partners-section {
  padding: 28px 32px 52px;
  text-align: center;
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(30,122,60,0.10);
  margin-top: 10px;
  backdrop-filter: blur(8px);
}

.partners-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
}

.partners-section h2::before,
.partners-section h2::after {
  content: ''; width: 40px; height: 1px; display: inline-block;
}
.partners-section h2::before { background: linear-gradient(to left, rgba(30,122,60,0.35), transparent); }
.partners-section h2::after  { background: linear-gradient(to right, rgba(30,122,60,0.35), transparent); }

.partners-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 14px;
}

.partner-logo {
  width: 68px; height: 68px; object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  background: var(--card-white);
  transition: var(--transition);
  filter: grayscale(20%) brightness(0.95);
  padding: 5px;
  box-shadow: var(--shadow-xs);
}

.partner-logo:hover {
  transform: scale(1.12) translateY(-4px);
  filter: grayscale(0%) brightness(1.04);
  border-color: rgba(125,195,30,0.35);
  box-shadow: var(--shadow-hover);
}

/* ══════════════════════════════════════════════════════════
   MODAL — white card on mint glass backdrop
   ══════════════════════════════════════════════════════════ */
.modal {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(200,230,210,0.55);
  backdrop-filter: blur(12px);
  justify-content: center; align-items: center;
}

.modal-content {
  background: var(--card-white);
  border: 1px solid rgba(30,122,60,0.14);
  border-radius: var(--radius-lg);
  padding: 36px; width: 385px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(125,195,30,0.08);
  animation: modalPop 0.36s cubic-bezier(0.34,1.56,0.64,1) both;
  position: relative;
}

/* Lime → white top stripe */
.modal-content::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #1a5c1f, #7DC31E, #d5f56a, #7DC31E, #1a5c1f);
  background-size: 250% 100%;
  animation: shimmerBar 4s linear infinite;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Soft mint corner glow */
.modal-content::after {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(125,195,30,0.08) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes modalPop {
  from { opacity:0; transform: scale(0.90) translateY(16px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.modal-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px; margin-top: 10px;
}

.modal-content label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--text-muted);
  margin-bottom: 6px; margin-top: 16px;
}

.modal-content input,
.modal-content select {
  width: 100%; padding: 11px 14px;
  background: rgba(30,122,60,0.04);
  border: 1px solid rgba(30,122,60,0.16);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: 'Poppins', sans-serif;
  font-size: 14px; outline: none;
  transition: var(--transition); appearance: none;
}

.modal-content input:focus,
.modal-content select:focus {
  border-color: rgba(125,195,30,0.50);
  background: #f8fef2;
  box-shadow: 0 0 0 3px rgba(125,195,30,0.14);
}

.modal-content select option { background: #ffffff; color: var(--text-body); }

.modal-content button[type="submit"] {
  width: 100%; margin-top: 24px; padding: 13px;
  background: linear-gradient(135deg, var(--accent-lime), var(--accent-lime-3));
  color: var(--text-heading);
  border: none; border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  letter-spacing: 0.2px;
  box-shadow: 0 4px 20px rgba(125,195,30,0.35);
}

.modal-content button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent-lime-3), #b8f035);
  box-shadow: 0 6px 28px rgba(125,195,30,0.50);
  transform: translateY(-1px);
}

.modal-content .close {
  float: right; font-size: 22px; cursor: pointer;
  color: var(--text-muted); transition: var(--transition);
  line-height: 1; margin-top: 2px;
}
.modal-content .close:hover { color: var(--text-heading); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Full mobile & tablet coverage
   ══════════════════════════════════════════════════════════ */

/* ── Tablet landscape (≤1200px) ── */
@media (max-width: 1200px) {
  .company-section {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px 12px;
  }
  .company-section .company-card:last-child { grid-column: 1 / -1; }
  .tiles-container { padding: 0 20px; }
  .tiles-section-label { padding: 6px 20px 12px; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {

  /* Header */
  .top-center  { display: none; }
  .top-header  { padding: 0 16px; gap: 10px; }
  .top-search  { flex: 1; }
  .header-search {
    width: 100%;
    max-width: 220px;
    height: 36px;
    font-size: 12.5px;
  }
  .header-search:focus { width: 100%; max-width: 240px; }

  /* Header right — tighten spacing */
  .top-right { gap: 4px; }
  .header-icon { padding: 6px 10px; font-size: 12px; }
  .header-icon i { font-size: 15px; }
  .notification-icon { width: 34px; height: 34px; }
  .settings-trigger  { width: 34px; height: 34px; }

  /* Profile pill — show only icon on tablet */
  .user-profile { padding: 5px 10px 5px 7px; }
  .username-text { font-size: 12px; }

  /* Company cards — single column */
  .company-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px 10px;
  }
  .company-section .company-card:last-child { grid-column: auto; }

  /* Calendar — slightly smaller days */
  .calendar-day { padding: 5px 1px; font-size: 10px; }

  /* Tiles */
  .fixed-tiles {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .tiles-container { padding: 0 16px; }
  .tiles-section-label { padding: 6px 16px 10px; }

  /* Tile sizing */
  .tile { padding: 16px 12px 14px; }
  .tile img { width: 40px; height: 40px; margin-bottom: 8px; }
  .tile h3 { font-size: 11.5px; margin-bottom: 4px; }
  .tile p  { font-size: 11px; }

  /* Partners */
  .partners-section { padding: 18px 16px 36px; }
  .partner-logo { width: 56px; height: 56px; }

  /* Social links */
  .social-links { gap: 8px; padding: 28px 0 20px; }
  .social-links a { width: 36px; height: 36px; font-size: 14px; }

  /* Admin panel */
  .admin-tab-content.active { grid-template-columns: 1fr; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-tabs { overflow-x: auto; gap: 2px; }
  .admin-tab  { white-space: nowrap; font-size: 11.5px; padding: 8px 12px; }

  /* Profile modal */
  .profile-modal-content { width: 92vw !important; max-width: 360px !important; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  :root { --header-h: 58px; }

  /* Header — compact */
  .top-header  { padding: 0 12px; gap: 8px; }
  .top-logo    { width: 36px; height: 36px; border-radius: 10px; }
  .top-search  { display: none; } /* hide search on mobile — too cramped */
  .top-right   { gap: 4px; }

  /* Header icons — smaller */
  .notification-icon { width: 32px; height: 32px; border-radius: 8px; }
  .notification-icon i { font-size: 14px; }
  .settings-trigger  { width: 32px; height: 32px; border-radius: 8px; }
  .settings-trigger i { font-size: 13px; }

  /* Profile pill — icon + name on mobile */
  .user-profile  { padding: 4px 10px 4px 6px; gap: 6px; }
  .user-profile i { font-size: 18px; }
  .username-text { display: none; } /* hide on very small screens */

  /* Profile header image */
  .header-profile-img {
    width: 26px; height: 26px;
    border-width: 1.5px;
  }

  /* Logout label — icon only on mobile */
  .header-icon span { display: none; }
  .header-icon { padding: 6px 8px; }
  .header-icon i { font-size: 16px; }

  /* Notification dropdown — full width */
  .notification-dropdown {
    width: calc(100vw - 24px);
    right: -80px;
    max-height: 60vh;
  }

  /* Settings dropdown */
  .settings-dropdown { width: 180px; right: -8px; }

  /* Banner */
  .banner-slider { height: 180px; }
  .banner-text   { font-size: 18px; bottom: 30px; }

  /* Company section */
  .company-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 12px 8px;
  }

  /* Company cards — tighter padding */
  .company-card { padding: 10px 12px; border-radius: 12px; }

  .card-header { gap: 6px; padding-bottom: 8px; margin-bottom: 8px; }
  .card-header i { width: 22px; height: 22px; font-size: 10px; }
  .card-header h3 { font-size: 11.5px; }

  /* Calendar — compact on mobile */
  .calendar-header { margin-bottom: 8px; }
  .calendar-header h3 { font-size: 11.5px; }
  .calendar-header button { width: 22px; height: 22px; font-size: 9px; }
  .calendar-grid { gap: 2px; margin-bottom: 6px; }
  .calendar-day  { padding: 5px 1px; font-size: 9.5px; border-radius: 5px; }
  .calendar-events { padding: 6px 8px; font-size: 10.5px; min-height: 34px; }

  /* Birthday items */
  .birthday-item { padding: 7px 0; gap: 8px; }
  .birthday-name { font-size: 10.5px; }
  .birthday-meta { font-size: 9.5px; }
  .birthday-role { font-size: 9.5px; }
  .birthday-badge { font-size: 9px; padding: 3px 7px; }

  /* Announcement items */
  .announcement-item { gap: 7px; padding: 8px 0; }
  .ann-icon { font-size: 16px; }
  .ann-title { font-size: 11px; }
  .ann-message { font-size: 10px; }
  .ann-footer { margin-top: 4px; }

  /* Tiles section */
  .tiles-section-label { padding: 6px 12px 10px; }
  .tiles-container { padding: 0 12px; }
  .fixed-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Tile cards — 2 columns on mobile */
  .tile { padding: 14px 10px 12px; border-radius: 12px; }
  .tile img { width: 36px; height: 36px; margin-bottom: 7px; border-radius: 9px; padding: 4px; }
  .tile h3  { font-size: 11px; margin-bottom: 3px; line-height: 1.3; }
  .tile p   { font-size: 10px; line-height: 1.45; }
  .tile-arrow { width: 20px; height: 20px; font-size: 9px; top: 8px; right: 8px; }

  /* Disable hover lift on mobile (touch devices) */
  .tile:hover { transform: none; box-shadow: var(--shadow-tile); }
  .tile:active { transform: scale(0.97); transition-duration: 0.10s; }

  /* Social links */
  .social-links { gap: 8px; padding: 24px 0 16px; flex-wrap: wrap; justify-content: center; }
  .social-links a { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }

  /* Partners */
  .partners-section { padding: 16px 12px 32px; }
  .partners-logos   { gap: 10px; }
  .partner-logo     { width: 50px; height: 50px; border-radius: 10px; }

  /* Modals */
  .modal-content  { width: 94vw; padding: 28px 18px 22px; border-radius: 18px; }
  .modal-content h2 { font-size: 17px; }
  .modal-content input,
  .modal-content select { padding: 10px 12px; font-size: 13px; }

  /* Profile modal */
  .profile-modal-content { width: 94vw !important; padding: 28px 18px 22px !important; }
  .profile-preview-img   { width: 88px; height: 88px; }
  .profile-preview-placeholder { width: 88px; height: 88px; font-size: 32px; }
  .profile-upload-area   { padding: 12px; }
  .profile-upload-area i { font-size: 20px; }
  .profile-upload-area span { font-size: 12px; }
  .profile-btn-upload,
  .profile-btn-remove { font-size: 12px; padding: 10px; }

  /* Admin panel */
  .admin-panel    { width: 96vw; max-height: 92vh; border-radius: 16px; }
  .admin-panel-header { padding: 14px 16px 12px; }
  .admin-panel-title  { font-size: 14px; }
  .admin-tabs     { padding: 8px 12px 0; }
  .admin-tab      { font-size: 11px; padding: 7px 10px; }
  .admin-tab-content.active { padding: 14px 14px; }
  .admin-form-section { padding: 14px; }
  .admin-list-section { padding: 14px; }

  /* Reaction buttons — same size on mobile */
  .reaction-btn {
    padding: 4px 8px;
    border-radius: 8px;
    gap: 5px;
  }
  .reaction-thumb { font-size: 13px; }
  .reaction-count {
    font-size: 9.5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
  }
  .reaction-btn-sm { padding: 3px 7px; }
  .reaction-btn-sm .reaction-thumb { font-size: 12px; }
  .reaction-btn-sm .reaction-count { font-size: 9px; min-width: 16px; height: 16px; }

  /* Event item row */
  .event-item-row { gap: 6px; }
  .event-item-row .event-item { font-size: 10.5px; }
}

/* ── Very small phones (≤380px) ── */
@media (max-width: 380px) {
  .fixed-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tile { padding: 12px 8px 10px; }
  .tile img { width: 32px; height: 32px; }
  .tile h3  { font-size: 10.5px; }
  .tile p   { font-size: 9.5px; }

  .notification-dropdown {
    right: -100px;
    width: calc(100vw - 16px);
  }

  .company-section { padding: 10px 10px 8px; }
  .tiles-container { padding: 0 10px; }
}

/* ══════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(30,122,60,0.22);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(125,195,30,0.45); }

/* ══════════════════════════════════════════════════════════
   ANNOUNCEMENT ITEMS (dashboard display)
   ══════════════════════════════════════════════════════════ */
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.announcement-item:last-child { border-bottom: none; }

.ann-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

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

.ann-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-message {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 3px;
}

.ann-date {
  font-size: 10px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ann-date i { color: var(--accent-lime); font-size: 9px; }

/* ── Divider in settings dropdown ── */
.dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 4px 8px;
}

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL OVERLAY
   ══════════════════════════════════════════════════════════ */
.admin-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(20, 60, 30, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s ease;
}

.admin-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel Box ── */
.admin-panel {
  background: #ffffff;
  border-radius: 20px;
  width: min(820px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 72px rgba(0,0,0,0.22),
    0 0 0 1px rgba(30,122,60,0.10);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34,1.44,0.64,1);
}

.admin-panel-overlay.open .admin-panel {
  transform: translateY(0) scale(1);
}

/* ── Panel Header ── */
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: linear-gradient(135deg, #f4fcf7 0%, #edfbf3 100%);
  flex-shrink: 0;
  position: relative;
}

/* Green top stripe on panel */
.admin-panel-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-lime), #d5f56a, var(--accent-lime), var(--accent-forest));
  background-size: 250% 100%;
  animation: shimmerBar 4s linear infinite;
  border-radius: 20px 20px 0 0;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.admin-panel-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(30,122,60,0.10);
  border: 1px solid rgba(30,122,60,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-forest);
  font-size: 14px;
}

.admin-panel-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.admin-panel-close:hover {
  background: rgba(240,80,80,0.10);
  color: #e53e3e;
}

/* ── Tab Bar ── */
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
  background: #f9fafb;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.admin-tab {
  padding: 9px 18px;
  border-radius: 9px 9px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  position: relative;
  bottom: -1px;
}

.admin-tab i { font-size: 12px; }

.admin-tab:hover {
  background: rgba(30,122,60,0.06);
  color: var(--accent-forest);
}

.admin-tab.active {
  background: #ffffff;
  color: var(--accent-forest);
  border-color: rgba(0,0,0,0.07);
  border-bottom-color: #ffffff;
}

/* ── Tab Content ── */
.admin-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  gap: 20px;
}

.admin-tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Scrollbar inside panel */
.admin-tab-content::-webkit-scrollbar { width: 4px; }
.admin-tab-content::-webkit-scrollbar-thumb { background: rgba(30,122,60,0.18); border-radius: 4px; }

/* ── Form Section ── */
.admin-form-section {
  background: #f8fdf9;
  border: 1px solid rgba(30,122,60,0.10);
  border-radius: 14px;
  padding: 18px;
}

.admin-form-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30,122,60,0.10);
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-form-title::before {
  content: '';
  width: 3px; height: 14px;
  background: var(--accent-lime);
  border-radius: 2px;
  display: inline-block;
}

.admin-form-group {
  margin-bottom: 12px;
}

.admin-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid rgba(30,122,60,0.16);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: var(--text-body);
  outline: none;
  transition: var(--transition);
  resize: none;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  border-color: rgba(125,195,30,0.50);
  box-shadow: 0 0 0 3px rgba(125,195,30,0.12);
}

.admin-form-group select { appearance: none; cursor: pointer; }

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

/* ── Primary Button ── */
.admin-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent-forest), var(--accent-lime));
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  box-shadow: 0 3px 14px rgba(125,195,30,0.28);
}

.admin-btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-lime), #aaec30);
  box-shadow: 0 5px 20px rgba(125,195,30,0.40);
  transform: translateY(-1px);
}

/* ── List Section ── */
.admin-list-section {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 18px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
}

.admin-item-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 4px;
}

.admin-item-list::-webkit-scrollbar { width: 3px; }
.admin-item-list::-webkit-scrollbar-thumb { background: rgba(30,122,60,0.18); border-radius: 3px; }

.admin-empty {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

/* ── List Item ── */
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-list-item:last-child { border-bottom: none; }

.admin-list-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

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

.admin-list-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-list-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-delete-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(240,80,80,0.08);
  border: 1px solid rgba(240,80,80,0.15);
  color: #c0392b;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.admin-delete-btn:hover {
  background: rgba(240,80,80,0.16);
  border-color: rgba(240,80,80,0.30);
  transform: scale(1.08);
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════════════════════════ */
.admin-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--accent-forest);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(30,122,60,0.32);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.admin-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-toast-error {
  background: #e53e3e;
  box-shadow: 0 8px 28px rgba(229,62,62,0.32);
}

/* ── Responsive admin panel ── */
/* ══════════════════════════════════════════════════════════
   NOTIFICATION DROPDOWN — sectioned layout
   ══════════════════════════════════════════════════════════ */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid rgba(30,122,60,0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0 6px;
  display: none;
  z-index: 10001;
  max-height: 420px;
  overflow-y: auto;
}

.notification-dropdown::-webkit-scrollbar { width: 3px; }
.notification-dropdown::-webkit-scrollbar-thumb { background: rgba(30,122,60,0.18); border-radius: 3px; }

/* Section header row */
.notif-section-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-forest);
  background: rgba(30,122,60,0.04);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.notif-section-header:first-child { border-top: none; }

.notif-section-header i { font-size: 10px; }

/* Section count pill */
.notif-section-count {
  margin-left: auto;
  background: var(--accent-lime);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* List inside each section */
.notif-list {
  list-style: none;
  padding: 4px 0 6px;
}

.notif-list li {
  font-size: 12px;
  padding: 7px 16px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  line-height: 1.45;
  transition: background 0.18s ease;
}

.notif-list li:last-child { border-bottom: none; }

.notif-list li:hover { background: rgba(30,122,60,0.04); }

.notif-list li strong { color: var(--text-heading); }

.notif-empty {
  font-style: italic;
  color: var(--text-subtle) !important;
  font-size: 11px !important;
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE STYLES
   Scoped entirely to body.login-body — zero risk of
   affecting dashboard, tiles, or any other page styles.
   ══════════════════════════════════════════════════════════ */

/* ── Body ── */
body.login-body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;

  /* Instant CSS gradient — renders at 0ms, no image wait */
  background:
    radial-gradient(ellipse 90vw 65vh at 15% 0%,  rgba(21,82,40,0.92)   0%, transparent 55%),
    radial-gradient(ellipse 70vw 55vh at 90% 100%, rgba(13,33,17,0.95)   0%, transparent 55%),
    radial-gradient(ellipse 50vw 40vh at 80% 10%,  rgba(125,195,30,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #0f2614 0%, #091b0d 50%, #060f07 100%);
}

/* Background image — fades in AFTER it loads via JS */
body.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('background.jpg') center center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
  will-change: opacity;
}

/* Dark overlay for readability */
body.login-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(8,22,12,0.68)  0%,
    rgba(6,18,9,0.55)   50%,
    rgba(10,26,14,0.72) 100%
  );
  z-index: 0;
}

/* JS adds this once background.jpg is loaded */
body.login-body.bg-ready::before { opacity: 1; }

/* ── Ambient blobs ── */
body.login-body .blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(70px);
  animation: loginBlobDrift 9s ease-in-out infinite alternate;
}

body.login-body .blob-1 {
  width: 45vw; height: 45vw; max-width: 500px;
  top: -15%; left: -8%;
  background: radial-gradient(circle, rgba(21,82,40,0.40) 0%, transparent 70%);
}

body.login-body .blob-2 {
  width: 35vw; height: 35vw; max-width: 400px;
  bottom: -10%; right: -8%;
  background: radial-gradient(circle, rgba(125,195,30,0.22) 0%, transparent 70%);
  animation-delay: -5s;
}

body.login-body .blob-3 {
  width: 22vw; height: 22vw; max-width: 280px;
  top: 35%; left: 65%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  animation-delay: -2.5s;
}

@keyframes loginBlobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(25px, 18px) scale(1.06); }
}

/* ── Login wrap ── */
body.login-body .login-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 410px;
  animation: loginCardIn 0.50s cubic-bezier(0.34,1.44,0.64,1) both;
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Glass card ── */
body.login-body .glass-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 24px;
  padding: 38px 34px 34px;
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* Animated lime shimmer top edge */
body.login-body .glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    #155228, #7DC31E, #c5f04e, #fff,
    #c5f04e, #7DC31E, #155228
  );
  background-size: 300% 100%;
  animation: shimmerBar 5s linear infinite;
  border-radius: 24px 24px 0 0;
}

/* Inner glow */
body.login-body .glass-card::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(125,195,30,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Logo placeholder ── */
body.login-body .logo-wrap {
  text-align: center;
  margin-bottom: 20px;
}

body.login-body .logo-placeholder {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: rgba(125,195,30,0.15);
  border: 1px solid rgba(125,195,30,0.28);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 30px;
  color: #7DC31E;
  position: relative;
}

body.login-body .login-logo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.40s ease;
}

body.login-body .login-logo.loaded { opacity: 1; }

/* ── Title ── */
body.login-body .login-title {
  text-align: center;
  margin-bottom: 26px;
}

body.login-body .login-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
}

body.login-body .login-title p {
  font-size: 12px;
  color: rgba(125,195,30,0.80);
  letter-spacing: 0.3px;
}

/* ── Form ── */
body.login-body .login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.login-body .field-group {
  margin-bottom: 14px;
}

body.login-body .field-group label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.52);
  margin-bottom: 6px;
}

body.login-body .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

body.login-body .input-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: rgba(125,195,30,0.65);
  pointer-events: none;
  transition: color 0.22s ease;
  z-index: 1;
}

body.login-body .field-group:focus-within .input-icon {
  color: #7DC31E;
}

body.login-body .input-wrap input {
  width: 100%;
  padding: 11px 42px 11px 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,0.95);
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

body.login-body .input-wrap input::placeholder {
  color: rgba(255,255,255,0.28);
}

body.login-body .input-wrap input:focus {
  border-color: rgba(125,195,30,0.55);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(125,195,30,0.15);
}

/* Password eye toggle */
body.login-body .eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  padding: 4px;
  transition: color 0.20s ease;
  z-index: 2;
  line-height: 1;
}

body.login-body .eye-btn:hover { color: #7DC31E; }

/* ── Error message ── */
body.login-body .error-message {
  background: rgba(240,80,112,0.14);
  border: 1px solid rgba(240,80,112,0.30);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 500;
  color: #ffb3c0;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  animation: loginShake 0.38s ease;
}

body.login-body .error-message.visible { display: flex; }

@keyframes loginShake {
  0%,100% { transform: translateX(0); }
  22%,66%  { transform: translateX(-5px); }
  44%,88%  { transform: translateX(5px); }
}

/* ── Login button ── */
body.login-body .btn-login {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
  background: linear-gradient(135deg, #1e7a3c, #7DC31E);
  border: none;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 22px rgba(125,195,30,0.32);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}

body.login-body .btn-login:hover {
  box-shadow: 0 6px 30px rgba(125,195,30,0.45);
  transform: translateY(-1px);
}

body.login-body .btn-login:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

/* Loading spinner inside button */
body.login-body .btn-login .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.30);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loginSpin 0.65s linear infinite;
}

body.login-body .btn-login.loading .btn-label { display: none; }
body.login-body .btn-login.loading .spinner   { display: block; }

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

/* ── Links ── */
body.login-body .login-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}

body.login-body .login-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.20s ease;
  display: flex; align-items: center; gap: 5px;
}

body.login-body .login-links a:hover { color: #7DC31E; }

/* ── Footer ── */
body.login-body .footer {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.3px;
  background: none;
  padding: 0;
}

body.login-body .footer a {
  color: rgba(125,195,30,0.60);
  text-decoration: none;
  transition: color 0.20s ease;
}

body.login-body .footer a:hover { color: #7DC31E; }

/* ── Modals ── */
body.login-body .modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,22,12,0.65);
  backdrop-filter: blur(10px);
  display: none; align-items: center;
  justify-content: center; padding: 20px;
}

body.login-body .modal.open { display: flex; }

body.login-body .modal-content {
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: 32px 28px 28px;
  width: 100%; max-width: 370px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.50),
              inset 0 1px 0 rgba(255,255,255,0.20);
  animation: loginCardIn 0.34s cubic-bezier(0.34,1.56,0.64,1) both;
  position: relative;
}

body.login-body .modal-content::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #155228, #7DC31E, #c5f04e, #7DC31E, #155228);
  background-size: 250% 100%;
  animation: shimmerBar 4s linear infinite;
  border-radius: 22px 22px 0 0;
}

body.login-body .modal-content h3 {
  font-size: 17px; font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 9px;
}

body.login-body .modal-content h3 i { font-size: 15px; color: #7DC31E; }

body.login-body .modal-content input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.95); outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

body.login-body .modal-content input::placeholder {
  color: rgba(255,255,255,0.28);
}

body.login-body .modal-content input:focus {
  border-color: rgba(125,195,30,0.50);
  box-shadow: 0 0 0 3px rgba(125,195,30,0.14);
  background: rgba(255,255,255,0.12);
}

body.login-body .modal-content button:not(.btn-close) {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #1e7a3c, #7DC31E);
  color: #fff; border: none; border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.20s ease, box-shadow 0.20s ease;
  box-shadow: 0 4px 18px rgba(125,195,30,0.30);
}

body.login-body .modal-content button:not(.btn-close):hover {
  box-shadow: 0 6px 24px rgba(125,195,30,0.44);
  transform: translateY(-1px);
}

body.login-body .btn-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: rgba(255,255,255,0.38);
  padding: 4px; transition: color 0.20s ease; line-height: 1;
}

body.login-body .btn-close:hover { color: rgba(255,255,255,0.95); }

body.login-body .modal-msg {
  font-size: 12.5px; margin-top: 12px;
  color: rgba(125,195,30,0.85);
  text-align: center; min-height: 18px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body.login-body .glass-card {
    padding: 28px 18px 24px;
    border-radius: 20px;
  }
  body.login-body .login-title h2 { font-size: 17px; }
  body.login-body .login-title p  { font-size: 11px; }
  body.login-body .login-wrap     { max-width: 100%; }
  body.login-body .logo-placeholder { width: 60px; height: 60px; font-size: 26px; }
  body.login-body .login-logo     { width: 60px; height: 60px; }
  body.login-body .field-group label { font-size: 10px; }
  body.login-body .input-wrap input  { font-size: 13px; padding: 10px 38px 10px 36px; }
  body.login-body .btn-login         { font-size: 13px; padding: 12px; }
  body.login-body .login-links       { gap: 16px; }
  body.login-body .login-links a     { font-size: 11px; }
  body.login-body .modal-content     { padding: 24px 16px 20px; border-radius: 18px; }
  body.login-body .modal-content h3  { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════
   PROFILE PHOTO — Header + Modal
   ══════════════════════════════════════════════════════════ */

/* ── Profile image in header pill ── */
.header-profile-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(125,195,30,0.50);
  box-shadow: 0 0 0 2px rgba(125,195,30,0.15);
  flex-shrink: 0;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.user-profile:hover .header-profile-img {
  border-color: rgba(125,195,30,0.80);
  box-shadow: 0 0 0 3px rgba(125,195,30,0.20);
}

/* Camera overlay hint on hover */
.user-profile {
  position: relative;
  cursor: pointer;
}

/* ── Profile Modal ── */
.profile-modal-content {
  max-width: 380px !important;
  width: 380px !important;
}

/* Current photo preview */
.profile-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 18px;
  gap: 8px;
}

.profile-preview-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(125,195,30,0.40);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12),
              0 0 0 4px rgba(125,195,30,0.08);
  transition: border-color 0.22s ease;
}

.profile-preview-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(30,122,60,0.08);
  border: 3px dashed rgba(125,195,30,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: var(--text-muted);
}

.profile-username-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.2px;
}

/* Upload drop zone */
.profile-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px;
  border: 2px dashed rgba(30,122,60,0.22);
  border-radius: var(--radius-sm);
  background: rgba(30,122,60,0.03);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin-bottom: 14px;
}

.profile-upload-area:hover,
.profile-upload-area.has-file {
  border-color: rgba(125,195,30,0.50);
  background: rgba(125,195,30,0.06);
}

.profile-upload-area i {
  font-size: 24px;
  color: var(--accent-forest);
  margin-bottom: 2px;
}

.profile-upload-area span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
}

.profile-upload-area small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Action buttons row */
.profile-modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-btn-upload {
  flex: 1;
  padding: 11px;
  background: linear-gradient(135deg, var(--accent-forest), var(--accent-lime));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 3px 14px rgba(125,195,30,0.28);
}

.profile-btn-upload:hover:not(:disabled) {
  box-shadow: 0 5px 20px rgba(125,195,30,0.42);
  transform: translateY(-1px);
}

.profile-btn-upload:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.profile-btn-remove {
  padding: 11px 16px;
  background: rgba(240,80,80,0.08);
  color: #c0392b;
  border: 1px solid rgba(240,80,80,0.20);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-btn-remove:hover {
  background: rgba(240,80,80,0.15);
  border-color: rgba(240,80,80,0.35);
}

/* Message */
.profile-modal-msg {
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  min-height: 18px;
  padding: 4px 0;
  border-radius: 6px;
}

.profile-msg-success { color: var(--accent-forest); }
.profile-msg-error   { color: #e53e3e; }



/* ══════════════════════════════════════════════════════════
   REACTION BUTTONS
   Styled to match the bell notification icon + lime badge
   ══════════════════════════════════════════════════════════ */

/* Footer row holding date + reaction button */
.ann-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.ann-date {
  font-size: 10px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ann-date i { color: var(--accent-lime); font-size: 9px; }

/* ── Reaction button — matches .notification-icon style ── */
.reaction-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);       /* same as notification icon */
  background: rgba(30,122,60,0.07);      /* same as notification icon */
  border: 1px solid rgba(30,122,60,0.14);/* same as notification icon */
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  user-select: none;
  flex-shrink: 0;
}

.reaction-btn:hover {
  background: rgba(125,195,30,0.15);     /* same as notification icon hover */
  border-color: rgba(125,195,30,0.30);   /* same as notification icon hover */
}

.reaction-btn:active {
  transform: scale(0.93);
  transition-duration: 0.08s;
}

/* Reacted state — filled lime like active notification */
.reaction-btn.reacted {
  background: rgba(125,195,30,0.18);
  border-color: rgba(125,195,30,0.45);
}

/* ── Thumb emoji ── */
.reaction-thumb {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  filter: grayscale(60%);
  transition: filter 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.reaction-btn:hover .reaction-thumb,
.reaction-btn.reacted .reaction-thumb {
  filter: none;
  transform: scale(1.25) rotate(-10deg);
}

/* ── Count badge — matches .notif-section-count exactly ── */
.reaction-count {
  background: var(--accent-lime);        /* lime green — same as notif-section-count */
  color: #fff;                           /* white text */
  font-size: 9.5px;                      /* same size */
  font-weight: 800;                      /* same weight */
  min-width: 18px;                       /* same min-width */
  height: 18px;                          /* same height */
  border-radius: 999px;                  /* same pill shape */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;                        /* same padding */
  line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease;
}

/* When not reacted — grey out the count badge (0 or no reaction) */
.reaction-btn:not(.reacted) .reaction-count {
  background: rgba(30,122,60,0.18);
  color: var(--accent-forest);
}

/* Reacted — full lime like notif-section-count */
.reaction-btn.reacted .reaction-count {
  background: var(--accent-lime);
  color: #fff;
  animation: reactPulse 0.3s ease;
}

@keyframes reactPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Count bump animation */
@keyframes countBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.reaction-count.bump {
  animation: countBump 0.25s ease;
}

/* ── Small version for calendar events ── */
.reaction-btn-sm {
  padding: 3px 8px;
}
.reaction-btn-sm .reaction-thumb { font-size: 12px; }
.reaction-btn-sm .reaction-count {
  font-size: 9px;
  min-width: 16px;
  height: 16px;
}

/* ── Event item row — text + reaction button ── */
.event-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.event-item-row:last-child { border-bottom: none; }

.event-item-row .event-item {
  flex: 1;
  padding: 0;
  border-bottom: none;
  font-size: 11px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 5px;
}
.event-item-row .event-item::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent-lime);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   BEST STAFF OF THE MONTH — Bulletproof version
   No conic-gradient dependency. Works on all browsers.
   ══════════════════════════════════════════════════════════ */

.sotm-section {
  padding: 20px 24px 10px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ── Main card ── */
.sotm-card {
  background: linear-gradient(135deg, #fff9e6 0%, #fffdf5 50%, #f5fce8 100%);
  border: 2px solid rgba(245,197,24,0.45);
  border-radius: 24px;
  padding: 22px 28px 22px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 680px;
  box-shadow:
    0 8px 32px rgba(245,197,24,0.20),
    0 2px 12px rgba(125,195,30,0.12),
    inset 0 1px 0 rgba(255,255,255,0.90);
  position: relative;
  overflow: hidden;
  animation: sotmEntrance 0.6s cubic-bezier(0.34,1.44,0.64,1) both;
}

@keyframes sotmEntrance {
  from { opacity:0; transform:translateY(20px) scale(0.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* Gold shimmer top bar */
.sotm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,
    #b8860b, #f5c518, #ffe066, #fff,
    #ffe066, #f5c518, #7DC31E, #f5c518, #b8860b
  );
  background-size: 300% 100%;
  animation: shimmerBar 3s linear infinite;
  border-radius: 24px 24px 0 0;
}

/* Spinning sparkle corner */
.sotm-card::after {
  content: '✦';
  position: absolute;
  top: 14px; right: 16px;
  font-size: 18px;
  color: rgba(245,197,24,0.55);
  animation: sparkleSpin 4s linear infinite;
  pointer-events: none;
}

@keyframes sparkleSpin {
  0%   { transform: rotate(0deg) scale(1);    opacity:0.40; }
  50%  { transform: rotate(180deg) scale(1.4); opacity:0.75; }
  100% { transform: rotate(360deg) scale(1);   opacity:0.40; }
}

/* ══ RING SYSTEM — 3 nested divs ══
   .sotm-ring-outer  → fixed 120x120 container
   .sotm-ring-spinner → spinning colored border (the ring)
   .sotm-ring-gap    → white circle covering center of spinner
   .sotm-ring-photo  → the actual photo circle on top
*/

.sotm-ring-outer {
  position: relative;
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  flex-shrink: 0;
}

/* The spinning ring — uses border trick, no conic-gradient needed */
.sotm-ring-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c518, #7DC31E, #ffe066, #f5c518);
  animation: sotmSpin 2s linear infinite;
}

@keyframes sotmSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* White gap — covers the center leaving only the outer ring visible */
.sotm-ring-gap {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff9e6;
  z-index: 1;
}

/* Photo circle — sits on top, strictly 100x100 */
.sotm-ring-photo {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  /* Pulsating gold glow */
  animation: sotmPulse 2.5s ease-in-out infinite;
  border: 2px solid #fff;
}

@keyframes sotmPulse {
  0%, 100% {
    box-shadow:
      0 0 6px  3px  rgba(245,197,24,0.55),
      0 0 18px 6px  rgba(245,197,24,0.25),
      0 0 30px 10px rgba(125,195,30,0.12);
  }
  50% {
    box-shadow:
      0 0 14px 7px  rgba(245,197,24,0.85),
      0 0 32px 14px rgba(245,197,24,0.45),
      0 0 50px 20px rgba(125,195,30,0.25);
  }
}

/* ── Info section ── */
.sotm-info { flex: 1; min-width: 0; }

.sotm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b8860b;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.35);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.sotm-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 3px;
  line-height: 1.2;
}

.sotm-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-forest);
  margin-bottom: 3px;
}

.sotm-month {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Admin edit button ── */
.sotm-edit-btn {
  position: absolute;
  top: 14px; right: 36px;
  padding: 5px 12px;
  background: rgba(30,122,60,0.08);
  border: 1px solid rgba(30,122,60,0.20);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--accent-forest);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.sotm-edit-btn:hover {
  background: rgba(125,195,30,0.15);
  border-color: rgba(125,195,30,0.35);
}

/* ── Empty admin prompt ── */
.sotm-empty-admin {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: rgba(245,197,24,0.08);
  border: 2px dashed rgba(245,197,24,0.40);
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: #b8860b;
  transition: var(--transition);
  width: 100%; max-width: 680px;
  justify-content: center;
}
.sotm-empty-admin i { font-size: 18px; color: #f5c518; }
.sotm-empty-admin:hover {
  background: rgba(245,197,24,0.15);
  border-color: rgba(245,197,24,0.60);
}

/* ── SOTM Modal ── */
.sotm-modal-content {
  max-width: 400px !important;
  width: 400px !important;
}

.sotm-modal-preview-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

.sotm-modal-preview {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid rgba(245,197,24,0.50) !important;
  box-shadow: 0 4px 20px rgba(245,197,24,0.25) !important;
  display: block !important;
}

.sotm-modal-preview-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c518, #7DC31E);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff;
  border: 3px dashed rgba(245,197,24,0.50);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .sotm-section { padding: 14px 12px 6px; }
  .sotm-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px 18px;
    gap: 14px;
  }
  .sotm-ring-outer { width: 100px; height: 100px; min-width: 100px; min-height: 100px; }
  .sotm-name  { font-size: 17px; }
  .sotm-title { font-size: 12px; }
  .sotm-edit-btn { top: 10px; right: 10px; font-size: 10px; padding: 4px 9px; }
}

/* ══════════════════════════════════════════════════════════
   ANALYTICS WIDGET — Dashboard mini stats bar
   ══════════════════════════════════════════════════════════ */
.analytics-widget {
  margin: 8px 24px 4px;
  background: var(--card-white);
  border: 1px solid rgba(30,122,60,0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.analytics-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-lime), #d5f56a, var(--accent-lime), var(--accent-forest));
  background-size: 250% 100%;
  animation: shimmerBar 4s linear infinite;
}

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

.aw-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 7px;
}

.aw-title i { color: var(--accent-lime); font-size: 12px; }

.aw-view-all {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(30,122,60,0.07);
  border: 1px solid rgba(30,122,60,0.14);
  transition: var(--transition);
}

.aw-view-all:hover {
  background: rgba(125,195,30,0.14);
  border-color: rgba(125,195,30,0.30);
}

.aw-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aw-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,122,60,0.03);
  border: 1px solid rgba(30,122,60,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex: 1;
  min-width: 110px;
}

.aw-stat-wide { min-width: 160px; }

.aw-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.aw-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 2px;
}

.aw-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .analytics-widget { margin: 8px 16px 4px; }
  .aw-stats { gap: 8px; }
  .aw-stat  { min-width: 90px; padding: 8px 10px; }
  .aw-stat-value { font-size: 18px; }
}

@media (max-width: 600px) {
  .analytics-widget { margin: 8px 12px 4px; padding: 12px 14px; }
  .aw-stats { gap: 6px; }
  .aw-stat  { min-width: calc(50% - 3px); flex: none; }
  .aw-stat-wide { min-width: 100%; }
  .aw-stat-value { font-size: 16px; }
}