
/* ════════════════════════════════════════════════════════════════
   DC EduTravel Portal v7 — Complete Stylesheet
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:  #04152D;
  --navy2: #0a2647;
  --teal:  #1B8A6B;
  --teal2: #0f6b52;
  --blue:  #1B5FC1;
  --gold:  #F4A621;
  --red:   #dc2626;
  --green: #059669;
  --bg:    #f0f4f8;
  --card:  #ffffff;
  --border:#e2e8f0;
  --text:  #04152D;
  --muted: #64748b;
  --light: #94a3b8;
  --fnt:   'Outfit', 'Inter', system-ui, sans-serif;
  --rad:   14px;
  --shadow: 0 2px 16px rgba(4,21,45,.09);
  --shadow-lg: 0 8px 40px rgba(4,21,45,.18);
}

*,*::before,*::after { box-sizing: border-box; }

/* ── PORTAL WRAPPER ── */
.dce-portal {
  font-family: var(--fnt);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* ── HEADER ── */
.dce-ph {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 24px rgba(4,21,45,.35);
}
.dce-ph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.dce-ph-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal), #0f6b52);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: white;
  letter-spacing: -0.5px;
}
.dce-ph-brand {
  font-weight: 800;
  font-size: 16px;
  color: white;
  white-space: nowrap;
}
.dce-ph-spacer { flex: 1; }
.dce-ph-ann {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.08);
  padding: 4px 14px;
  border-radius: 20px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dce-ph-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dce-ph-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.dce-ph-name {
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dce-ph-logout {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--fnt);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.dce-ph-logout:hover { background: rgba(255,255,255,.18); }

/* ── LAYOUT ── */
.dce-layout {
  display: flex;
  min-height: calc(100vh - 62px);
}

/* ── SIDEBAR ── */
.dce-sidebar {
  width: 230px;
  min-width: 230px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 18px 0 40px;
  flex-shrink: 0;
  overflow-y: auto;
}
.dce-sidebar-section {
  padding: 10px 18px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dce-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
  border-left: 3px solid transparent;
  position: relative;
}
.dce-nav-link:hover {
  background: #f0f9ff;
  color: var(--teal);
}
.dce-nav-link.active {
  background: linear-gradient(90deg, rgba(27,138,107,.08), transparent);
  color: var(--teal);
  border-left-color: var(--teal);
  font-weight: 700;
}
.dce-nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.dce-nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* ── MAIN CONTENT ── */
.dce-main {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── PAGE TITLE ── */
.dce-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
}
.dce-page-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ── STATS GRID ── */
.dce-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.dce-stat {
  background: var(--card);
  border-radius: var(--rad);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.dce-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dce-stat-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.dce-stat-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── CARD ── */
.dce-card {
  background: var(--card);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.dce-card-head {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dce-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.dce-card-body { padding: 18px 20px; }

/* ── STATUS BADGES ── */
.dce-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
}
.dce-badge-green  { background: #d1fae5; color: #065f46; }
.dce-badge-amber  { background: #fef3c7; color: #92400e; }
.dce-badge-blue   { background: #dbeafe; color: #1e40af; }
.dce-badge-purple { background: #ede9fe; color: #5b21b6; }
.dce-badge-red    { background: #fee2e2; color: #991b1b; }
.dce-badge-grey   { background: #f1f5f9; color: #475569; }
.dce-badge-navy   { background: #e0e7ff; color: #3730a3; }

/* ── ALERTS ── */
.dce-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.dce-alert-icon { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.dce-alert-warn  { background: #fffbeb; border: 1.5px solid var(--gold); color: #78350f; }
.dce-alert-info  { background: #eff6ff; border: 1.5px solid var(--blue); color: #1e40af; }
.dce-alert-success { background: #f0fdf4; border: 1.5px solid var(--green); color: #14532d; }
.dce-alert-error { background: #fef2f2; border: 1.5px solid var(--red); color: #7f1d1d; }
.dce-alert a { color: inherit; text-decoration: underline; }

/* ── FORMS ── */
.dce-form-group {
  margin-bottom: 14px;
}
.dce-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dce-input, .dce-select, .dce-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--fnt);
  color: var(--text);
  background: white;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.dce-input:focus, .dce-select:focus, .dce-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,138,107,.12);
}
.dce-textarea { resize: vertical; min-height: 88px; }
.dce-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dce-form-span2 { grid-column: span 2; }

/* ── BUTTONS ── */
.dce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--fnt);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.dce-btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}
.dce-btn-primary:hover { opacity: .88; color: white; }
.dce-btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: white;
}
.dce-btn-teal:hover { opacity: .88; color: white; }
.dce-btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--muted);
}
.dce-btn-outline:hover { background: var(--bg); border-color: var(--teal); color: var(--teal); }
.dce-btn-danger { background: #fee2e2; color: #dc2626; }
.dce-btn-danger:hover { background: #fecaca; }
.dce-btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.dce-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── TABLE ── */
.dce-table-wrap { overflow-x: auto; }
.dce-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dce-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.dce-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f8fafc;
  color: var(--text);
  vertical-align: middle;
}
.dce-table tr:last-child td { border-bottom: none; }
.dce-table tr:hover td { background: #fafafa; }

/* ── EMPTY STATE ── */
.dce-empty {
  text-align: center;
  padding: 52px 24px;
  color: var(--light);
}
.dce-empty-graphic {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
}
.dce-empty-title { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.dce-empty-text  { font-size: 13px; color: var(--light); }

/* ── MESSAGES / CHAT ── */
.dce-msg-bubble {
  display: flex;
  margin-bottom: 16px;
  gap: 10px;
}
.dce-msg-bubble.outgoing { flex-direction: row-reverse; }
.dce-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
  align-self: flex-end;
}
.dce-msg-body {
  max-width: 75%;
  min-width: 120px;
}
.dce-msg-meta {
  font-size: 10.5px;
  color: var(--light);
  margin-bottom: 4px;
  font-weight: 600;
}
.dce-msg-bubble.outgoing .dce-msg-meta { text-align: right; }
.dce-msg-text {
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.dce-msg-bubble.incoming .dce-msg-text {
  background: #f1f5f9;
  color: var(--text);
  border-radius: 4px 14px 14px 14px;
}
.dce-msg-bubble.outgoing .dce-msg-text {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  border-radius: 14px 4px 14px 14px;
}
.dce-msg-attachments { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.dce-msg-attach-chip {
  background: rgba(27,95,193,.12);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dce-msg-attach-chip:hover { background: rgba(27,95,193,.2); }
.dce-thread-divider {
  text-align: center;
  font-size: 11px;
  color: var(--light);
  position: relative;
  margin: 20px 0;
}
.dce-thread-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.dce-thread-divider span { background: var(--bg); padding: 0 12px; position: relative; z-index: 1; }

/* ── DOCUMENTS ── */
.dce-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.dce-doc-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.dce-doc-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.dce-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dce-doc-name { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1.3; }
.dce-doc-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.dce-doc-meta.dce-doc-size { font-size: 14px; font-weight: 800; color: var(--navy); }
.dce-doc-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ── FILE CHIP (multi-select feedback) ── */
.dce-file-chip {
  display: inline-flex;
  align-items: center;
  background: var(--teal-light, #f0fdf9);
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── UPLOAD DROPZONE ── */
.dce-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafbfc;
}
.dce-dropzone:hover, .dce-dropzone.drag { border-color: var(--teal); background: rgba(27,138,107,.04); }
.dce-dropzone-icon { font-size: 32px; margin-bottom: 8px; color: var(--light); }
.dce-dropzone-text { font-size: 14px; color: var(--muted); font-weight: 600; }
.dce-dropzone-sub  { font-size: 12px; color: var(--light); margin-top: 4px; }

/* ── REQUEST CARD ── */
.dce-req-card {
  border: 1.5px solid var(--gold);
  background: #fffbeb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.dce-req-title { font-weight: 700; font-size: 14px; color: #78350f; margin-bottom: 4px; }
.dce-req-body  { font-size: 13px; color: #92400e; line-height: 1.5; }
.dce-req-meta  { font-size: 11px; color: #b45309; margin-top: 6px; }

/* ── FORMS (assigned) ── */
.dce-form-card {
  background: var(--card);
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dce-form-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}
.dce-form-card.completed .dce-form-indicator { background: var(--green); }
.dce-form-info { flex: 1; }
.dce-form-title { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.dce-form-sub   { font-size: 12px; color: var(--muted); }
.dce-form-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── STATUS FLOW ── */
.dce-flow-wrap { overflow-x: auto; padding-bottom: 8px; }
.dce-flow {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: max-content;
  padding: 4px 0;
}
.dce-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-width: 70px;
}
.dce-flow-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--light);
  transition: all .2s;
}
.dce-flow-step:hover .dce-flow-dot { border-color: var(--teal); color: var(--teal); }
.dce-flow-step.done .dce-flow-dot  { background: var(--teal); border-color: var(--teal); color: white; }
.dce-flow-step.current .dce-flow-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  width: 40px; height: 40px;
  box-shadow: 0 0 0 5px rgba(27,95,193,.18);
}
.dce-flow-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--light);
  text-align: center;
  max-width: 66px;
  line-height: 1.2;
}
.dce-flow-step.done .dce-flow-label    { color: var(--teal); }
.dce-flow-step.current .dce-flow-label { color: var(--blue); font-weight: 800; }
.dce-flow-line {
  width: 20px;
  min-width: 14px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.dce-flow-line.done { background: var(--teal); }

/* ── PROFILE ── */
.dce-profile-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.dce-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 13px;
}
.dce-profile-row:last-child { border-bottom: none; }
.dce-profile-key { color: var(--muted); font-weight: 600; }
.dce-profile-val { font-weight: 700; color: var(--navy); text-align: right; }

/* ── LOGIN PAGE ── */
.dce-login-page {
  min-height: 100vh;
  display: flex;
  font-family: var(--fnt);
  background: var(--navy);
}
.dce-login-hero {
  flex: 1;
  background: linear-gradient(135deg, rgba(4,21,45,.95), rgba(27,95,193,.6)),
              url('') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.dce-login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(27,138,107,.3), transparent 60%);
}
.dce-login-hero-content { position: relative; z-index: 1; }
.dce-login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.dce-login-logo-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal), #0d5c46);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: white;
}
.dce-login-logo-text { font-weight: 800; font-size: 20px; color: white; }
.dce-login-headline {
  font-size: 38px;
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 480px;
}
.dce-login-tagline {
  font-size: 15.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 36px;
}
.dce-login-features { display: flex; flex-direction: column; gap: 10px; }
.dce-login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.8);
}
.dce-login-feature-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.dce-login-hero-foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.dce-login-hero-foot a { color: rgba(255,255,255,.6); text-decoration: none; }
.dce-login-form-wrap {
  width: 440px;
  min-width: 340px;
  background: white;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dce-login-form-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}
.dce-login-form-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.5;
}
.dce-login-divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
.dce-login-err {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
  line-height: 1.4;
}
.dce-login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--fnt);
  cursor: pointer;
  letter-spacing: .01em;
  transition: opacity .2s, transform .15s;
}
.dce-login-btn:hover { opacity: .92; transform: translateY(-1px); }
.dce-login-btn:active { transform: translateY(0); }
.dce-login-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.dce-login-foot {
  margin-top: 18px;
  font-size: 12px;
  color: var(--light);
  text-align: center;
  line-height: 1.7;
}
.dce-login-foot a { color: var(--teal); font-weight: 700; text-decoration: none; }
.dce-otp-code {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 10px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

/* ── TOAST ── */
.dce-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--fnt);
  font-weight: 700;
  font-size: 14px;
  z-index: 9999999;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
  max-width: 320px;
  line-height: 1.4;
}
.dce-toast.show { transform: translateY(0); opacity: 1; }
.dce-toast.success { background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.dce-toast.error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.dce-toast.info    { background: linear-gradient(135deg, var(--blue), #1e40af); }

/* ── MODAL ── */
.dce-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,21,45,.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dce-modal-overlay.open { display: flex; }
.dce-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.dce-modal-head {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 20px 24px 18px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
}
.dce-modal-title { font-size: 17px; font-weight: 800; color: white; margin: 0; }
.dce-modal-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dce-modal-body { padding: 24px; }

/* ── ACCESS DENIED ── */
.dce-access-denied {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--fnt);
}
.dce-ad-inner {
  background: white;
  border-radius: 20px;
  padding: 52px 44px;
  text-align: center;
  max-width: 440px;
}
.dce-ad-icon { font-size: 52px; margin-bottom: 16px; }
.dce-ad-inner h2 { font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.dce-ad-inner p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.dce-btn-go {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  font-family: var(--fnt);
}

/* ── FILE CHIPS ── */
.dce-file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dce-file-chip {
  background: #eff6ff;
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dce-file-chip-x {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

/* ══ ADMIN EXTRA STYLES ══════════════════════════════════════ */
.dce-admin-wrap { padding: 8px 0 40px; }
.dce-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.dce-admin-title { font-family: var(--fnt); font-size: 21px; font-weight: 900; color: var(--navy); margin: 0; }
.dce-admin-sub   { font-size: 13px; color: var(--light); margin: 3px 0 0; }
.dce-admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dce-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dce-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; margin-bottom: 22px; }
.dce-admin-stat {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  border-top: 3px solid var(--teal);
  transition: transform .15s;
}
.dce-admin-stat:hover { transform: translateY(-2px); }
.dce-admin-stat-num   { font-size: 26px; font-weight: 900; color: var(--navy); line-height: 1; }
.dce-admin-stat-label { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.dce-admin-card { background: white; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.dce-admin-card-title { font-family: var(--fnt); font-size: 14px; font-weight: 800; color: var(--navy); padding: 15px 20px; border-bottom: 1px solid var(--border); }
.dce-admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 18px; border-radius: 10px; font-family: var(--fnt); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; border: none; white-space: nowrap; transition: all .2s; }
.dce-admin-btn-primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; }
.dce-admin-btn-primary:hover { opacity: .88; color: white; }
.dce-admin-btn-secondary { background: #f1f5f9; color: var(--muted); }
.dce-admin-btn-secondary:hover { background: #e2e8f0; }
.dce-admin-btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }
.dce-admin-form-grid { display: grid; gap: 14px; }
.dce-admin-form-2 { grid-template-columns: 1fr 1fr; }
.dce-admin-form-group { display: flex; flex-direction: column; }
.dce-admin-form-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .03em; }
.dce-admin-input, .dce-admin-select, .dce-admin-textarea { padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--fnt); color: var(--text); width: 100%; transition: border-color .2s; }
.dce-admin-input:focus, .dce-admin-select:focus, .dce-admin-textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,138,107,.1); }
.dce-admin-textarea { resize: vertical; }

/* ══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .dce-sidebar { display: none; }
  .dce-sidebar.open { display: block; position: fixed; inset: 62px 0 0 0; z-index: 900; width: 100%; max-width: 280px; overflow-y: auto; }
  .dce-main { padding: 16px; }
  .dce-login-hero { display: none; }
  .dce-login-form-wrap { width: 100%; min-width: 0; padding: 36px 24px; min-height: 100vh; }
  .dce-form-grid-2 { grid-template-columns: 1fr; }
  .dce-form-span2 { grid-column: span 1; }
  .dce-grid-2 { grid-template-columns: 1fr; }
  .dce-admin-form-2 { grid-template-columns: 1fr; }
  .dce-stats { grid-template-columns: repeat(2, 1fr); }
  .dce-ph-name, .dce-ph-ann { display: none; }
}
@media (max-width: 480px) {
  .dce-stats { grid-template-columns: repeat(2, 1fr); }
  .dce-doc-grid { grid-template-columns: 1fr 1fr; }
  .dce-ph-brand { display: none; }
}

/* ── MOBILE NAV TOGGLE ── */
.dce-mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.dce-mobile-menu-btn span { display: block; width: 16px; height: 2px; background: white; border-radius: 2px; }
@media (max-width: 768px) { .dce-mobile-menu-btn { display: flex; } }

.dce-mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,21,45,.5);
  z-index: 899;
}
.dce-mob-overlay.open { display: block; }

/* ── CC FIELD ── */
.dce-cc-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dce-cc-chip {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dce-cc-chip-x { background: none; border: none; color: #0369a1; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }

/* Misc */
.dce-divider { height: 1px; background: var(--border); margin: 18px 0; }
.dce-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f8fafc; font-size: 13px; }
.dce-info-row:last-child { border-bottom: none; }
.dce-info-key { color: var(--muted); font-weight: 600; }
.dce-info-val { font-weight: 700; color: var(--navy); text-align: right; max-width: 60%; }
.dce-section-title { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.dce-mb16 { margin-bottom: 16px; }
.dce-mt12 { margin-top: 12px; }
.dce-flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.text-muted { color: var(--muted); }
.text-small { font-size: 12px; }
.fw700 { font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   BEAUTIFUL HORIZONTAL STATUS PIPELINE — admin + portals
   ══════════════════════════════════════════════════════════════ */

/* Pipeline container */
.dce-pipeline {
  background: linear-gradient(135deg, #04152D, #0a2647);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.dce-pipeline-title {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dce-pipeline-flow {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.dce-pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  cursor: pointer;
  transition: transform .15s;
}
.dce-pipe-step:hover { transform: translateY(-2px); }
.dce-pipe-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.4);
  transition: all .2s;
}
.dce-pipe-step.done .dce-pipe-dot {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.dce-pipe-step.current .dce-pipe-dot {
  width: 42px;
  height: 42px;
  color: white;
  font-size: 14px;
}
.dce-pipe-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-align: center;
  max-width: 64px;
  line-height: 1.2;
}
.dce-pipe-step.done .dce-pipe-label    { color: var(--teal); }
.dce-pipe-step.current .dce-pipe-label { color: white; font-weight: 800; }
.dce-pipe-connector {
  width: 20px;
  min-width: 14px;
  height: 2px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  margin-bottom: 20px;
  transition: background .2s;
}
.dce-pipe-connector.done { background: var(--teal); }

/* Status badge pills */
.dce-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dce-status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  flex-shrink: 0;
}

/* Dashboard KPI card hover */
.dce-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(4,21,45,.13);
}

/* Application pipeline dark card */
.dce-app-pipeline {
  background: linear-gradient(135deg, #04152D, #1B5FC1 80%);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  color: white;
}
.dce-app-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.dce-app-pipe-cell {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  border-top: 3px solid;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.dce-app-pipe-cell:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.dce-app-pipe-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
}
.dce-app-pipe-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .7;
}

/* Inline status flow (smaller, for table rows) */
.dce-status-flow-inline {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  padding: 4px 0;
}
.dce-sfi-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--light);
  flex-shrink: 0;
  cursor: pointer;
  transition: all .15s;
}
.dce-sfi-dot.done    { background: var(--teal); border-color: var(--teal); color: white; }
.dce-sfi-dot.current { background: var(--blue); border-color: var(--blue); color: white; width: 26px; height: 26px; font-size: 11px; }
.dce-sfi-line { width: 8px; height: 1.5px; background: var(--border); flex-shrink: 0; }
.dce-sfi-line.done { background: var(--teal); }


