/* ============================================================
   AGR Milestone Tracker — app.css v2.0.0 PREMIUM
   Negro profundo + Lima #b0ff00 · Syne + DM Mono
   Diseño premium: glassmorphism, glow, gradientes refinados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

.agr-shell, .agr-shell * { box-sizing: border-box; margin: 0; padding: 0; }

body.agr-standalone-route {
  margin: 0 !important;
  min-height: 100vh;
  background: #000 !important;
  overflow-x: hidden;
}
body.agr-standalone-route #wpadminbar { display: none !important; }
body.agr-standalone-route .agr-shell { min-height: 100vh; }

/* ── NOISE TEXTURE OVERLAY ── */
body.agr-standalone-route::before {
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

.agr-shell {
  --black:     #000;
  --black-2:   #060606;
  --black-3:   #0c0c0c;
  --black-4:   #141414;
  --black-5:   #1a1a1a;
  --edge:      rgba(255,255,255,.055);
  --edge-2:    rgba(255,255,255,.11);
  --edge-3:    rgba(255,255,255,.18);
  --white:     #fff;
  --text:      #d8d8d8;
  --text-2:    #777;
  --text-3:    #3a3a3a;
  --lime:      #b0ff00;
  --lime-2:    #c8ff1a;
  --lime-dim:  rgba(176,255,0,.08);
  --lime-dim2: rgba(176,255,0,.14);
  --lime-edge: rgba(176,255,0,.28);
  --lime-glow: rgba(176,255,0,.12);
  --green:     #00e57a;
  --green-dim: rgba(0,229,122,.08);
  --amber:     #ffb800;
  --amber-dim: rgba(255,184,0,.08);
  --red:       #ff3b3b;
  --red-dim:   rgba(255,59,59,.08);
  --blue:      #4da6ff;
  --blue-dim:  rgba(77,166,255,.08);
  --purple:    #b57bff;
  --r:    12px;
  --r-sm: 7px;
  --r-lg: 16px;
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════
   PM SHELL — SIDEBAR + LAYOUT
   ══════════════════════════════════════════════════ */
.agr-shell--pm {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
  width: 100%;
}

.agr-sidebar {
  background: var(--black-2);
  border-right: 1px solid var(--edge);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background-image: linear-gradient(180deg, rgba(176,255,0,.025) 0%, transparent 40%);
}

.agr-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 20px;
}
.agr-logo__mark {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.agr-logo__dot { color: var(--lime); }
.agr-logo__sub {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 5px;
}
.agr-logo--inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  margin: 0;
}
.agr-logo--inline .agr-logo__mark { font-size: 20px; }
.agr-logo__sep { color: var(--edge-2); font-size: 16px; }
.agr-logo__tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.agr-nav { padding: 0 10px; flex: 1; }
.agr-nav__group { margin-bottom: 6px; }
.agr-nav__label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px;
  margin-bottom: 4px;
  display: block;
}
.agr-nav__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  border: 1px solid transparent;
  text-decoration: none;
  user-select: none;
  position: relative;
}
.agr-nav__item:hover {
  background: var(--black-4);
  color: var(--white);
  border-color: var(--edge);
}
.agr-nav__item--active {
  background: var(--lime-dim);
  border-color: var(--lime-edge);
  color: var(--lime);
  box-shadow: inset 0 0 20px var(--lime-glow), 0 0 0 1px var(--lime-edge);
}
.agr-nav__item--active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background: var(--lime);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--lime);
}
.agr-nav__icon { font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }

.agr-sidebar__bottom {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agr-user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: var(--black-4);
  border: 1px solid var(--edge);
}
.agr-user-card__av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--black);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(176,255,0,.3);
}
.agr-user-card__name { font-size: 12px; font-weight: 600; color: var(--white); }
.agr-user-card__role {
  font-size: 10px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  letter-spacing: .04em;
}
.agr-user-mini { display: flex; align-items: center; gap: 9px; }
.agr-user-mini__av {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--black);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(176,255,0,.3);
}
.agr-user-mini__name { font-size: 13px; font-weight: 600; color: var(--white); }
.agr-user-mini__role {
  font-size: 10px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
}
.agr-logout {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge);
  transition: all .18s;
  display: inline-block;
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em;
}
.agr-logout:hover {
  color: var(--white);
  border-color: var(--edge-2);
  background: var(--black-4);
}

