/* Custom design system for Vancouver Real Estate & Property Management H5 Platform */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* HSL Color Tokens - Premium Wealth Management Theme */
  --gold-hue: 43;
  --gold-sat: 65%;
  --gold-light: 53%;
  
  --primary-gold: hsl(var(--gold-hue), var(--gold-sat), var(--gold-light));
  --primary-gold-hover: hsl(var(--gold-hue), var(--gold-sat), calc(var(--gold-light) - 8%));
  --primary-gold-alpha: hsla(var(--gold-hue), var(--gold-sat), var(--gold-light), 0.15);
  
  /* Theme variables (Dark by default for ultra-premium look) */
  --bg-main: #0a0b0d;
  --bg-panel: #14161a;
  --bg-card: #1c1e24;
  --bg-input: #262930;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-secondary: #d1d5db;
  
  --border-color: rgba(212, 175, 55, 0.15);
  --border-light: rgba(255, 255, 255, 0.05);
  
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(28, 30, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px);
}

/* Light Theme overrides */
[data-theme="light"] {
  --bg-main: #f3f4f6;
  --bg-panel: #ffffff;
  --bg-card: #f9fafb;
  --bg-input: #f3f4f6;
  
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-secondary: #4b5563;
  
  --border-color: rgba(184, 134, 11, 0.2);
  --border-light: rgba(0, 0, 0, 0.06);
  
  --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Shell Layout: Left Panel for explanation/controller, Right for iPhone screen */
.shell-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

.control-panel {
  flex: 1;
  max-width: 480px;
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-light);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.preview-panel {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: var(--bg-main);
  position: relative;
}

/* Typography & General Styles */
h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] h1 {
  background: linear-gradient(135deg, #111827 0%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-gold);
  margin-bottom: 12px;
  font-weight: 600;
}

/* Controller List */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.menu-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-item:hover, .menu-item.active {
  border-color: var(--primary-gold);
  background-color: var(--primary-gold-alpha);
  transform: translateY(-2px);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-gold);
  transition: background-color 0.2s ease;
}

.menu-item.active .menu-icon {
  background-color: var(--primary-gold);
  color: #000;
}

.menu-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.menu-details p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Theme Toggle */
.theme-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

/* iPhone Screen Simulator */
.phone-frame {
  width: 375px;
  height: 812px;
  border-radius: 44px;
  background-color: #000000;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 12px #262930;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island / Notch */
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 1000;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background-color: var(--bg-main);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  padding-bottom: 20px;
}

/* Home Indicator Bar */
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background-color: var(--text-main);
  opacity: 0.5;
  border-radius: 3px;
  z-index: 1000;
  pointer-events: none;
}

