
:root {
  --kbn-deep-emerald: #061c14;
  --kbn-emerald: #0B3B2E;
  --kbn-emerald-dark: #002b19;
  --kbn-emerald-light: #134e3f;
  --kbn-gold: #d4af37;
  --kbn-gold-light: #f3e5ab;
  --kbn-gold-dark: #997f25;
  --kbn-dark: #080d0a;
  --kbn-card-bg: #0f1c16;
  --kbn-card-border: rgba(212, 175, 55, 0.22);
  --kbn-text: #f1f5f3;
  --kbn-text-muted: #94a3b8;
  --kbn-green: #10b981;
  --kbn-red: #ef4444;
}

body {
  margin: 0;
  padding: 0;
  background-color: #070e0a;
  color: var(--kbn-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  background: linear-gradient(180deg, #0d2119 0%, #08140f 100%);
  border-bottom: 1px solid var(--kbn-card-border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.portal-header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.portal-brand img {
  height: 38px;
  width: auto;
}
.portal-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}
.portal-brand-text span {
  color: var(--kbn-gold);
}
.portal-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.portal-nav a {
  color: var(--kbn-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.portal-nav a:hover, .portal-nav a.active {
  color: var(--kbn-gold);
}
.portal-nav .nav-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--kbn-gold);
  color: var(--kbn-gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.portal-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.portal-welcome {
  background: linear-gradient(135deg, rgba(11,59,46,0.6) 0%, rgba(6,28,20,0.8) 100%);
  border: 1px solid var(--kbn-card-border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.welcome-text h1 {
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #fff;
}
.welcome-text h1 span {
  color: var(--kbn-gold);
}
.welcome-text p {
  margin: 0;
  color: var(--kbn-text-muted);
  font-size: 15px;
}
.search-box {
  display: flex;
  gap: 10px;
  background: rgba(8,13,10,0.8);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  max-width: 440px;
  width: 100%;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  flex: 1;
}
.search-box button {
  background: linear-gradient(135deg, var(--kbn-gold), #b8972e);
  color: #061c14;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s;
}
.search-box button:hover {
  transform: translateY(-1px);
}

.project-card {
  background: #0f1c16;
  color: #f1f5f9;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.22);
}

.project-card-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 71, 42, 0.25);
  flex-wrap: wrap;
  gap: 12px;
}
.project-client-meta h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}
.project-client-meta p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}
.stage-pill {
  background: #0284c7;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.stage-pill.done {
  background: #059669;
}

.project-card-body {
  padding: 24px;
}

.progress-section {
  margin-bottom: 24px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.progress-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease-in-out;
}

.financials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .financials-grid {
    grid-template-columns: 1fr;
  }
}
.fin-card {
  background: #0B3B2E;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  text-align: left;
}
.fin-card small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 4px;
  font-weight: 700;
}
.fin-card b {
  font-size: 20px;
  font-weight: 800;
  display: block;
}
.fin-card.due {
  background: #f8fafc;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.fin-card.due small {
  color: #991b1b;
}

.action-buttons-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-kbn-connect {
  background: #d4af37;
  color: #08140f;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-kbn-connect:hover {
  background: #b8972e;
}
.btn-pdf-quote {
  background: #0B3B2E;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pdf-quote:hover {
  background: #072a21;
}
.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-whatsapp:hover {
  background: #15803d;
}

.cloud-drives-banner {
  background: #0B3B2E;
  color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.cloud-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cloud-icon {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--kbn-gold);
  color: var(--kbn-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.cloud-title h4 {
  margin: 0 0 2px 0;
  font-size: 15px;
  font-weight: 700;
}
.cloud-title span {
  font-size: 12px;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-open-app {
  background: #d4af37;
  color: #061c14;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.final-report-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.report-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-report {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-report:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.btn-report.notes {
  background: #d4af37;
  color: #061c14;
  border-color: #b8972e;
}

.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.deliverable-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.deliverable-item:last-child {
  border-bottom: none;
}
.deliverable-status {
  font-weight: 700;
}
.deliverable-status.ready {
  color: #059669;
}
.deliverable-status.pending {
  color: #d97706;
}

.portal-footer {
  background: #06120c;
  border-top: 1px solid var(--kbn-card-border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--kbn-text-muted);
}
