/* ==========================================================================
   Darkhorse AI Analytics - Layout & Component Styles
   Desktop (1360px Master) & Mobile Responsive Grid
   ========================================================================== */

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

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   HEADER COMMAND BAR
   -------------------------------------------------------------------------- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-horse-icon,
.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 153, 0.45));
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-emerald);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: 1.5px;
}

.desk-status-badge {
  background: var(--badge-pill-bg);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.desk-status-badge.active {
  border-color: var(--accent-emerald-glow);
  color: var(--text-primary);
}

.desk-status-badge.setup-mode {
  border-color: rgba(227, 179, 65, 0.4);
  color: #E3B341;
}

.desk-status-badge.setup-mode .status-indicator-dot {
  background: #E3B341;
}

.status-indicator-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  margin-right: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-emerald);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.nav-badge {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--badge-pill-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-emerald);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   MAIN CONTAINER (1360px Master Gold Standard Grid)
   -------------------------------------------------------------------------- */
.app-main,
.app-container {
  flex: 1;
  max-width: 1360px;
  width: 92vw;
  margin: 24px auto;
  padding: 0 32px 60px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   HERO / BANNER CARDS
   -------------------------------------------------------------------------- */
.hero-card {
  background: var(--bg-banner);
  border: 1.5px solid #00E599;
  box-shadow: 0 0 25px rgba(0, 229, 153, 0.25);
  border-radius: 16px;
  padding: 28px 40px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.harvey-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.harvey-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #00E599;
  object-fit: cover;
}

.hero-text-group h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.hero-text-group p {
  font-size: 14.5px;
  color: #8B949E;
  line-height: 1.6;
  max-width: 850px;
}

.hero-kpi-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.kpi-tile {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
}

.kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #00E599;
  line-height: 1.2;
}

.kpi-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.deal-metric-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}

.metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-cell-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-cell-val {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

.metric-cell-val.highlight-emerald {
  color: #10B981;
}

.metric-cell-val.highlight-blue {
  color: #60A5FA;
}

.filter-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: #00E599;
}

.hero-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.btn-primary {
  background: #00E599;
  color: #030508;
  font-weight: 800;
  font-size: 16px;
  height: 56px;
  padding: 0 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.4);
}

.btn-primary:hover {
  background: #00FFAC;
  box-shadow: 0 6px 25px rgba(0, 229, 153, 0.55);
}

.btn-primary-subtext {
  font-size: 11.5px;
  font-weight: 600;
  display: block;
  opacity: 0.9;
  margin-top: 2px;
}