/* H5 Screen General Layouts */
.h5-screen {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding-top: 36px;
  padding-bottom: 20px;
  flex-direction: column;
  animation: fadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.h5-screen.active {
  display: flex;
}

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

/* Screen Headers */
.h5-header {
  height: 48px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  z-index: 10;
}

.h5-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.header-back-btn {
  background: none;
  border: none;
  color: var(--primary-gold);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.header-back-btn:hover {
  background-color: var(--primary-gold-alpha);
}

/* Chat & Overlay Form Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--primary-gold);
  background-size: cover;
  background-position: center;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>');
}

.chat-status {
  display: flex;
  flex-direction: column;
}

.chat-status-name {
  font-size: 12px;
  font-weight: 600;
}

.chat-status-indicator {
  font-size: 9px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status-indicator::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #10b981;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-bubble.assistant {
  background-color: var(--bg-card);
  align-self: flex-start;
  border-top-left-radius: 4px;
  border: 1px solid var(--border-light);
}

.chat-bubble.user {
  background-color: var(--primary-gold);
  color: #000000;
  align-self: flex-end;
  border-top-right-radius: 4px;
  font-weight: 500;
}

.chat-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}

.chat-chip {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  text-align: center;
}

.chat-chip:hover {
  background-color: var(--primary-gold);
  color: #000000;
  border-color: var(--primary-gold);
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-panel);
}

.chat-input {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0 16px;
  font-size: 13px;
  outline: none;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Screening Form Overlay */
.screening-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  z-index: 500;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.close-form {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.close-form:hover {
  color: var(--primary-gold);
}

/* Scoring Badges & Dashboard layout */
.score-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.score-badge.grade-a {
  background-color: rgba(16, 185, 129, 0.15);
  border: 4px solid #10b981;
  color: #10b981;
}

.score-badge.grade-f {
  background-color: rgba(239, 68, 68, 0.15);
  border: 4px solid #ef4444;
  color: #ef4444;
}

.score-val-big {
  font-size: 32px;
}
.score-grade-txt {
  font-size: 14px;
}

.result-details-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.rule-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

.rule-line:last-child {
  margin-bottom: 0;
}

.rule-icon.success {
  color: #10b981;
}
.rule-icon.failed {
  color: #ef4444;
}

/* Screen 2: Map & Landlord Switch Headers */
.portal-toggle-header {
  height: 40px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}

.portal-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.portal-tab.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
  background-color: var(--primary-gold-alpha);
}

/* Map Screen Layouts */
.map-container {
  display: none;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.map-container.active {
  display: flex;
}

.map-search-box {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 36px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  box-shadow: var(--shadow-premium);
}

.map-search-input {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 11px;
  width: 100%;
  outline: none;
}

.map-view {
  flex: 1;
  background-color: #14171c;
  position: relative;
  overflow: hidden;
}

.map-canvas-mock {
  width: 100%;
  height: 100%;
  background-color: #181b22;
  position: relative;
}

.map-canvas-mock::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-district-label {
  position: absolute;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.6;
}

.label-richmond { top: 60%; left: 20%; }
.label-burnaby { top: 35%; left: 55%; }
.label-vancouver { top: 25%; left: 15%; }

.map-pin {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.2s ease;
  z-index: 10;
}

.map-pin:hover, .map-pin.active {
  transform: translate(-50%, -100%) scale(1.2);
  z-index: 20;
}

.pin-icon {
  width: 24px;
  height: 24px;
  background-color: #000;
  border: 2px solid var(--primary-gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pin-icon::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--primary-gold);
  border-radius: 50%;
}

.map-pin.sold .pin-icon {
  border-color: #6b7280;
}
.map-pin.sold .pin-icon::after {
  background-color: #6b7280;
}

.map-private-area {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.08);
  border: 1.5px dashed var(--primary-gold);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-private-area::after {
  content: "🔒 暗盘街区";
  font-size: 8px;
  color: var(--primary-gold);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 8px;
}

.map-bottom-card {
  position: absolute;
  bottom: 24px;
  left: 12px;
  right: 12px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 150;
  box-shadow: var(--shadow-premium);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-gold);
}

.card-tag {
  font-size: 9px;
  background-color: var(--primary-gold-alpha);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.card-address {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.card-specs {
  font-size: 10px;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.card-btn {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.card-btn.primary {
  background-color: var(--primary-gold);
  color: #000000;
}

.card-btn.secondary {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

/* Landlord Portal Styles */
.landlord-portal-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.landlord-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
}

.landlord-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary-gold-alpha);
  border: 1px solid var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.landlord-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.landlord-stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.landlord-stat-val {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.landlord-stat-lbl {
  font-size: 9px;
  color: var(--text-muted);
}

.landlord-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 0.5px;
}

/* Ledger & Tables */
.ledger-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: left;
}

.ledger-table th, .ledger-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
}

.ledger-table th {
  background-color: var(--bg-input);
  font-weight: 600;
  color: var(--text-muted);
}

.ledger-table tr:last-child td {
  border-bottom: none;
}

.badge-active {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 8px;
}

/* Applicant logs list */
.applicant-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.applicant-item-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-grade-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.score-grade-badge.grade-a {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
}
.score-grade-badge.grade-f {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* Audit logs styling */
.audit-log-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-log-line {
  font-size: 10px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.audit-time {
  color: var(--primary-gold);
  font-weight: 600;
  white-space: nowrap;
}

.audit-text {
  color: var(--text-secondary);
}

/* Screen 3: Vendor Marketplace Styles */
.vendor-container {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.vendor-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.membership-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.membership-card {
  flex: 0 0 180px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.membership-level {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.membership-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.membership-price span {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.membership-features {
  font-size: 9px;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.membership-card.preferred {
  border-color: rgba(59, 130, 246, 0.4);
}
.membership-card.preferred .membership-level {
  color: #3b82f6;
}

.membership-card.elite {
  border-color: var(--primary-gold);
  background-color: var(--primary-gold-alpha);
}
.membership-card.elite .membership-level {
  color: var(--primary-gold);
}

.vendor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vendor-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.vendor-info {
  flex: 1;
}

.vendor-badge {
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 700;
}

.vendor-badge.elite-badge {
  background-color: var(--primary-gold-alpha);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
}
.vendor-badge.preferred-badge {
  background-color: rgba(59, 130, 246, 0.15);
  border: 1px solid #3b82f6;
  color: #3b82f6;
}
.vendor-badge.basic-badge {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.vendor-call-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vendor-call-btn:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #000;
}

/* Screen 4: Admin Workbench Styles (Updated) */
.admin-container {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.admin-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--primary-gold);
  animation: slideUp 0.3s ease;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card-tag {
  font-size: 8px;
  background-color: var(--primary-gold-alpha);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.admin-card-desc {
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.4;
}

.admin-draft-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: pre-wrap;
}

.admin-card-btn {
  height: 28px;
  border-radius: 14px;
  background-color: var(--primary-gold);
  color: #000;
  border: none;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-card-btn:hover {
  background-color: var(--primary-gold-hover);
}

/* Tenant repair & Category styling overrides */
.form-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-desc {
  font-size: 9px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.form-select, .form-textarea {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 11px;
  padding: 8px;
  outline: none;
}

.form-select {
  height: 36px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.form-textarea {
  height: 50px;
  resize: none;
}

.form-submit-btn {
  width: 100%;
  height: 36px;
  border-radius: 18px;
  background-color: var(--primary-gold);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 0.2s ease;
}

/* Toast message styling */
.toast-msg {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(16, 185, 129, 0.95);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 11px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none;
  animation: toastFade 2.5s ease forwards;
}

@keyframes toastFade {
  0% { transform: translate(-50%, 20px); opacity: 0; }
  10% { transform: translate(-50%, 0); opacity: 1; }
  90% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, -20px); opacity: 0; }
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Simulated SMS Slide-in overlay on simulated iPhone */
.sms-notification-overlay {
  position: absolute;
  top: 50px;
  left: 12px;
  right: 12px;
  background-color: rgba(28, 30, 36, 0.95);
  border: 1.5px solid var(--primary-gold);
  border-radius: 14px;
  padding: 12px;
  z-index: 2000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  cursor: pointer;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sms-sender {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-gold);
}

.sms-time {
  font-size: 9px;
  color: var(--text-muted);
}

.sms-body {
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.4;
}

/* Styles for Sub-tabs inside Sales, Leasing & Vendor Workspaces */
.sales-tab-content, .leasing-tab-content, .vendor-admin-tab-content {
  display: none;
}
.sales-tab-content.active, .leasing-tab-content.active, .vendor-admin-tab-content.active {
  display: block;
}

.global-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.rule-line {
  margin-bottom: 8px;
}

/* Scraped Listings Styles */
.scraped-item-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}
.scraped-item-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}
.scraped-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scraped-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}
.scraped-item-tag {
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
}
.scraped-item-body {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.scraped-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.scraped-item-meta {
  font-size: 9px;
  color: var(--text-muted);
}
.scraped-item-action-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background-color: var(--primary-gold-alpha);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scraped-item-action-btn:hover {
  background-color: var(--primary-gold);
  color: #000;
}

/* Clickable schedule widget */
.today-schedule-widget {
  background-color: var(--primary-gold-alpha);
  border: 1.5px solid var(--primary-gold);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.today-schedule-widget:hover {
  transform: translateY(-2px);
  background-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.today-schedule-widget:active {
  transform: translateY(0);
}