/* ── MAIN WRAP / TOPBAR ── */
.agr-main-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  background: var(--black);
}
.agr-topbar {
  padding: 15px 28px;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6,6,6,.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.agr-topbar__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}
.agr-topbar__title span { color: var(--lime); }
.agr-topbar__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.agr-main { padding: 24px 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.agr-pm-view { display: none; flex-direction: column; gap: 22px; }
.agr-pm-view--active { display: flex; }

.agr-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--black-2);
}
.agr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.agr-table th,
.agr-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}
.agr-table th {
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
}
.agr-table tr:last-child td { border-bottom: none; }
.agr-table-muted { margin-top: 3px; color: var(--text-3); font-family: 'DM Mono', monospace; font-size: 10px; }
.agr-table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.agr-brand-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.agr-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.agr-history-item { padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--black-3); }
.agr-history-meta { color: var(--text-3); font-family: 'DM Mono', monospace; font-size: 9px; margin-bottom: 4px; }
.agr-history-main { color: var(--text); font-size: 12px; }
.agr-history-note { color: var(--text-2); font-size: 12px; margin-top: 5px; line-height: 1.5; }

/* ══════════════════════════════════════════════════
   BUTTONS — PREMIUM
   ══════════════════════════════════════════════════ */
.agr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  border: 1px solid transparent;
  font-family: 'Syne', sans-serif;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.agr-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.agr-btn--lime {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
  box-shadow: 0 0 20px rgba(176,255,0,.2), 0 2px 8px rgba(0,0,0,.4);
}
.agr-btn--lime:hover {
  background: var(--lime-2);
  box-shadow: 0 0 28px rgba(176,255,0,.35), 0 4px 12px rgba(0,0,0,.4);
  transform: translateY(-1px);
}
.agr-btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text-2);
  border-color: var(--edge-2);
  backdrop-filter: blur(8px);
}
.agr-btn--ghost:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: var(--edge-3);
}
.agr-btn--sm { padding: 5px 11px; font-size: 11px; }
.agr-btn--danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255,59,59,.25);
}
.agr-btn--danger:hover {
  background: rgba(255,59,59,.15);
  box-shadow: 0 0 16px rgba(255,59,59,.15);
}

/* ══════════════════════════════════════════════════
   KPI CARDS — PREMIUM
   ══════════════════════════════════════════════════ */
.agr-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.agr-kpi {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.agr-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kc, var(--lime)), transparent);
  opacity: .6;
}
.agr-kpi::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--kc, var(--lime)) 0%, transparent 70%);
  opacity: .04;
  pointer-events: none;
}
.agr-kpi:hover {
  border-color: var(--edge-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px var(--edge-2);
}
.agr-kpi--lime  { --kc: var(--lime); }
.agr-kpi--blue  { --kc: var(--blue); }
.agr-kpi--amber { --kc: var(--amber); }
.agr-kpi--red   { --kc: var(--red); }
.agr-kpi--loading { opacity: .45; }
.agr-kpi__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.agr-kpi__val {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.04em;
}
.agr-kpi__note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  margin-top: 6px;
}
.agr-kpi__note--up   { color: var(--green); }
.agr-kpi__note--down { color: var(--red); }

/* ══════════════════════════════════════════════════
   SECTION HEADER & FILTERS
   ══════════════════════════════════════════════════ */
