/* ── EPP Brand Variables ── */
:root {
  --navy:        #0D1B2A;
  --navy-light:  #162234;
  --navy-mid:    #1E3A5F;
  --gold:        #F5C42C;
  --gold-dark:   #D4A800;
  --white:       #FFFFFF;
  --gray:        #8A9BB0;
  --gray-light:  #E8EDF3;
  --text:        #C8D6E5;
  --success:     #2ECC71;
  --warn:        #F39C12;
  --info:        #3498DB;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── Logo ── */
.logo-circle {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.logo-circle.sm { width: 16px; height: 16px; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  vertical-align: middle;
}
.logo-text.sm { font-size: 1.1rem; }
.logo-gold { color: var(--gold); }

/* ════════════════════════
   LOGIN PAGE
════════════════════════ */
.login-body {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-card {
  width: 440px;
  min-width: 440px;
  background: var(--navy-light);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo { margin-bottom: 6px; }
.login-subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  padding-left: 30px;
}
.login-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 8px;
}
.login-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-group input {
  width: 100%;
  background: var(--navy);
  border: 1px solid #2a3f58;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group input::placeholder { color: #3a5270; }

.login-error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  color: #e74c3c;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hidden { display: none; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.full-width { width: 100%; }

.login-footer {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}
.login-footer a { color: var(--gold); }

.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #0a1520 0%, #0D1B2A 40%, #162234 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border: 1px solid rgba(245,196,44,0.08);
  border-radius: 50%;
}
.login-brand::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  border: 1px solid rgba(245,196,44,0.05);
  border-radius: 50%;
}
.brand-content { position: relative; z-index: 1; }
.brand-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.brand-content h1 .gold { color: var(--gold); }
.brand-content p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-features li {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ════════════════════════
   DASHBOARD
════════════════════════ */
.dashboard-body {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--navy-light);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  border-right: 1px solid #1e3050;
}
.sidebar-logo {
  padding: 0 24px 32px;
  border-bottom: 1px solid #1e3050;
  margin-bottom: 24px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--gray);
  transition: all 0.2s;
  cursor: pointer;
}
.nav-item:hover { background: rgba(245,196,44,0.06); color: var(--white); }
.nav-item.active { background: rgba(245,196,44,0.12); color: var(--gold); }
.nav-icon { font-size: 0.8rem; opacity: 0.7; }

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid #1e3050;
}
.sidebar-contact {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 4px;
}
.sidebar-email {
  font-size: 0.78rem;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  word-break: break-all;
}
.btn-logout {
  background: transparent;
  border: 1px solid #2a3f58;
  color: var(--gray);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--gold); color: var(--gold); }

