/* ═══════════════════════════════════════════════════════════════════
   FenceFinder Contractor Portal — assets/css/portal.css
   Uses theme CSS variables from theme.css
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset for portal pages ──────────────────────────────────────── */
.ffp-portal-body {
  margin: 0;
  padding: 0;
  background: #f0f4ee;
  font-family: var(--ff-font-body);
  color: var(--ff-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.ffp-portal-body .site-header,
.ffp-portal-body .site-footer { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.ffp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.ffp-sidebar {
  background: var(--ff-forest-deep);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* Brand */
.ffp-sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ffp-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ffp-brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--ff-lime), var(--ff-green-hi));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.ffp-brand-text {
  font-family: var(--ff-font-display);
  font-size: 1rem; font-weight: 800;
  color: var(--ff-white);
}
.ffp-brand-text span { color: var(--ff-lime); }

/* Profile block */
.ffp-sidebar-profile {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.ffp-avatar {
  width: 52px; height: 52px; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--ff-lime), var(--ff-green-hi));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-font-display);
  font-size: 1.3rem; font-weight: 800;
  color: var(--ff-forest);
}
.ffp-sidebar-name {
  font-weight: 700; font-size: 0.9rem;
  color: var(--ff-white);
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ffp-status-badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 10px; border-radius: 20px;
}
.ffp-status-active    { background: rgba(124,200,76,0.18); color: var(--ff-lime); }
.ffp-status-pending   { background: rgba(246,165,13,0.18); color: #f6a50d; }
.ffp-status-suspended { background: rgba(196,98,45,0.18);  color: var(--ff-rust); }

/* Navigation */
.ffp-nav { padding: 14px 12px; flex: 1; }
.ffp-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--ff-radius-xs);
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 4px;
  position: relative;
}
.ffp-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ffp-nav-item.active {
  background: rgba(124,200,76,0.12);
  color: var(--ff-lime);
}
.ffp-nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.ffp-nav-badge {
  margin-left: auto;
  background: var(--ff-rust);
  color: #fff;
  font-size: 0.68rem; font-weight: 800;
  padding: 2px 7px; border-radius: 10px;
  min-width: 20px; text-align: center;
}

/* Sidebar footer */
.ffp-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ffp-pause-btn {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ff-radius-xs);
  color: rgba(255,255,255,0.7);
  font-family: var(--ff-font-body);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 10px;
}
.ffp-pause-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ffp-pause-btn.is-paused {
  background: rgba(196,98,45,0.15);
  border-color: rgba(196,98,45,0.3);
  color: #e8834a;
}
.ffp-pause-btn.is-paused:hover { background: rgba(196,98,45,0.25); }
.ffp-pause-icon { font-size: 0.85rem; }
.ffp-logout-link {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: color 0.15s;
}
.ffp-logout-link:hover { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════════════════
   MAIN AREA
   ═══════════════════════════════════════════════════════════════════ */
.ffp-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f0f4ee;
}

/* Top bar */
.ffp-topbar {
  background: var(--ff-white);
  border-bottom: 1px solid var(--ff-border);
  padding: 0 28px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
}
.ffp-topbar-title {
  font-family: var(--ff-font-display);
  font-size: 1rem; font-weight: 800; color: var(--ff-forest);
}
.ffp-topbar-right { display: flex; align-items: center; gap: 14px; }
.ffp-topbar-paused {
  background: rgba(196,98,45,0.10);
  color: var(--ff-rust);
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.ffp-topbar-user {
  font-size: 0.78rem; color: var(--ff-text-light);
}

/* Content area */
.ffp-content { padding: 24px 28px; flex: 1; }

/* ═══════════════════════════════════════════════════════════════════
   LEADS TAB
   ═══════════════════════════════════════════════════════════════════ */
.ffp-leads-toolbar {
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.ffp-filter-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ffp-filter-tab {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-border);
  color: var(--ff-text-mid);
  padding: 7px 14px;
  border-radius: 20px;
  font-family: var(--ff-font-body);
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.ffp-filter-tab:hover { border-color: var(--ff-forest); color: var(--ff-forest); }
.ffp-filter-tab.active {
  background: var(--ff-forest);
  border-color: var(--ff-forest);
  color: var(--ff-white);
}
.ffp-filter-count {
  background: var(--ff-rust);
  color: #fff;
  font-size: 0.65rem; font-weight: 800;
  padding: 1px 6px; border-radius: 10px;
}

/* Lead grid */
.ffp-leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.ffp-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ff-text-light);
  font-size: 0.9rem;
}
.ffp-empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
}
.ffp-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.ffp-empty-title {
  font-family: var(--ff-font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--ff-forest); margin-bottom: 8px;
}
.ffp-empty-sub { color: var(--ff-text-light); font-size: 0.875rem; }