.agr-sec-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.agr-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.agr-fbar {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10px;
}
.agr-fc {
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid var(--edge);
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  cursor: pointer;
  transition: all .18s;
  color: var(--text-3);
  background: transparent;
  letter-spacing: .05em;
}
.agr-fc:hover,
.agr-fc--active {
  border-color: var(--lime-edge);
  color: var(--lime);
  background: var(--lime-dim);
  box-shadow: 0 0 12px var(--lime-glow);
}
.agr-search {
  background: var(--black-3);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  outline: none;
  width: 175px;
  transition: border-color .18s, box-shadow .18s;
}
.agr-search:focus {
  border-color: var(--lime-edge);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.agr-search::placeholder { color: var(--text-3); }

/* ══════════════════════════════════════════════════
   PROJECT LIST — PREMIUM
   ══════════════════════════════════════════════════ */
.agr-project-list { display: flex; flex-direction: column; gap: 10px; }

.agr-project-row {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s;
}
.agr-project-row:hover {
  border-color: var(--edge-2);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.agr-project-row--open {
  border-color: var(--lime-edge);
  box-shadow: 0 0 0 1px var(--lime-edge), 0 8px 32px rgba(176,255,0,.05);
}

.agr-project-hd {
  display: grid;
  grid-template-columns: 34px 1fr 140px 130px 118px 36px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
}
.agr-proj-av {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--black-4);
  border: 1px solid var(--lime-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--lime);
  flex-shrink: 0;
  box-shadow: inset 0 0 12px var(--lime-dim);
}
.agr-proj-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.01em;
}
.agr-proj-svc {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  margin-top: 2px;
}
.agr-prog-wrap { display: flex; flex-direction: column; gap: 5px; }
.agr-prog-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
}
.agr-prog-bar {
  height: 3px;
  background: var(--black-5);
  border-radius: 99px;
  overflow: hidden;
}
.agr-prog-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-2) 100%);
  transition: width .7s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 6px rgba(176,255,0,.4);
}
.agr-prog-fill--green {
  background: linear-gradient(90deg, var(--green) 0%, #00ffaa 100%);
  box-shadow: 0 0 6px rgba(0,229,122,.4);
}
.agr-prog-fill--red {
  background: var(--red);
  box-shadow: 0 0 6px rgba(255,59,59,.4);
}
.agr-proj-cycle {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}

/* STATUS PILLS */
.agr-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  border: 1px solid;
  letter-spacing: .04em;
}
.agr-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}
.agr-pill--active        { background: var(--green-dim);            color: var(--green);  border-color: rgba(0,229,122,.25); }
.agr-pill--in_review,
.agr-pill--review        { background: rgba(181,123,255,.08);        color: var(--purple); border-color: rgba(181,123,255,.25); }
.agr-pill--pending       { background: var(--amber-dim);            color: var(--amber);  border-color: rgba(255,184,0,.25); }
.agr-pill--blocked       { background: var(--red-dim);              color: var(--red);    border-color: rgba(255,59,59,.25); }
.agr-pill--done          { background: var(--blue-dim);             color: var(--blue);   border-color: rgba(77,166,255,.25); }
.agr-pill--client_review { background: var(--blue-dim);             color: var(--blue);   border-color: rgba(77,166,255,.25); }

.agr-chev {
  color: var(--text-3);
  font-size: 11px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), color .2s;
  width: 18px;
  text-align: center;
}
.agr-project-row--open .agr-chev {
  transform: rotate(180deg);
  color: var(--lime);
}

/* ══════════════════════════════════════════════════
   MILESTONES PANEL — PREMIUM
   ══════════════════════════════════════════════════ */