.link-secondary {
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.link-secondary:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   SCREEN 1: SETUP FORM (1360px Split Panels)
   -------------------------------------------------------------------------- */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.setup-panel {
  background: #0B0F17;
  border: 1px solid #1E2638;
  border-radius: 12px;
  padding: 32px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-select {
  height: 48px;
  font-size: 15px;
  border-radius: 8px;
  background: #06090F;
  border: 1px solid #1E2638;
  color: #FFFFFF;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: #00E599;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.25);
}

.form-input::placeholder {
  color: #586069;
}

.strategy-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.strategy-btn {
  background: #06090F;
  border: 1px solid #1E2638;
  border-radius: 8px;
  padding: 16px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.strategy-btn:hover {
  border-color: #00E599;
  color: #FFFFFF;
}

.strategy-btn.active {
  background: var(--accent-emerald-dark);
  border: 2px solid #00E599;
  color: #00E599;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.3);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.slider-val {
  color: var(--text-primary);
  font-weight: 700;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--border-subtle);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   SCREEN 2: LEAD FEED GRID
   -------------------------------------------------------------------------- */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: 10px;
}

.pill-item {
  background: var(--badge-pill-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.pill-item.active {
  background: var(--accent-emerald-dark);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.deal-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  background: #151C28;
}

.deal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--badge-refi-bg);
  color: var(--badge-refi-text);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.deal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.deal-address {
  font-size: 18px;
  font-weight: 800;
}

.deal-specs {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.snapshot-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
}

.snapshot-box h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.snapshot-box ul {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.deal-card .btn-primary {
  width: 100%;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   SCREEN 3: CHAT LOG CONSOLE
   -------------------------------------------------------------------------- */
.chat-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  min-height: 600px;
}

.chat-queue-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-queue-title {
  font-size: 16px;
  font-weight: 800;
  padding: 4px 8px 8px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.queue-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-card.active {
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald-glow);
}

.queue-card-addr {
  font-size: 14px;
  font-weight: 700;
}

.queue-card-owner {
  font-size: 12px;
  color: var(--text-secondary);
}

.queue-status-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #E3B341;
  margin-top: 4px;
}

.chat-console-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-console-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-lead-info h3 {
  font-size: 17px;
  font-weight: 800;
}

.chat-lead-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.chat-stream-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble.harvey {
  align-self: flex-end;
  background: var(--chat-harvey-bg);
  border: 1px solid var(--chat-harvey-border);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.chat-bubble.owner {
  align-self: flex-start;
  background: var(--chat-owner-bg);
  border: 1px solid var(--chat-owner-border);
}

.chat-sender-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.chat-sender-header.harvey {
  color: var(--accent-emerald);
}

.chat-sender-header.owner {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   SCREEN 4: WALKTHROUGH ALERT
   -------------------------------------------------------------------------- */
.alert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.alert-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.alert-tag-row {
  display: flex;
  gap: 8px;
}

.alert-tag-amber {
  background: #E3B341;
  color: #030508;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.alert-tag-lime {
  background: #7EE787;
  color: #030508;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
}

.alert-action-card h2 {
  font-size: 24px;
  font-weight: 800;
}

.alert-action-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.alert-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVENESS (<768px)
   -------------------------------------------------------------------------- */
.mobile-nav-bar {
  display: none;
}

@media (max-width: 768px) {
  .header-bar {
    padding: 12px 16px;
  }
  
  .header-nav, .user-name {
    display: none;
  }
  
  .app-main {
    padding: 16px;
    padding-bottom: 80px;
  }
  
  .setup-grid, .deals-grid, .chat-layout, .alert-layout {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-action-group {
    width: 100%;
    align-items: stretch;
  }
  
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
  }
  
  .mobile-nav-item.active {
    color: var(--accent-emerald);
    font-weight: 700;
  }
}

/* --------------------------------------------------------------------------
   OBSIDIAN MODALS & CUSTOMIZATION POPUPS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: #0B0F17;
  border: 1.5px solid #00E599;
  box-shadow: 0 0 35px rgba(0, 229, 153, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E2638;
  padding-bottom: 16px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #8B949E;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: #00E599;
  background: rgba(0, 229, 153, 0.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #00E599;
  object-fit: cover;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   FULL-SCREEN ACCESS LOCK GATE (Unauthenticated State)
   -------------------------------------------------------------------------- */
.access-lock-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 24px;
}

.access-lock-card {
  background: #0B0F17;
  border: 1.5px solid #00E599;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 229, 153, 0.25), 0 25px 60px rgba(0, 0, 0, 0.95);
  max-width: 540px;
  width: 100%;
  padding: 44px 36px;
  text-align: center;
  position: relative;
  animation: fadeInLock 0.3s ease-in-out;
}

@keyframes fadeInLock {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.lock-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 18px;
  background: rgba(0, 229, 153, 0.06);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 999px;
}

.lock-brand-icon {
  height: 28px;
  width: auto;
}

.lock-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.lock-brand-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}

.lock-brand-subtitle {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00E599;
}

.lock-title {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.lock-desc {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.lock-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.lock-input {
  height: 52px;
  font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  background: #030508;
  border: 1.5px solid #1E2638;
  color: #00E599;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.lock-input:focus {
  border-color: #00E599;
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.35);
}

.lock-input::placeholder {
  color: #475569;
  letter-spacing: 1px;
}

.lock-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 6px;
  text-align: left;
}

.lock-footer-hint {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
  border-top: 1px solid #1E2638;
  padding-top: 18px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   USER INITIALS MONOGRAM BADGE
   -------------------------------------------------------------------------- */
.user-initials-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1.5px solid #EAB308;
  color: #FDE047;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVE MEDIA QUERIES (375px - 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px;
  }
  .hero-action-group {
    width: 100%;
    align-items: stretch;
  }
  .hero-action-group .btn-primary {
    width: 100%;
    min-height: 54px;
    height: auto;
    padding: 14px 20px;
    line-height: 1.35;
  }
  .deals-grid {
    grid-template-columns: 1fr;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-bar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }
  .desk-status-badge {
    display: none;
  }
  .main-content,
  .app-main {
    padding: 16px 12px;
  }
  .hero-card {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .harvey-avatar {
    width: 52px;
    height: 52px;
  }
  .hero-text-group h2 {
    font-size: 20px;
  }
  .hero-text-group p {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .filter-pills-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 8px;
  }
  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
  .pill-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .deal-card {
    min-width: 100%;
  }

  /* Native Mobile Bottom Sheet Drawer */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .inspect-drawer-card,
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
  }
}