/* Lead card */
.ffp-lead-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ffp-lead-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ff-border);
  transition: background 0.2s;
}
.ffp-lead-card:hover { box-shadow: var(--ff-shadow-lg); transform: translateY(-3px); }
.ffp-lead-card[data-status="new"]::before       { background: var(--ff-rust); }
.ffp-lead-card[data-status="contacted"]::before  { background: #3b82f6; }
.ffp-lead-card[data-status="quoted"]::before     { background: var(--ff-lime); }
.ffp-lead-card[data-status="won"]::before        { background: var(--ff-green-hi); }
.ffp-lead-card[data-status="lost"]::before       { background: #9ca3af; }

.ffp-lead-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; gap: 10px;
}
.ffp-lead-name {
  font-family: var(--ff-font-display);
  font-size: 0.95rem; font-weight: 800; color: var(--ff-forest);
  margin-bottom: 3px;
}
.ffp-lead-sub { font-size: 0.75rem; color: var(--ff-text-light); }
.ffp-lead-status-badge {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 9px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.badge-new       { background: rgba(196,98,45,0.12); color: var(--ff-rust); }
.badge-contacted { background: rgba(59,130,246,0.12); color: #3b82f6; }
.badge-quoted    { background: rgba(124,200,76,0.15); color: var(--ff-green); }
.badge-won       { background: rgba(56,161,105,0.15); color: var(--ff-green-hi); }
.badge-lost      { background: #f3f4f6; color: #9ca3af; }

.ffp-lead-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ffp-lead-detail  { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ff-text-mid); }
.ffp-lead-detail-icon { font-size: 0.9rem; width: 18px; flex-shrink: 0; }
.ffp-lead-btn {
  width: 100%; padding: 9px;
  background: var(--ff-forest);
  color: var(--ff-white); border: none;
  border-radius: var(--ff-radius-xs);
  font-family: var(--ff-font-display);
  font-size: 0.82rem; font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}
.ffp-lead-btn:hover { background: var(--ff-forest-mid); }

/* ═══════════════════════════════════════════════════════════════════
   LEAD DETAIL DRAWER
   ═══════════════════════════════════════════════════════════════════ */
.ffp-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.ffp-drawer-overlay.open { opacity: 1; pointer-events: all; }
.ffp-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 95vw;
  background: var(--ff-white);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.ffp-drawer.open { transform: translateX(0); }
.ffp-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ff-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: var(--ff-forest-deep);
}
.ffp-drawer-title {
  font-family: var(--ff-font-display);
  font-size: 1rem; font-weight: 800; color: var(--ff-white);
  margin: 0;
}
.ffp-drawer-close {
  background: rgba(255,255,255,0.1); border: none;
  color: rgba(255,255,255,0.7);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ffp-drawer-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.ffp-drawer-body {
  flex: 1; overflow-y: auto; padding: 24px;
}

/* Drawer content */
.ffp-drawer-section { margin-bottom: 24px; }
.ffp-drawer-section-title {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ff-text-light);
  margin-bottom: 10px;
}
.ffp-drawer-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4ee;
}
.ffp-drawer-row:last-child { border-bottom: none; }
.ffp-drawer-row-label {
  font-size: 0.78rem; font-weight: 700; color: var(--ff-text-light);
  min-width: 90px; flex-shrink: 0; padding-top: 1px;
}
.ffp-drawer-row-val { font-size: 0.875rem; color: var(--ff-text); font-weight: 600; }
.ffp-drawer-contact-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--ff-radius-xs);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
  transition: background 0.15s;
}
.ffp-drawer-contact-btn.phone {
  background: var(--ff-lime-alpha-15);
  color: var(--ff-forest);
  border: 1px solid rgba(124,200,76,0.3);
}
.ffp-drawer-contact-btn.email {
  background: rgba(196,98,45,0.08);
  color: var(--ff-rust);
  border: 1px solid rgba(196,98,45,0.2);
}
.ffp-drawer-contact-btn:hover { filter: brightness(0.94); }