.agr-ms-panel {
  border-top: 1px solid var(--edge);
  padding: 18px 18px 18px 62px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
}
.agr-project-row--open .agr-ms-panel { display: flex; }
.agr-ms-panel__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.agr-ms-panel__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.agr-timeline { position: relative; display: flex; flex-direction: column; }
.agr-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime-edge), var(--edge), transparent);
}
.agr-ms {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 13px;
  align-items: flex-start;
  padding: 10px 0;
  position: relative;
}
.agr-ms__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  z-index: 1;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all .22s;
}
.agr-ms__dot--done    { background: var(--green-dim); border-color: rgba(0,229,122,.3); color: var(--green); }
.agr-ms__dot--active  {
  background: var(--lime-dim);
  border-color: var(--lime-edge);
  color: var(--lime);
  box-shadow: 0 0 14px rgba(176,255,0,.25), inset 0 0 8px var(--lime-dim);
  animation: agr-dot-pulse 2.5s ease-in-out infinite;
}
.agr-ms__dot--pending { background: var(--black-4); border-color: var(--edge-2); color: var(--text-3); }
.agr-ms__dot--blocked { background: var(--red-dim); border-color: rgba(255,59,59,.3); color: var(--red); }
.agr-ms__dot--in_review { background: rgba(181,123,255,.1); border-color: rgba(181,123,255,.3); color: var(--purple); }
.agr-ms__dot--client_review { background: var(--blue-dim); border-color: rgba(77,166,255,.3); color: var(--blue); }

@keyframes agr-dot-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(176,255,0,.2); }
  50%      { box-shadow: 0 0 22px rgba(176,255,0,.4), 0 0 40px rgba(176,255,0,.1); }
}

.agr-ms__body { padding-top: 2px; }
.agr-ms__name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; letter-spacing: -.01em; }
.agr-ms__name--done { text-decoration: line-through; color: var(--text-3); font-weight: 400; }
.agr-ms__desc { font-size: 11px; color: var(--text-3); line-height: 1.55; margin-bottom: 6px; }
.agr-ms__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.agr-tag {
  font-size: 9px;
  font-family: 'DM Mono', monospace;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--black-4);
  color: var(--text-3);
  border: 1px solid var(--edge);
  letter-spacing: .05em;
}
.agr-tag--lime  { background: var(--lime-dim);  color: var(--lime);  border-color: var(--lime-edge); }
.agr-tag--green { background: var(--green-dim); color: var(--green); border-color: rgba(0,229,122,.2); }
.agr-tag--blue  { background: var(--blue-dim);  color: var(--blue);  border-color: rgba(77,166,255,.2); }
.agr-tag--red   { background: var(--red-dim);   color: var(--red);   border-color: rgba(255,59,59,.2); }
.agr-ms__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-top: 2px;
  min-width: 190px;
}
.agr-ms__date { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-3); }
.agr-ms__date--overdue { color: var(--red); }
.agr-ms__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.agr-ms__st-btn {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--text-3);
  font-size: 9px;
  font-family: 'DM Mono', monospace;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: .04em;
}
.agr-ms__st-btn:hover {
  border-color: var(--lime-edge);
  color: var(--lime);
  background: var(--lime-dim);
  box-shadow: 0 0 10px var(--lime-glow);
}
.agr-ms__del-btn {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--text-3);
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .18s;
}
.agr-ms__del-btn:hover {
  border-color: rgba(255,59,59,.4);
  color: var(--red);
  background: var(--red-dim);
}

/* ══════════════════════════════════════════════════
   CLIENT PANEL — PREMIUM
   ══════════════════════════════════════════════════ */
.agr-shell--client {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 36px 80px;
  width: 100%;
  min-height: 100vh;
}
.agr-client-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.agr-client-hd__right { display: flex; align-items: center; gap: 14px; }

.agr-welcome { margin-bottom: 32px; }
.agr-welcome__eye {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.agr-welcome__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -.04em;
  margin-bottom: 10px;
}
.agr-welcome__name {
  color: var(--lime);
  font-style: normal;
  text-shadow: 0 0 40px rgba(176,255,0,.2);
}
.agr-welcome__sub {
  font-size: 14px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.65;
}

