/* ==========================================================================
   RESIDENSI ARMANI PUTRA @ DENGKIL - MODERN LUXURY DESIGN SYSTEM
   Professional Real Estate Sales Operating System
   ========================================================================== */

:root {
  /* Brand Palette - Obsidian, Champagne Gold, Pure Tech Blue */
  --bg-app: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-dark: #090d16;
  --bg-dark-surface: #111827;
  --bg-dark-card: #172033;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #f0f9ff;
  --primary-border: #bae6fd;
  
  --gold: #c5a880;
  --gold-light: #fdfaf5;
  --gold-border: #e9dec9;
  --gold-dark: #9a7848;
  
  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --amber: #d97706;
  --amber-light: #fffbeb;
  
  --rose: #e11d48;
  --rose-light: #fff1f2;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 6px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.1), 0 4px 8px -2px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.25);
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   APP HEADER - LUXURY OBSIDIAN & GOLD ACCENTS
   ========================================================================== */

.app-header {
  background: linear-gradient(180deg, #090d16 0%, #111827 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-badge {
  background: linear-gradient(135deg, #c5a880 0%, #e2cfb4 50%, #b89366 100%);
  color: #090d16;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.3);
  display: inline-flex;
  align-items: center;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 0.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quick-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
}

.quick-tag-gold {
  background: rgba(197, 168, 128, 0.12);
  border-color: rgba(197, 168, 128, 0.3);
  color: #e2cfb4;
}

.quick-tag-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Tab Navigation Container */
.nav-container {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0 0 0.75rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.nav-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.2px;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: #090d16;
  background: linear-gradient(135deg, #e2cfb4 0%, #c5a880 100%);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(197, 168, 128, 0.35);
}

/* ==========================================================================
   MAIN LAYOUT & GENERAL CONTAINERS
   ========================================================================== */

.main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.tab-pane {
  display: none;
  animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-pane.active {
  display: block;
}

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

/* Section Header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate-900);
}

.section-desc {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* ==========================================================================
   METRIC & STAT CARDS (DASHBOARD)
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  opacity: 0.8;
}

.stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--emerald), #34d399);
}

.stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--slate-500);
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
  margin: 0.5rem 0 0.35rem;
  line-height: 1.1;
}

.stat-card .subtext {
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.4;
}

/* Highlight Spec Cards in Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.overview-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.overview-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  background: var(--bg-surface-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
}

.overview-card-body {
  padding: 1.5rem;
  flex: 1;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.86rem;
  gap: 1rem;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--slate-500);
  font-weight: 500;
  flex-shrink: 0;
}

.spec-value {
  color: var(--slate-900);
  font-weight: 700;
  text-align: right;
}

.badge-included {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.badge-warning {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid #fde68a;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

/* ==========================================================================
   FILTER & SEARCH CONTROLS
   ========================================================================== */

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg-surface);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.75rem;
}

.search-input {
  flex: 1;
  min-width: 260px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--slate-900);
  background: var(--slate-50);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-select {
  padding: 0.65rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--slate-700);
  background: var(--slate-50);
  cursor: pointer;
  outline: none;
  font-weight: 500;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* Segmented Buttons */
.segmented-control {
  display: inline-flex;
  background: var(--slate-200);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  gap: 0.25rem;
}

.segmented-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  color: var(--slate-600);
  transition: var(--transition);
  font-family: inherit;
}

.segmented-btn.active {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   UNIT CATALOG & CARDS
   ========================================================================== */

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.unit-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.unit-card-header {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-surface-subtle);
}

.unit-type-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.3px;
}

.unit-block-subtitle {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

.unit-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.35rem;
}

.tag-soho {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.tag-sa {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tag-afford {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.unit-card-body {
  padding: 1.4rem;
  flex: 1;
}

/* Feature Grid inside Unit Card */
.unit-metric-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.metric-box-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 700;
}

.metric-box-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 0.2rem;
}

/* Price Box */
.price-display-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.price-row-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.price-row-item:last-child {
  margin-bottom: 0;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--slate-300);
}

.price-spa-num {
  text-decoration: line-through;
  color: var(--slate-400);
  font-weight: 600;
}

.price-nett-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.unit-features-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--slate-600);
}

