/* Modern Premium Glassmorphic CSS for Karawal Nagar Properties App */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
  --panel-bg: rgba(17, 24, 39, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-hover-border: rgba(245, 158, 11, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-teal: #06b6d4;
  --accent-teal-hover: #0891b2;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-shadow-gold: 0 0 15px rgba(245, 158, 11, 0.2);
  --glow-shadow-teal: 0 0 15px rgba(6, 118, 212, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) rgba(17, 24, 39, 0.5);
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* App Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.5rem;
  box-shadow: var(--glow-shadow-gold);
}

.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #000000;
  box-shadow: var(--glow-shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128c7e;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.btn-call {
  background: var(--accent-teal);
  color: var(--text-dark);
}

.btn-call:hover {
  background: var(--accent-teal-hover);
  box-shadow: var(--glow-shadow-teal);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 4rem 5% 3rem 5%;
  text-align: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(6, 182, 212, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Quick search banner in Hero */
.search-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.4rem;
}

.search-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
}

.search-field select, 
.search-field input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-field select:focus, 
.search-field input:focus {
  border-color: var(--accent-gold);
  box-shadow: var(--glow-shadow-gold);
  background: rgba(255, 255, 255, 0.08);
}

.search-field option {
  background: #111827;
  color: var(--text-main);
}

.search-submit-btn {
  align-self: flex-end;
  height: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

/* Localities fast filter chips */
.loc-chips-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.chip:hover, .chip.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: var(--glow-shadow-gold);
}

/* Main Dashboard Grid */
.dashboard-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  padding: 1rem 5% 5rem 5%;
}

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.listings-count {
  font-size: 1.1rem;
  font-weight: 600;
}

.listings-count span {
  color: var(--accent-gold);
}

/* Property Grid and Cards */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.property-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  border-color: var(--panel-hover-border);
  box-shadow: var(--glow-shadow-gold);
}

.property-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #1f2937;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.property-card:hover .property-img {
  transform: scale(1.08);
}

.purpose-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.purpose-badge.sale {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.purpose-badge.rent {
  background: var(--accent-teal);
  color: var(--text-dark);
}

.price-tag-overlay {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
}

.property-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: white;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.property-location svg {
  color: var(--accent-gold);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.property-specs {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.25rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spec-item strong {
  color: var(--text-main);
}

.property-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.property-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

/* Sidebar Info & Dealers Panel */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dealers-panel {
  padding: 1.5rem;
}

.dealers-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: white;
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.6rem;
}

.dealer-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dealer-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.dealer-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.dealer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dealer-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
}

.dealer-exp {
  font-size: 0.7rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-teal);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.dealer-spec {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dealer-contact {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.dealer-contact .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

/* Modal Popup (Property Details & Listing Form) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  padding: 2.5rem;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal-btn:hover {
  color: var(--accent-gold);
}

/* Property Detail View inside Modal */
.modal-prop-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.modal-prop-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.modal-prop-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.modal-prop-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-contact-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.modal-contact-info h4 {
  font-size: 0.95rem;
  color: white;
  margin-bottom: 0.2rem;
}

.modal-contact-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Listing Property Form Styling */
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
}

.listing-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 200px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group option {
  background: #111827;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 185, 129, 0.95);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transform: translateY(150%);
  transition: transform var(--transition-normal);
}

.toast.active {
  transform: translateY(0);
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state svg {
  width: 60px;
  height: 60px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.3rem;
  color: white;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--panel-border);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(9, 13, 22, 0.9);
}

footer span {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Floating AI Chatbot Styles */
.ai-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle-btn {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: var(--text-dark);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35), var(--glow-shadow-gold);
  transition: all var(--transition-normal);
  position: relative;
}

.chat-btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: inherit;
  filter: blur(10px);
  opacity: 0.4;
  z-index: -1;
  animation: btnGlow 3s infinite ease-in-out;
}

@keyframes btnGlow {
  0%, 100% { transform: scale(1.0); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

.chat-toggle-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5), 0 0 25px rgba(245, 158, 11, 0.4);
}

.chat-notification-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #090d16;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s both;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.chat-container-box {
  width: 380px;
  height: 520px;
  position: absolute;
  bottom: 5rem;
  right: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 18, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.15);
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.chat-container-box.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  border-color: rgba(6, 182, 212, 0.35);
}