/* SUMMARY CARDS */
.agr-sum-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.agr-sum-card {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .22s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .22s;
}
.agr-sum-card:hover {
  border-color: var(--edge-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.agr-sum-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc, var(--lime)), transparent);
  opacity: .5;
}
.agr-sum-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--sc, var(--lime)) 0%, transparent 70%);
  opacity: .04;
  pointer-events: none;
}
.agr-sum-card--lime  { --sc: var(--lime); }
.agr-sum-card--amber { --sc: var(--amber); }
.agr-sum-card--loading { opacity: .45; }
.agr-sum-card__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.agr-sum-card__val {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 5px;
}
.agr-sum-card__note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
}
.agr-sum-card__note--green { color: var(--green); }
.agr-sum-card__note--amber { color: var(--amber); }

/* ALERT */
.agr-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(176,255,0,.04);
  border: 1px solid var(--lime-edge);
  border-left: 3px solid var(--lime);
  border-radius: var(--r);
  padding: 15px 18px;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(176,255,0,.05);
}
.agr-alert__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.agr-alert__title { font-size: 13px; font-weight: 700; color: var(--lime); margin-bottom: 3px; }
.agr-alert__desc  { font-size: 12px; color: var(--text-2); }

/* TABS */
.agr-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.agr-tab {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--edge-2);
  background: var(--black-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  color: var(--text-2);
}
.agr-tab:hover {
  border-color: var(--lime-edge);
  color: var(--lime);
  background: var(--lime-dim);
}
.agr-tab--active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--black);
  box-shadow: 0 0 16px rgba(176,255,0,.25);
}
.agr-svc-block { display: none; }
.agr-svc-block--active { display: block; }

/* ORDER HEADER */
.agr-order-hd {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.agr-order-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lime-dim);
  border: 1px solid var(--lime-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--lime-glow);
}
.agr-order-info { flex: 1; min-width: 180px; }
.agr-order-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  letter-spacing: -.02em;
}
.agr-order-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.agr-order-stats { display: flex; gap: 14px; align-items: center; }
.agr-o-stat { text-align: center; }
.agr-o-val { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -.03em; }
.agr-o-lbl { font-size: 9px; color: var(--text-3); font-family: 'DM Mono', monospace; margin-top: 2px; }
.agr-o-sep { width: 1px; height: 34px; background: var(--edge-2); }

/* PROGRESS BLOCK */
.agr-gp-block {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.agr-gp-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.agr-gp-title { font-size: 12px; font-weight: 600; color: var(--white); }
.agr-gp-pct { font-size: 22px; font-weight: 800; color: var(--lime); letter-spacing: -.03em; text-shadow: 0 0 20px rgba(176,255,0,.3); }
.agr-gp-bar {
  height: 5px;
  background: var(--black-5);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 11px;
}
.agr-gp-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-2) 100%);
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 8px rgba(176,255,0,.5);
}
.agr-gp-phases { display: flex; gap: 5px; flex-wrap: wrap; }
.agr-gp-ph {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--black-4);
  color: var(--text-3);
  border: 1px solid var(--edge);
}
.agr-gp-ph--done { background: var(--green-dim); color: var(--green); border-color: rgba(0,229,122,.2); }
.agr-gp-ph--curr { background: var(--lime-dim); color: var(--lime); border-color: var(--lime-edge); font-weight: 700; box-shadow: 0 0 8px var(--lime-glow); }