/* ═══════════════════════════════════════════════════════════
   PORTAL STATUS FLOW — Beautiful horizontal progress
   ═══════════════════════════════════════════════════════════ */
.dce-pflow {
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.dce-pflow-inner {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  gap: 0;
  padding: 2px 0;
}
.dce-pflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-width: 66px;
  max-width: 80px;
}
.dce-pflow-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #cbd5e1;
  transition: all .25s;
  flex-shrink: 0;
}
.dce-pflow-step.done .dce-pflow-dot {
  background: var(--teal, #1B8A6B);
  border-color: var(--teal, #1B8A6B);
  color: white;
}
.dce-pflow-step.current .dce-pflow-dot {
  width: 40px;
  height: 40px;
  font-size: 14px;
  color: white;
  border: none;
  box-shadow: 0 0 0 5px rgba(0,0,0,.08);
}
.dce-pflow-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  max-width: 64px;
  line-height: 1.25;
  word-break: break-word;
}
.dce-pflow-step.done .dce-pflow-label { color: var(--teal, #1B8A6B); }
.dce-pflow-step.current .dce-pflow-label { font-weight: 800; }
.dce-pflow-line {
  width: 18px;
  min-width: 12px;
  height: 2.5px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.dce-pflow-line.done { background: var(--teal, #1B8A6B); }

/* Small check icon for done steps */
.dce-pflow-step.done .dce-pflow-dot::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}
.dce-pflow-step.done .dce-pflow-dot { font-size: 0; }

/* Status pill badges — portal */
.dce-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dce-status-pill::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Application card gradient accent */
.dce-app-card-inner {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 14px rgba(4,21,45,.07);
  margin-bottom: 14px;
}
.dce-app-card-bar {
  height: 4px;
  width: 100%;
}

/* Visa card */
.dce-visa-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(4,21,45,.07);
  margin-bottom: 14px;
  overflow: hidden;
}
.dce-visa-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dce-visa-body { padding: 0 18px 16px; }


/* ═══════════════════════════════════════════════════════════════
   BEAUTIFUL HORIZONTAL STATUS FLOWS
   Used in Admin Dashboard, Client Portal, Agent Portal
   ═══════════════════════════════════════════════════════════════ */

/* ── APP PIPELINE (Admin Dashboard) ── */
.dce-app-pipeline {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.dce-app-pipeline-inner {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  min-width: max-content;
  padding: 8px 0 4px;
}
.dce-pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  min-width: 90px;
  max-width: 110px;
  padding: 0 4px;
  transition: transform .15s;
}
.dce-pipeline-stage:hover { transform: translateY(-3px); }
.dce-pipeline-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: white;
  margin-bottom: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  position: relative;
}
.dce-pipeline-circle-sq {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.dce-pipeline-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #04152D;
  text-align: center;
  line-height: 1.3;
  max-width: 88px;
}
.dce-pipeline-bar {
  height: 5px;
  border-radius: 3px;
  width: 70%;
  margin-top: 5px;
  max-width: 64px;
}
.dce-pipeline-connector {
  width: 24px;
  min-width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #e2e8f0;
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 52px;
}
.dce-pipeline-connector.done { background: var(--teal, #1B8A6B); }

/* ── PORTAL STATUS FLOW (Client / Agent portals) ── */
.dce-sf-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px;
}
.dce-sf {
  display: inline-flex;
  align-items: flex-start;
  min-width: max-content;
  gap: 0;
}
.dce-sf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  max-width: 100px;
  padding: 0 3px;
}
.dce-sf-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: all .2s;
}
.dce-sf-step.done .dce-sf-circle {
  background: var(--teal, #1B8A6B);
  border-color: var(--teal, #1B8A6B);
  color: white;
  font-size: 0;
}
.dce-sf-step.done .dce-sf-circle::after {
  content: '';
  display: block;
  width: 9px; height: 7px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translate(1px,-1px);
}
.dce-sf-step.current .dce-sf-circle {
  width: 46px; height: 46px;
  font-size: 15px;
  color: white;
  border: none;
  box-shadow: 0 0 0 5px rgba(0,0,0,.08);
}
.dce-sf-label {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  max-width: 76px;
  line-height: 1.3;
}
.dce-sf-step.done .dce-sf-label { color: var(--teal, #1B8A6B); font-weight: 700; }
.dce-sf-step.current .dce-sf-label { font-weight: 800; }
.dce-sf-line {
  width: 20px; min-width: 12px; height: 3px;
  background: #e2e8f0; border-radius: 2px;
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 28px;
}
.dce-sf-line.done { background: var(--teal, #1B8A6B); }

/* Visa tile variant */
.dce-sf-step .dce-sf-tile {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 2.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: all .2s;
}
.dce-sf-step.done .dce-sf-tile { font-size: 0; }
.dce-sf-step.done .dce-sf-tile::after {
  content: '';
  display: block;
  width: 9px; height: 7px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translate(1px,-1px);
}
.dce-sf-step.current .dce-sf-tile {
  width: 52px; height: 52px;
  font-size: 16px;
  color: white;
  border: none;
  box-shadow: 0 0 0 5px rgba(0,0,0,.09);
}


/* ── ENHANCED STATUS FLOW VISIBILITY ── */
.dce-sf-circle, .dce-sf-tile {
  min-width: 36px;
}
.dce-sf-label {
  font-size: 10.5px;
}
.dce-sf-step.current .dce-sf-circle,
.dce-sf-step.current .dce-sf-tile {
  font-size: 16px;
}

/* ── MESSAGES NAV BADGE PULSE ── */
.dce-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 6px;
  animation: dce-pulse 2s infinite;
}
@keyframes dce-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

/* ── LEAD FORM SECTIONS ── */
.dce-lead-section-head {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}


/* ── GLOBAL PORTAL FONT SIZE UPGRADE (v7.1) ── */
.dce-portal, .dce-portal * { box-sizing: border-box; }
.dce-portal { font-size: 15px; }
.dce-nav-link { font-size: 14px !important; font-weight: 600; }
.dce-nav-link .dce-nav-badge { font-size: 11px; }
.dce-page-title { font-size: 22px !important; font-weight: 900 !important; }
.dce-page-sub { font-size: 14px !important; }
.dce-card-title { font-size: 16px !important; font-weight: 800 !important; }
.dce-card-body { font-size: 14px; }
.dce-form-label { font-size: 13px !important; font-weight: 700 !important; }
.dce-input, .dce-select { font-size: 14px !important; }
.dce-stat-val { font-size: 26px !important; font-weight: 900 !important; }
.dce-stat-label { font-size: 13px !important; font-weight: 600 !important; }
.dce-btn { font-size: 14px !important; font-weight: 800 !important; }
.dce-table td { font-size: 14px; }
.dce-table th { font-size: 12px; }
.dce-ph-name { font-size: 14px !important; }
.dce-form-card .dce-form-title { font-size: 16px !important; font-weight: 800 !important; }

/* ═══════════════════════════════════════════════════════════
   HORIZONTAL TAB NAVIGATION BAR — always visible (v7.2 patch)
   Solves sidebar-hidden-inside-theme-container problem
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   HORIZONTAL TAB NAVIGATION — Bold, Beautiful, Colorful (v7.3)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --tab-accent:    #1B8A6B;
  --tab-accent2:   #0f6b52;
  --tab-bg-active: #f0fdf4;
}

.dce-tabnav {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #ffffff;
  border-bottom: 3px solid #f1f5f9;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 62px;
  z-index: 990;
  box-shadow: 0 3px 16px rgba(4,21,45,.10);
  min-height: 54px;
}
.dce-tabnav::-webkit-scrollbar { display: none; }

/* ── Individual tab item ── */
.dce-tabnav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 4px solid transparent;
  margin-bottom: -3px;
  transition: all .18s;
  position: relative;
  letter-spacing: .01em;
  border-radius: 0;
}
.dce-tabnav-item:hover {
  color: var(--tab-accent);
  background: var(--tab-bg-active);
  border-bottom-color: var(--tab-accent);
}

/* ── ACTIVE TAB — filled pill with colour ── */
.dce-tabnav-item--active {
  color: var(--tab-accent) !important;
  border-bottom-color: var(--tab-accent) !important;
  font-weight: 800 !important;
  font-size: 14.5px;
  background: var(--tab-bg-active);
}
.dce-tabnav-item--active .dce-tabnav-label {
  position: relative;
}
.dce-tabnav-item--active .dce-tabnav-label::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -14px;
  left: 0; right: 0;
  height: 4px;
  background: var(--tab-accent);
  border-radius: 4px 4px 0 0;
}

/* ── Badge ── */
.dce-tabnav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: white;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  min-width: 20px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
  animation: dce-badge-pop .3s ease;
}
@keyframes dce-badge-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Label wrapper ── */
.dce-tabnav-label {
  position: relative;
}

/* ═══ CLIENT portal — teal theme (default) ═══ */
.dce-tabnav--client {
  --tab-accent:    #1B8A6B;
  --tab-accent2:   #0f6b52;
  --tab-bg-active: #f0fdf4;
  border-bottom-color: #e2e8f0;
}

/* ═══ AGENT portal — purple theme ═══ */
.dce-tabnav--agent {
  --tab-accent:    #7c3aed;
  --tab-accent2:   #5b21b6;
  --tab-bg-active: #f5f0ff;
  border-bottom-color: #e9d5ff;
  background: linear-gradient(180deg, #fdfcff 0%, #ffffff 100%);
}
.dce-tabnav--agent .dce-tabnav-item:hover {
  color: #7c3aed;
  background: #f5f0ff;
}
.dce-tabnav--agent .dce-tabnav-item--active {
  color: #7c3aed !important;
  border-bottom-color: #7c3aed !important;
  background: #f5f0ff;
}

/* ── Responsive: hide sidebar since tabnav is primary nav ── */
@media (max-width: 1024px) {
  .dce-sidebar { display: none; }
  .dce-sidebar.open { display: block; position: fixed; inset: 126px 0 0 0; z-index: 900; width: 100%; max-width: 280px; overflow-y: auto; }
}
@media (max-width: 600px) {
  .dce-tabnav { padding: 0 8px; min-height: 48px; }
  .dce-tabnav-item { padding: 8px 12px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   MESSAGES TAB — Beautiful inbox UI (v7.2 patch)
   ═══════════════════════════════════════════════════════════ */
.dce-msg-compose {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.dce-msg-compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy), #0a2647);
  color: white;
}
.dce-msg-compose-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.dce-msg-compose-body {
  padding: 18px 20px;
}
.dce-msg-thread {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.dce-msg-thread-header {
  padding: 13px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dce-msg-thread-count {
  font-size: 11px;
  background: var(--teal);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}
.dce-msg-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px 20px;
}
.dce-msg-bubble {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.dce-msg-bubble--me { flex-direction: row-reverse; }
.dce-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.dce-msg-avatar--me { background: linear-gradient(135deg, var(--teal), #0f6b52); }
.dce-msg-avatar--agent { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.dce-msg-content {
  max-width: 78%;
  background: #f1f5f9;
  border-radius: 4px 14px 14px 14px;
  padding: 12px 15px;
}
.dce-msg-bubble--me .dce-msg-content {
  background: linear-gradient(135deg, var(--teal), #0f6b52);
  color: white;
  border-radius: 14px 4px 14px 14px;
}
.dce-msg-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dce-msg-bubble--me .dce-msg-meta { color: rgba(255,255,255,.7); }
.dce-msg-body { font-size: 13.5px; line-height: 1.6; }
.dce-msg-att { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.dce-msg-att-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.2); color: white;
  padding: 4px 10px; border-radius: 6px; font-size: 12px;
  text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,.3);
}
.dce-msg-att-link--dark {
  background: rgba(4,21,45,.07); color: var(--navy); border-color: var(--border);
}
.dce-msg-att-link:hover { opacity: .85; }
.dce-msg-time { font-size: 10px; opacity: .55; text-align: right; margin-top: 5px; }
.dce-msg-reply {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.dce-msg-reply-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin-bottom: 8px;
}