.ffp-drawer-status-label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--ff-text-light); text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 8px;
}
.ffp-drawer-status-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.ffp-status-chip {
  padding: 7px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
  border: 1.5px solid var(--ff-border);
  background: #f8f8f8; color: var(--ff-text-mid);
  cursor: pointer; transition: all 0.15s;
}
.ffp-status-chip:hover { border-color: var(--ff-forest); color: var(--ff-forest); }
.ffp-status-chip.active-chip {
  background: var(--ff-forest); color: var(--ff-white); border-color: var(--ff-forest);
}
.ffp-notes-textarea {
  width: 100%; min-height: 90px; resize: vertical;
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-xs);
  padding: 10px 12px;
  font-family: var(--ff-font-body);
  font-size: 0.875rem; color: var(--ff-text);
  background: var(--ff-sand-light); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.ffp-notes-textarea:focus {
  border-color: var(--ff-lime);
  box-shadow: 0 0 0 3px rgba(124,200,76,0.15);
  background: #fff;
}
.ffp-drawer-save {
  width: 100%; padding: 11px;
  background: var(--ff-forest); color: var(--ff-white); border: none;
  border-radius: var(--ff-radius-xs);
  font-family: var(--ff-font-display); font-size: 0.875rem; font-weight: 800;
  cursor: pointer; transition: background 0.15s; margin-top: 12px;
}
.ffp-drawer-save:hover { background: var(--ff-forest-mid); }
.ffp-drawer-saved { font-size: 0.78rem; color: var(--ff-green-hi); margin-top: 8px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   OVERVIEW TAB
   ═══════════════════════════════════════════════════════════════════ */
.ffp-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.ffp-stat-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  padding: 18px 16px; text-align: center;
  transition: box-shadow 0.15s;
}
.ffp-stat-card:hover { box-shadow: var(--ff-shadow); }
.ffp-stat-card.ffp-stat-accent {
  background: var(--ff-forest);
  border-color: var(--ff-forest);
}
.ffp-stat-card.ffp-stat-accent .ffp-stat-num { color: var(--ff-lime); }
.ffp-stat-card.ffp-stat-accent .ffp-stat-label { color: rgba(255,255,255,0.5); }
.ffp-stat-num {
  font-family: var(--ff-font-display);
  font-size: 1.8rem; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.ffp-stat-label { font-size: 0.72rem; color: var(--ff-text-light); text-transform: uppercase; letter-spacing: 0.07em; }
.ffp-col-new     { color: var(--ff-rust); }
.ffp-col-contact { color: #3b82f6; }
.ffp-col-quoted  { color: var(--ff-green); }
.ffp-col-won     { color: var(--ff-green-hi); }
.ffp-col-lost    { color: #9ca3af; }

.ffp-overview-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.ffp-overview-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  padding: 20px;
}
.ffp-oc-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ff-text-light); margin-bottom: 8px;
}
.ffp-oc-value {
  font-family: var(--ff-font-display); font-size: 1.5rem;
  font-weight: 800; color: var(--ff-forest); margin-bottom: 4px;
}
.ffp-oc-sub { font-size: 0.78rem; color: var(--ff-text-light); margin-bottom: 12px; }
.ffp-progress-bar {
  height: 6px; background: #eef2ec; border-radius: 3px; overflow: hidden;
}
.ffp-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--ff-lime), var(--ff-green-hi));
  border-radius: 3px; transition: width 0.6s ease;
}
.ffp-star { color: #ddd; font-size: 1.2rem; }
.ffp-star.filled { color: var(--ff-star); }

.ffp-tips-box {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-left: 3px solid var(--ff-lime);
  border-radius: var(--ff-radius-sm);
  padding: 20px 24px;
}
.ffp-tips-title {
  font-family: var(--ff-font-display);
  font-size: 0.9rem; font-weight: 800; color: var(--ff-forest); margin-bottom: 12px;
}
.ffp-tips-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ffp-tips-list li {
  font-size: 0.85rem; color: var(--ff-text-mid); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.ffp-tips-list li::before {
  content: '→';
  position: absolute; left: 0; color: var(--ff-lime); font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE TAB
   ═══════════════════════════════════════════════════════════════════ */
.ffp-form-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 28px;
}
.ffp-form-card-title {
  font-family: var(--ff-font-display);
  font-size: 1rem; font-weight: 800; color: var(--ff-forest);
  margin-bottom: 4px;
}
.ffp-form-card-sub {
  font-size: 0.82rem; color: var(--ff-text-light); margin-bottom: 24px;
}
.ffp-profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px;
}
.ffp-pf { display: flex; flex-direction: column; gap: 5px; }
.ffp-pf-full { grid-column: 1 / -1; }
.ffp-pf label {
  font-size: 0.72rem; font-weight: 700; color: var(--ff-text-mid);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ffp-pf input, .ffp-pf textarea {
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-xs);
  padding: 10px 13px;
  font-size: 0.875rem; font-family: var(--ff-font-body);
  color: var(--ff-text); background: var(--ff-sand-light);
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.ffp-pf input:focus, .ffp-pf textarea:focus {
  border-color: var(--ff-lime);
  box-shadow: 0 0 0 3px rgba(124,200,76,0.16);
  background: #fff;
}
.ffp-hint { font-size: 0.72rem; color: var(--ff-text-light); }
.ffp-btn-save {
  background: var(--ff-forest); color: var(--ff-white); border: none;
  padding: 11px 28px; border-radius: var(--ff-radius-xs);
  font-family: var(--ff-font-display); font-size: 0.875rem; font-weight: 800;
  cursor: pointer; transition: background 0.15s;
}
.ffp-btn-save:hover { background: var(--ff-forest-mid); }
.ffp-form-msg {
  font-size: 0.8rem; margin-top: 10px; min-height: 20px;
}
.ffp-form-msg.ok  { color: var(--ff-green-hi); }
.ffp-form-msg.err { color: var(--ff-rust); }
.ffp-pause-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px;
  background: var(--ff-sand-light);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-xs);
}
.ffp-pause-btn + .ffp-pause-btn { width: auto; }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════════ */
.ffp-login-body {
  background: var(--ff-forest-deep);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.ffp-login-wrap {
  width: 100%; max-width: 400px;
}
.ffp-login-brand {
  text-align: center; margin-bottom: 28px;
}
.ffp-login-brand .ffp-brand-link {
  display: inline-flex; justify-content: center;
}
.ffp-login-eyebrow {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-top: 8px;
}
.ffp-login-card {
  background: var(--ff-white);
  border-radius: var(--ff-radius);
  padding: 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative; overflow: hidden;
}
.ffp-login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--ff-lime), var(--ff-green-hi));
}
.ffp-login-title {
  font-family: var(--ff-font-display);
  font-size: 1.5rem; font-weight: 800; color: var(--ff-forest);
  margin: 0 0 6px;
}
.ffp-login-sub {
  color: var(--ff-text-light); font-size: 0.875rem; margin-bottom: 24px;
}
.ffp-lf { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.ffp-lf label {
  font-size: 0.72rem; font-weight: 700; color: var(--ff-text-mid);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ffp-lf input {
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-xs);
  padding: 11px 13px;
  font-size: 0.9rem; font-family: var(--ff-font-body);
  color: var(--ff-text); background: var(--ff-sand-light); outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.ffp-lf input:focus {
  border-color: var(--ff-lime);
  box-shadow: 0 0 0 3px rgba(124,200,76,0.16);
  background: #fff;
}
.ffp-login-error {
  min-height: 20px; font-size: 0.82rem; color: var(--ff-rust);
  margin-bottom: 10px; font-weight: 600;
}
.ffp-login-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--ff-forest), var(--ff-forest-mid));
  color: var(--ff-white); border: none;
  border-radius: var(--ff-radius-xs);
  font-family: var(--ff-font-display); font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.ffp-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,42,0.3);
}
.ffp-login-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }
.ffp-login-footer {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--ff-border);
  display: flex; justify-content: center; gap: 12px;
  font-size: 0.8rem;
}
.ffp-login-footer a { color: var(--ff-text-light); text-decoration: none; }
.ffp-login-footer a:hover { color: var(--ff-forest); }
.ffp-login-back {
  text-align: center; margin-top: 20px;
}
.ffp-login-back a { color: rgba(255,255,255,0.4); font-size: 0.8rem; text-decoration: none; }
.ffp-login-back a:hover { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ffp-layout { grid-template-columns: 1fr; }
  .ffp-sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    height: auto; flex-direction: row;
    border-right: none; border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
  }
  .ffp-sidebar-brand, .ffp-sidebar-profile, .ffp-sidebar-footer { display: none; }
  .ffp-nav { display: flex; flex-direction: row; padding: 8px 12px; gap: 0; }
  .ffp-nav-item { flex: 1; flex-direction: column; text-align: center; gap: 4px; font-size: 0.68rem; padding: 8px 4px; }
  .ffp-nav-item span:not(.ffp-nav-icon):not(.ffp-nav-badge) { display: block; }
  .ffp-main { padding-bottom: 70px; }
  .ffp-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .ffp-overview-cards { grid-template-columns: 1fr; }
  .ffp-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ffp-content { padding: 16px; }
  .ffp-topbar { padding: 0 16px; }
  .ffp-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ffp-leads-grid { grid-template-columns: 1fr; }
}