/* TIMELINE BLOCK */
.agr-tl-block {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.agr-tl-hd {
  padding: 15px 22px;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agr-tl-hd__title { font-size: 13px; font-weight: 700; color: var(--white); }
.agr-tl-hd__sub { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-3); }

/* CLIENT MILESTONES */
.agr-cl-ms {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 0;
  padding: 15px 22px;
  border-bottom: 1px solid var(--edge);
  transition: background .18s;
  position: relative;
}
.agr-cl-ms:last-child { border-bottom: none; }
.agr-cl-ms:hover { background: rgba(255,255,255,.018); }
.agr-cl-ms:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 37px;
  top: 50px;
  bottom: -15px;
  width: 1px;
  background: linear-gradient(to bottom, var(--edge-2), transparent);
  z-index: 0;
}
.agr-cl-ms__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.agr-cl-ms__num {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--text-3);
}
.agr-cl-ms__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid transparent;
  transition: all .22s;
}
.agr-cl-ms__dot--done    { background: var(--green-dim); border-color: rgba(0,229,122,.3); color: var(--green); }
.agr-cl-ms__dot--active  {
  background: var(--lime-dim);
  border-color: var(--lime-edge);
  color: var(--lime);
  box-shadow: 0 0 16px rgba(176,255,0,.2);
  animation: agr-dot-pulse 2.5s ease-in-out infinite;
}
.agr-cl-ms__dot--pending { background: var(--black-4); border-color: var(--edge-2); color: var(--text-3); }
.agr-cl-ms__dot--in_review { background: rgba(181,123,255,.1); border-color: rgba(181,123,255,.3); color: var(--purple); }
.agr-cl-ms__dot--blocked { background: var(--red-dim); border-color: rgba(255,59,59,.3); color: var(--red); }
.agr-cl-ms__dot--client_review {
  background: var(--blue-dim);
  border-color: rgba(77,166,255,.3);
  color: var(--blue);
  animation: agr-pulse-blue 2s ease-in-out infinite;
}
@keyframes agr-pulse-blue {
  0%,100% { box-shadow: 0 0 0 0 rgba(77,166,255,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(77,166,255,0); }
}

.agr-cl-ms__body { padding-left: 14px; }
.agr-cl-ms__name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; letter-spacing: -.01em; }
.agr-cl-ms__name--done { text-decoration: line-through; color: var(--text-3); font-weight: 400; }
.agr-cl-ms__name--action { color: var(--blue); }
.agr-cl-ms__desc { font-size: 12px; color: var(--text-2); line-height: 1.55; margin-bottom: 6px; }
.agr-cl-ms__chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.agr-chip {
  font-size: 9px;
  font-family: 'DM Mono', monospace;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--black-4);
  color: var(--text-3);
  border: 1px solid var(--edge);
  letter-spacing: .05em;
}
.agr-chip--green  { background: var(--green-dim); color: var(--green); border-color: rgba(0,229,122,.2); }
.agr-chip--amber  { background: var(--amber-dim); color: var(--amber); border-color: rgba(255,184,0,.2); }
.agr-chip--blue   { background: var(--blue-dim);  color: var(--blue);  border-color: rgba(77,166,255,.2); }
.agr-chip--purple { background: rgba(181,123,255,.1); color: var(--purple); border-color: rgba(181,123,255,.2); }
.agr-chip--lime   { background: var(--lime-dim);  color: var(--lime);  border-color: var(--lime-edge); }

.agr-cl-ms__act-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.agr-approve-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  font-family: 'Syne', sans-serif;
  letter-spacing: .02em;
  box-shadow: 0 0 18px rgba(176,255,0,.2);
}
.agr-approve-btn:hover {
  background: var(--lime-2);
  box-shadow: 0 0 28px rgba(176,255,0,.4);
  transform: translateY(-1px);
}
.agr-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  font-size: 11px;
  cursor: pointer;
  transition: all .18s;
  font-family: 'Syne', sans-serif;
}
.agr-return-btn:hover {
  border-color: rgba(255,59,59,.4);
  color: var(--red);
  background: var(--red-dim);
}
.agr-cl-ms__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 130px;
}
.agr-cl-ms__date { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-3); }
.agr-cl-ms__date--overdue { color: var(--red); }
.agr-cl-ms__st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
  border: 1px solid;
  letter-spacing: .04em;
}
.agr-cl-ms__st--done         { background: var(--green-dim);          color: var(--green);  border-color: rgba(0,229,122,.25); }
.agr-cl-ms__st--active       { background: var(--lime-dim);           color: var(--lime);   border-color: var(--lime-edge); }
.agr-cl-ms__st--pending      { background: var(--black-4);            color: var(--text-3); border-color: var(--edge-2); }
.agr-cl-ms__st--in_review    { background: rgba(181,123,255,.1);      color: var(--purple); border-color: rgba(181,123,255,.2); }
.agr-cl-ms__st--blocked      { background: var(--red-dim);            color: var(--red);    border-color: rgba(255,59,59,.2); }
.agr-cl-ms__st--client_review{ background: var(--blue-dim);           color: var(--blue);   border-color: rgba(77,166,255,.2); }

