/* Customer portal — solar brand, partner-adjacent polish */
.cust-dash-wrap {
  background: linear-gradient(180deg, #f0f7ff 0%, #f6f8fb 28%, #f8fafc 100%);
  padding: 72px 0 96px;
  min-height: 60vh;
}
.cust-dash-container {
  max-width: 1140px;
}
.cust-dash-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}
.cust-dash-sidebar {
  position: sticky;
  top: 88px;
}
@media (max-width: 992px) {
  .cust-dash-layout {
    grid-template-columns: 1fr;
  }
  .cust-dash-sidebar {
    position: static;
  }
}

/* Profile gradient card */
.cust-profile-card {
  background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 38%, #059669 100%);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  color: #fff;
  box-shadow: 0 20px 40px -28px rgba(14, 165, 233, 0.65),
    0 12px 28px -22px rgba(5, 150, 105, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 1rem;
}
.cust-profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.cust-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.cust-profile-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}
.cust-profile-sub {
  font-size: 0.8rem;
  opacity: 0.92;
  margin: 4px 0 0;
}
.cust-app-id-box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  word-break: break-all;
}
.cust-app-id-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 6px;
  font-weight: 700;
}
.cust-btn-logout {
  margin-top: 14px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.cust-btn-logout:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Side hint card */
.cust-side-hint {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: #475569;
  box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.45);
}
.cust-side-hint strong {
  color: #0f172a;
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* Main column */
.cust-dash-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cust-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 10px 32px -20px rgba(15, 23, 42, 0.5);
  position: relative;
  overflow: hidden;
}
.cust-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(55%, 320px);
  height: 100%;
  background: radial-gradient(
    ellipse at 100% 0%,
    rgba(249, 115, 22, 0.12) 0%,
    transparent 62%
  );
  pointer-events: none;
}
.cust-hero h1 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.cust-hero p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  max-width: 36rem;
  position: relative;
  z-index: 1;
}

/* Status chips row */
.cust-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.cust-status-tile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cust-status-tile:hover {
  border-color: #bae6fd;
  box-shadow: 0 12px 28px -18px rgba(14, 165, 233, 0.35);
}
.cust-status-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.cust-status-tile__icon--profile {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}
.cust-status-tile__icon--kyc {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.cust-status-tile__icon--approval {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.cust-status-tile__icon--referral {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.cust-status-tile__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.cust-status-tile__value {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}
.cust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.cust-pill--pending {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}
.cust-pill--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.cust-pill--wait {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}
.cust-pill--bad {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.cust-pill--neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Section panels */
.cust-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 8px 28px -20px rgba(15, 23, 42, 0.45);
}
.cust-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}
.cust-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cust-panel__title span.emoji {
  font-size: 1.25rem;
  line-height: 1;
}

/* Finance cards */
.cust-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.cust-finance-card {
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cust-finance-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
  margin-bottom: 8px;
}
.cust-finance-card__value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cust-finance-card--kw {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
  box-shadow: 0 14px 28px -16px #0369a1;
}
.cust-finance-card--cost {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
  box-shadow: 0 14px 28px -16px #ea580c;
}
.cust-finance-card--subsidy {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  box-shadow: 0 14px 28px -16px #059669;
}
.cust-finance-card--emi {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
  box-shadow: 0 14px 28px -16px #7c3aed;
}

/* Pipeline */
.cust-pipeline-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cust-pipeline-step {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.cust-pipeline-step--active {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-color: #fcd34d;
}
.cust-pipeline-step--done {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Documents */
.cust-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.cust-doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cust-doc-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}
.cust-doc-card--rejected {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff1f2 0%, #fff 56%);
}
.cust-doc-reject-hint {
  font-size: 0.82rem;
  color: #991b1b;
  margin: 0 0 10px;
  line-height: 1.45;
}
.cust-doc-reupload-form .form-control {
  border-radius: 10px;
  font-size: 0.82rem;
}
.cust-doc-reupload-form .btn {
  border-radius: 10px;
  font-weight: 700;
}
.cust-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden clip;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cust-doc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cust-doc-card__name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.25;
}
.cust-doc-card__status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.cust-doc-card .btn {
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Empty state */
.cust-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
  font-size: 0.92rem;
}
.cust-empty strong {
  color: #334155;
}

/* Customer login (matches portal tone) */
.cust-login-wrap {
  background: linear-gradient(180deg, #f0f7ff 0%, #f6f8fb 40%, #f8fafc 100%);
  padding: 80px 0 100px;
  min-height: 65vh;
}
.cust-login-card-shell {
  max-width: 440px;
  margin: 0 auto;
}
.cust-login-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}
.cust-login-hero h1 {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}
.cust-login-hero p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.cust-login-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.55);
}
.cust-login-panel label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 6px;
}
.cust-login-panel .form-control {
  border-radius: 12px;
  min-height: 46px;
  border-color: #cbd5e1;
}
.cust-login-panel .btn-primary {
  border-radius: 12px;
  font-weight: 700;
  min-height: 46px;
}

/* Login method tabs */
.cust-login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cust-login-tab {
  flex: 1;
  min-width: 120px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.cust-login-tab:hover {
  border-color: #94a3b8;
  color: #0f172a;
}
.cust-login-tab.active {
  border-color: #0ea5e9;
  color: #fff;
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #059669 100%);
  box-shadow: 0 10px 24px -14px rgba(14, 165, 233, 0.65);
}
.cust-login-pane {
  display: none;
}
.cust-login-pane.active {
  display: block;
}
.cust-login-accent {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #f97316, #059669);
  margin-bottom: 1.25rem;
}