.unit-features-list li {
  margin-bottom: 0.35rem;
  padding-left: 0.85rem;
  position: relative;
}

.unit-features-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--slate-400);
  font-weight: bold;
}

.unit-card-footer {
  padding: 1rem 1.4rem;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--slate-200);
  display: flex;
  gap: 0.6rem;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.1px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn-success {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-icon {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-wa {
  background: #25d366;
  color: #ffffff;
}

.btn-wa:hover {
  background: #1ebc59;
}

.btn-call {
  background: var(--primary);
  color: #ffffff;
}

.btn-call:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   CALCULATOR & DSR SIMULATOR
   ========================================================================== */

.calc-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

@media (max-width: 960px) {
  .calc-container {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.45rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--slate-50);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Luxury Financial Summary Panel */
.calc-summary-card {
  background: linear-gradient(155deg, #090d16 0%, #111827 50%, #172033 100%);
  color: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.calc-summary-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.summary-highlight {
  text-align: center;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
}

.summary-highlight .title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  font-weight: 700;
}

.summary-highlight .amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: #38bdf8;
  margin: 0.4rem 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.summary-highlight .period {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.calc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.calc-detail-row:last-child {
  border-bottom: none;
}

.calc-detail-row span {
  color: #94a3b8;
}

.calc-detail-row strong {
  color: #ffffff;
  font-weight: 700;
}

.dsr-indicator {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.dsr-safe {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.dsr-moderate {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.dsr-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==========================================================================
   DATA TABLES (CARPARK & PROGRESSIVE BILLING)
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--bg-surface-subtle);
  color: var(--slate-700);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Carpark Action Pills */
.btn-cp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin: 0.2rem;
  font-size: 0.8rem;
  color: var(--primary-hover);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-cp-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-lvl-pick {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lvl-pick.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   BANKERS DIRECTORY
   ========================================================================== */

.banker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.banker-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.banker-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.banker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.bank-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.bank-rate-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.bank-meta {
  font-size: 0.83rem;
  color: var(--slate-600);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  background: var(--slate-50);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.bank-team-box {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--slate-200);
}

.team-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--slate-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--slate-100);
}

.banker-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--slate-100);
  font-size: 0.84rem;
}

.banker-person:last-child {
  border-bottom: none;
}

.contact-actions {
  display: flex;
  gap: 0.35rem;
}

/* ==========================================================================
   SOP TIMELINE & STEP CARDS
   ========================================================================== */

.sop-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.sop-timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 17px;
  width: 2px;
  background: var(--slate-200);
}

.sop-step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  position: relative;
  transition: var(--transition);
}

.sop-step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem 1.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
  user-select: none;
}

.faq-question:hover {
  background: var(--slate-50);
}

.faq-answer {
  display: none;
  padding: 1.25rem 1.6rem 1.6rem;
  color: var(--slate-700);
  border-top: 1px solid var(--slate-100);
  font-size: 0.9rem;
  line-height: 1.7;
  background: #fafbfc;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* ==========================================================================
   WHATSAPP PITCH GENERATOR & PREVIEW BUBBLE
   ========================================================================== */

.pitch-preview-card {
  background: #0f1c24;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pitch-preview-header {
  background: #1f2c34;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pitch-chat-bubble {
  background: #005c4b;
  color: #e9edef;
  margin: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  max-height: 520px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--slate-900);
  color: #ffffff;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  border-left: 4px solid var(--emerald);
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 820px) {
  .app-header {
    padding: 1rem 1rem 0;
  }
  .main-wrapper {
    padding: 1.25rem 1rem 4rem;
  }
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .units-grid, .banker-grid, .overview-grid {
    grid-template-columns: 1fr;
  }
}