/* Main */
.main-content {
  flex: 1;
  padding: 40px 48px;
  overflow-y: auto;
  background: var(--navy);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e3050;
}
.header-greeting {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.header-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.header-sub { color: var(--gray); font-size: 0.9rem; }

.report-badge {
  background: var(--navy-light);
  border: 1px solid #1e3050;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.gold { background: var(--gold); }

/* Sections */
.portal-section { display: none; }
.portal-section.active { display: block; }

.section-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}
.section-desc { color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.period-badge {
  background: rgba(245,196,44,0.12);
  color: var(--gold);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--navy-light);
  border: 1px solid #1e3050;
  border-radius: var(--radius);
  padding: 24px;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 12px;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 6px;
}
.stat-value.gold { color: var(--gold); }
.stat-sub { font-size: 0.78rem; color: var(--gray); }

/* Deal Cards */
.deal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.deal-card {
  background: var(--navy-light);
  border: 1px solid #1e3050;
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.deal-card:hover { border-color: rgba(245,196,44,0.3); }
.deal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.deal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.deal-location { font-size: 0.82rem; color: var(--gray); }
.deal-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Stage Bar */
.deal-stage-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.stage {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  font-size: 0;
  position: relative;
  cursor: default;
}
.stage.done { background: var(--gold); }
.stage.active { background: var(--info); }
.stage.pending { background: #2a3f58; }

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.deal-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(245,196,44,0.1);
  color: var(--gold);
  font-weight: 500;
}
.deal-tag.warn { background: rgba(243,156,18,0.12); color: var(--warn); }
.deal-tag.info { background: rgba(52,152,219,0.12); color: var(--info); }
.deal-note { font-size: 0.8rem; color: var(--gray); }

/* Campaign Grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.campaign-card {
  background: var(--navy-light);
  border: 1px solid #1e3050;
  border-radius: var(--radius);
  padding: 28px;
}
.campaign-card.highlight { border-color: rgba(245,196,44,0.25); }
.campaign-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.campaign-icon.email { background: rgba(52,152,219,0.15); color: var(--info); }
.campaign-icon.linkedin { background: rgba(10,102,194,0.2); color: #0a66c2; }
.campaign-icon.voicemail { background: rgba(46,204,113,0.15); color: var(--success); }
.campaign-icon.consult { background: rgba(245,196,44,0.15); font-size: 1.3rem; }
.campaign-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.campaign-tool { font-size: 0.78rem; color: var(--gray); margin-bottom: 20px; }
.campaign-metrics { display: flex; gap: 24px; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-val { font-size: 1.5rem; font-weight: 600; color: var(--white); }
.metric-label { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }

.info-note {
  background: rgba(52,152,219,0.08);
  border: 1px solid rgba(52,152,219,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--gray);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Pipeline Table */
.pipeline-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #1e3050;
  margin-bottom: 20px;
}
.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.pipeline-table thead {
  background: var(--navy-light);
}
.pipeline-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  white-space: nowrap;
  border-bottom: 1px solid #1e3050;
}
.pipeline-table td {
  padding: 16px;
  border-bottom: 1px solid #1a2d42;
  vertical-align: middle;
}
.pipeline-table tbody tr:last-child td { border-bottom: none; }
.pipeline-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.seller-name { font-weight: 600; white-space: nowrap; }
.value-cell { color: var(--gold); font-weight: 600; white-space: nowrap; }
.date-cell { white-space: nowrap; color: var(--gray); }
.notes-cell { font-size: 0.8rem; color: var(--gray); min-width: 200px; }

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
}
.status.done { background: rgba(46,204,113,0.15); color: var(--success); }
.status.active { background: rgba(52,152,219,0.15); color: var(--info); font-size: 1rem; }
.status.pending { background: #1e3050; color: #3a5270; }

.legend {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  color: var(--gray);
  align-items: center;
}
.legend span { display: flex; align-items: center; gap: 8px; }

/* Document Cards */
.doc-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-card {
  background: var(--navy-light);
  border: 1px solid #1e3050;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s;
}
.doc-card:hover { border-color: rgba(245,196,44,0.3); }
.doc-icon { font-size: 1.8rem; }
.doc-info { flex: 1; }
.doc-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.doc-info p { font-size: 0.82rem; color: var(--gray); }
.btn-outline {
  border: 1px solid rgba(245,196,44,0.4);
  color: var(--gold);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(245,196,44,0.08); }
.btn-outline.disabled { opacity: 0.4; pointer-events: none; }

/* Clickable stages */
.clickable-stage {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.clickable-stage:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(245,196,44,0.25);
}

/* Unsaved banner */
.unsaved-banner {
  background: linear-gradient(90deg, rgba(245,196,44,0.12), rgba(245,196,44,0.06));
  border: 1px solid rgba(245,196,44,0.35);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text);
  flex-wrap: wrap;
}
.unsaved-banner span { flex: 1; }
.btn-notify {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.btn-notify:hover { background: var(--gold-dark); }
.btn-dismiss {
  background: transparent;
  border: 1px solid #2a3f58;
  color: var(--gray);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.btn-dismiss:hover { border-color: var(--gray); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--navy-light);
  border: 1px solid #2a3f58;
  border-radius: 14px;
  padding: 36px;
  width: 480px;
  max-width: 90vw;
  box-shadow: var(--shadow);
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.modal-desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 20px; }
.modal-changes {
  background: var(--navy);
  border: 1px solid #1e3050;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}
.modal-changes strong { color: var(--gold); }
.modal-actions { display: flex; gap: 12px; }
.modal-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}
.modal-status.success { background: rgba(46,204,113,0.12); color: var(--success); border: 1px solid rgba(46,204,113,0.3); }
.modal-status.error   { background: rgba(231,76,60,0.12);  color: #e74c3c;        border: 1px solid rgba(231,76,60,0.3); }