/* MESSAGE BOX */
.agr-msg-box {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 16px;
}
.agr-msg-box__title { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 13px; }
.agr-msg-box__wrap { display: flex; gap: 9px; align-items: flex-end; }

/* ══════════════════════════════════════════════════
   MODALS — PREMIUM GLASSMORPHISM
   ══════════════════════════════════════════════════ */
.agr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.agr-overlay--open { opacity: 1; pointer-events: all; }
.agr-modal {
  background: linear-gradient(145deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-lg);
  padding: 28px;
  width: 440px;
  max-width: 95vw;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  transform: scale(.93) translateY(8px);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  box-shadow:
    0 32px 80px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.agr-overlay--open .agr-modal { transform: scale(1) translateY(0); }
.agr-modal__title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; letter-spacing: -.02em; }
.agr-modal__sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.agr-modal__footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
#eproj-delete { margin-right: auto; }

/* FORM ELEMENTS */
.agr-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.agr-form-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agr-form-row--2col > div { display: flex; flex-direction: column; gap: 6px; }
.agr-label {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  letter-spacing: .07em;
}
.agr-input {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  width: 100%;
}
.agr-input:focus {
  border-color: var(--lime-edge);
  background: rgba(176,255,0,.03);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.agr-input::placeholder { color: var(--text-3); }
.agr-textarea {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  width: 100%;
  resize: vertical;
  min-height: 68px;
}
.agr-textarea:focus {
  border-color: var(--lime-edge);
  background: rgba(176,255,0,.03);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.agr-textarea::placeholder { color: var(--text-3); }

.agr-status-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 15px;
}
.agr-status-opt {
  padding: 10px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge);
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,.02);
  color: var(--text-2);
}
.agr-status-opt:hover,
.agr-status-opt--selected {
  border-color: var(--lime-edge);
  background: var(--lime-dim);
  color: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
}

/* ══════════════════════════════════════════════════
   TOAST — PREMIUM
   ══════════════════════════════════════════════════ */
.agr-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--lime-edge);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 12px;
  box-shadow:
    0 12px 40px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.04),
    0 0 20px rgba(176,255,0,.06);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.22,1,.36,1);
  z-index: 10000;
  max-width: 340px;
}
.agr-toast--show { transform: translateY(0); opacity: 1; }
.agr-toast__icon { font-size: 14px; color: var(--lime); }

/* ══════════════════════════════════════════════════
   STATES
   ══════════════════════════════════════════════════ */
.agr-loading-state {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  padding: 48px;
  letter-spacing: .1em;
  animation: agr-pulse 1.4s ease-in-out infinite;
}
@keyframes agr-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.agr-empty {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  padding: 48px;
  border: 1px dashed var(--edge);
  border-radius: var(--r-lg);
}
.agr-login-required,
.agr-no-access {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  font-family: 'Syne', sans-serif;
}
.agr-login-required p,
.agr-no-access p { color: var(--text-2); margin-bottom: 18px; }
.agr-login-link {
  display: inline-block;
  padding: 10px 22px;
  background: var(--lime);
  color: var(--black);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 20px rgba(176,255,0,.2);
}
.agr-login-link:hover {
  background: var(--lime-2);
  box-shadow: 0 0 30px rgba(176,255,0,.35);
  transform: translateY(-1px);
}

