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

:root {
  /* Dark Mode Variables (Default) */
  --bg-color: #0b0f19;
  --panel-bg: rgba(20, 28, 48, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-peach: #ff8e76;
  --accent-peach-hover: #ff7a5e;
  --accent-peach-light: rgba(255, 142, 118, 0.15);
  --accent-green: #10b981;
  --accent-green-light: rgba(16, 185, 129, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-light: rgba(59, 130, 246, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 0.3s;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

[data-theme="light"] {
  /* Light Mode Variables */
  --bg-color: #f8fafc;
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(0, 0, 0, 0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-peach: #e2583e;
  --accent-peach-hover: #c9462e;
  --accent-peach-light: rgba(226, 88, 62, 0.1);
  --accent-green: #059669;
  --accent-green-light: rgba(5, 150, 105, 0.15);
  --accent-blue: #2563eb;
  --accent-blue-light: rgba(37, 99, 235, 0.15);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 142, 118, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-speed) ease, border var(--transition-speed) ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-peach);
  font-weight: 800;
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-peach), #ffbe94);
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 142, 118, 0.3);
  transform: rotate(45deg);
}

.logo-icon svg {
  transform: rotate(-45deg);
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--panel-border);
}

[data-theme="light"] .nav-links {
  background: rgba(0, 0, 0, 0.03);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

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

.nav-link.active {
  background: var(--accent-peach);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 142, 118, 0.2);
}

.theme-toggle-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-peach);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Main Container styling */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.page-tab {
  display: none;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Hero Section */
.hero-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 480px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--panel-border);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-card:hover .hero-img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 15%, rgba(11, 15, 25, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 15%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
}

.tag-badge {
  background: var(--accent-peach-light);
  border: 1px solid var(--accent-peach);
  color: var(--accent-peach);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-subtitle svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-peach);
  fill: none;
}

/* Grid & Cards */
.grid-container {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 142, 118, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-title svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-peach);
  fill: none;
  stroke-width: 2;
}

/* Property Highlights List */
.highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.highlight-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[data-theme="light"] .highlight-item {
  background: rgba(0, 0, 0, 0.02);
}

.highlight-icon {
  background: var(--accent-peach-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-peach);
  flex-shrink: 0;
}

.highlight-text div {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.highlight-text span {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Embedded Map details */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  margin-bottom: 1rem;
}

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

.map-info-card {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.info-row span:first-child {
  color: var(--text-secondary);
}

.info-row span:last-child {
  font-weight: 600;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  height: 180px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

/* Forms (Login, Maintenance) */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-peach);
  box-shadow: 0 0 0 3px rgba(255, 142, 118, 0.2);
}

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-peach), #ff7a5e);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 142, 118, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 142, 118, 0.4);
}

.form-submit-btn:active {
  transform: translateY(1px);
}

/* Tenant Portal styles */
.portal-login-card {
  max-width: 420px;
  margin: 4rem auto;
}

.portal-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.stat-val.accent {
  color: var(--accent-peach);
}

.stat-val.green {
  color: var(--accent-green);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.user-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

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

.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-peach), #ff7a5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.2rem;
}

.user-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Document Downloads List */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .doc-row {
  background: rgba(0, 0, 0, 0.01);
}

.doc-row:hover {
  border-color: rgba(255, 142, 118, 0.3);
  background: rgba(255, 142, 118, 0.02);
}

.doc-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doc-icon {
  background: var(--accent-blue-light);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.doc-meta h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.doc-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.doc-dl-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-dl-btn:hover {
  background: var(--accent-peach);
  color: #ffffff;
  border-color: var(--accent-peach);
  transform: scale(1.05);
}

.doc-dl-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Modal styling for property visual viewing */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--panel-border);
  position: relative;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 142, 118, 0.8);
}

/* Alerts and Notifications */
.alert-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--accent-green);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.alert-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.alert-toast-icon {
  color: var(--accent-green);
  display: flex;
  align-items: center;
}

.alert-toast-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Footer Section */
footer {
  margin-top: auto;
  border-top: 1px solid var(--panel-border);
  background: var(--panel-bg);
  padding: 2rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-logo span {
  color: var(--accent-peach);
}

/* Keyframes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-card {
    height: 380px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  main {
    padding: 1.5rem 1rem;
  }
  
  .hero-card {
    height: 320px;
    margin-bottom: 2rem;
  }
  
  .hero-overlay {
    padding: 2rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .portal-dashboard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .user-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Settings Configuration Panel & Buttons */
.portal-login-card {
  position: relative;
}

.settings-toggle-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.settings-toggle-btn:hover {
  color: var(--accent-peach);
  border-color: var(--accent-peach);
  transform: rotate(45deg);
}

.settings-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* Owner Dashboard Table & Styling */
table {
  border-spacing: 0;
  width: 100%;
}

th, td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(255, 142, 118, 0.03);
}

[data-theme="light"] tr:hover td {
  background: rgba(226, 88, 62, 0.02);
}

/* FIRST-TIME SETUP WIZARD OVERLAY */
.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.wizard-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1.25rem;
}

.wizard-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.wizard-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Step Indicators */
.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--panel-border);
}

[data-theme="light"] .wizard-steps-indicator {
  background: rgba(0, 0, 0, 0.03);
}

.step-indicator {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
}

.step-indicator span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.step-indicator.active {
  color: var(--accent-peach);
  background: var(--accent-peach-light);
}

.step-indicator.active span {
  background: var(--accent-peach);
  color: #ffffff;
}

.wizard-step-content {
  display: none;
  min-height: 240px;
}

.wizard-step-content.active {
  display: block;
  animation: slideUp 0.4s ease forwards;
}

.wizard-step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--panel-border);
  padding-top: 1.5rem;
}

/* FLOATING AI CHAT WIDGET */
.ai-chat-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-peach), #ff7a5e);
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(226, 88, 62, 0.4);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-chat-toggle-btn:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 28px rgba(226, 88, 62, 0.5);
}

.ai-chat-toggle-btn svg {
  width: 24px;
  height: 24px;
}

.chat-drawer {
  position: fixed;
  bottom: 96px;
  right: -420px; /* Hidden offscreen by default */
  width: 380px;
  height: 540px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-drawer.active {
  right: 24px;
}

.chat-header {
  background: rgba(255, 142, 118, 0.1);
  border-bottom: 1px solid var(--panel-border);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-status-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

.chat-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.chat-close-btn:hover {
  color: var(--accent-peach);
}

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

.msg {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.msg.bot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

[data-theme="light"] .msg.bot {
  background: rgba(0, 0, 0, 0.02);
}

.msg.user {
  background: var(--accent-peach);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 0;
  box-shadow: 0 4px 10px rgba(226, 88, 62, 0.15);
}

/* Typing pulse */
.typing-indicator-wrapper {
  display: flex;
  gap: 4px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  width: fit-content;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

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

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-form {
  border-top: 1px solid var(--panel-border);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-input-form {
  background: rgba(255, 255, 255, 0.5);
}

.chat-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}

.chat-send-btn {
  background: var(--accent-peach);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--accent-peach-hover);
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
}

/* Keyframes */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .chat-drawer {
    width: calc(100% - 32px);
    right: -100%;
    bottom: 80px;
  }
  .chat-drawer.active {
    right: 16px;
  }
  .wizard-card {
    padding: 1.5rem;
  }
}