.chat-header {
  padding: 1.1rem 1.4rem;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-avatar-container {
  position: relative;
  width: 42px;
  height: 42px;
}

.chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.chat-avatar-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1px dashed var(--accent-gold);
  border-radius: 50%;
  opacity: 0.6;
  animation: spinRing 15s linear infinite;
}

@keyframes spinRing {
  100% { transform: rotate(360deg); }
}

.chat-status-dot {
  width: 11px;
  height: 11px;
  background-color: var(--accent-green);
  border-radius: 50%;
  position: absolute;
  bottom: 0px;
  right: 0px;
  border: 2px solid #111827;
}

.chat-status-dot.pulse {
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.2px;
}

.chat-header p {
  font-size: 0.72rem;
  color: var(--accent-green);
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.chat-close-btn:hover {
  color: #ef4444;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: rgba(9, 13, 22, 0.45);
  scroll-behavior: smooth;
}

/* Chat Bubbles Entry */
.chat-bubble {
  max-width: 82%;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: bubbleSlideIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  opacity: 0;
  transform: translateY(12px);
}

@keyframes bubbleSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-left-radius: 2px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0891b2 100%);
  color: var(--text-dark);
  font-weight: 600;
  border-top-right-radius: 2px;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.chat-bubble b {
  color: var(--accent-gold);
}
.chat-bubble.user b {
  color: var(--text-dark);
  text-decoration: underline;
}

/* Typing Indicator Animation */
.typing-indicator-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 55px;
  padding: 0.9rem 1.1rem !important;
}

.typing-indicator-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.3); opacity: 0.4; }
  40% { transform: scale(1.0); opacity: 1; }
}

/* Quick Replies chips bar */
.chat-quick-replies {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  overflow-x: auto;
  background: rgba(17, 24, 39, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.chat-quick-replies::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.reply-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-teal);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reply-chip:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

.chat-input-row {
  padding: 0.9rem 1.2rem;
  background: rgba(17, 24, 39, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.chat-input-row input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.chat-input-row input:focus {
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.chat-input-row button {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
  box-shadow: var(--glow-shadow-gold);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-input-row button:hover {
  transform: scale(1.08) rotate(5deg);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@media (max-width: 480px) {
  .chat-container-box {
    width: calc(100vw - 2rem);
    height: 440px;
    bottom: 4.5rem;
  }
}

/* Chat results list & cards formatting */
.chat-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.6rem 0;
  max-width: 100%;
}

.chat-result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-result-card:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-teal);
  transform: translateY(-1px);
}

.chat-result-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-result-meta {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Voice to Text (Mic Buttons) Styling */
.chat-mic-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-mic-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.3);
}

.input-with-mic {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.input-with-mic input,
.input-with-mic textarea {
  flex-grow: 1;
}

.form-mic-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  width: 44px;
  flex-shrink: 0;
}

.form-mic-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.3);
}

.chat-mic-btn.recording,
.form-mic-btn.recording {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* File Upload Styles */
.file-upload-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  width: 100%;
}

.file-upload-container:hover {
  border-color: var(--accent-gold);
}

/* Owner Admin Dashboard Table Styling */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
  color: var(--accent-teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table td a {
  color: var(--accent-gold);
  text-decoration: none;
}

.admin-table td a:hover {
  text-decoration: underline;
}

.btn-delete-prop {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-delete-prop:hover {
  background: #ef4444;
  color: white;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 5% 5rem 5%;
  border-top: 1px solid var(--panel-border);
  background: rgba(9, 13, 22, 0.4);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.testimonials-header h2 span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonials-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--panel-hover-border);
  box-shadow: var(--glow-shadow-gold);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-user-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.testimonial-user-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.testimonial-user-info p {
  font-size: 0.75rem;
  color: var(--accent-teal);
  font-weight: 500;
}

.testimonial-stars {
  display: flex;
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.testimonial-comment {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  position: relative;
}

.testimonial-comment::before {
  content: '“';
  font-size: 3rem;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  opacity: 0.08;
  font-family: serif;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 5% 5rem 5%;
  border-top: 1px solid var(--panel-border);
  background: rgba(9, 13, 22, 0.2);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.faq-header h2 span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: var(--panel-hover-border);
  box-shadow: var(--glow-shadow-gold);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