/* AUTH SCREEN */
.agr-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(176,255,0,.05) 0%, transparent 60%);
}
.agr-auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, var(--black-3) 0%, var(--black-2) 100%);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.agr-auth-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}
.agr-auth-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -.03em;
}
.agr-auth-copy { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }
.agr-auth-error {
  background: var(--red-dim);
  border: 1px solid rgba(255,59,59,.3);
  color: var(--red);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 12px;
  margin-bottom: 18px;
}
.agr-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  margin: 0 0 16px;
}
.agr-auth-check input { width: 14px; height: 14px; accent-color: var(--lime); }
.agr-auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.agr-auth-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 12px;
  text-decoration: none;
  transition: color .18s;
}
.agr-auth-link:hover { color: var(--lime); }
.agr-auth-link--boxed {
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  color: var(--white);
  transition: all .2s;
}
.agr-auth-link--boxed:hover {
  border-color: var(--lime-edge);
  background: var(--lime-dim);
  color: var(--lime);
}

/* ══════════════════════════════════════════════════
   ANIMATIONS — PREMIUM ENTRANCE
   ══════════════════════════════════════════════════ */
@keyframes agr-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes agr-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.agr-kpi { animation: agr-fadeUp .4s cubic-bezier(.22,1,.36,1) both; }
.agr-kpi:nth-child(1) { animation-delay: .04s; }
.agr-kpi:nth-child(2) { animation-delay: .09s; }
.agr-kpi:nth-child(3) { animation-delay: .14s; }
.agr-kpi:nth-child(4) { animation-delay: .19s; }

.agr-project-row { animation: agr-fadeUp .4s cubic-bezier(.22,1,.36,1) both; }

.agr-sum-card { animation: agr-fadeUp .4s cubic-bezier(.22,1,.36,1) both; }
.agr-sum-card:nth-child(1) { animation-delay: .05s; }
.agr-sum-card:nth-child(2) { animation-delay: .11s; }
.agr-sum-card:nth-child(3) { animation-delay: .17s; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .agr-shell--pm { grid-template-columns: 1fr; }
  .agr-sidebar { display: none; }
  .agr-kpi-row { grid-template-columns: 1fr 1fr; }
  .agr-project-hd { grid-template-columns: 30px 1fr 96px 36px; }
  .agr-project-hd > *:nth-child(4),
  .agr-project-hd > *:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
  .agr-shell--pm { display: block; }
  .agr-shell--client { padding-left: 16px; padding-right: 16px; }
  .agr-topbar { padding: 12px 14px; flex-wrap: wrap; align-items: flex-start; }
  .agr-topbar__actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .agr-topbar__actions .agr-btn { flex: 1 1 auto; justify-content: center; }
  .agr-main { padding: 18px 14px; }
  .agr-sec-hd { align-items: stretch; }
  .agr-fbar { margin-left: 0; width: 100%; }
  .agr-search { width: 100%; }
  .agr-welcome__title { font-size: 32px; }
  .agr-sum-row { grid-template-columns: 1fr; }
  .agr-kpi-row { grid-template-columns: 1fr; }
  .agr-project-hd { grid-template-columns: 30px 1fr 30px; padding: 12px 14px; }
  .agr-project-hd > *:nth-child(3),
  .agr-project-hd > *:nth-child(4),
  .agr-project-hd > *:nth-child(5) { display: none; }
  .agr-ms-panel { padding: 16px 14px; }
  .agr-ms-panel__hd { align-items: flex-start; gap: 8px; flex-direction: column; }
  .agr-ms { grid-template-columns: 26px 1fr; }
  .agr-ms__meta { grid-column: 2; align-items: flex-start; min-width: 0; }
  .agr-order-stats { width: 100%; justify-content: space-between; }
  .agr-form-row--2col,
  .agr-status-opts { grid-template-columns: 1fr; }
  .agr-modal { padding: 20px; }
  .agr-cl-ms { grid-template-columns: 44px 1fr; }
  .agr-cl-ms__right { display: none; }
  .agr-msg-box__wrap { flex-direction: column; align-items: stretch; }
  .agr-msg-box__wrap .agr-btn { justify-content: center; }
}
