:root {
  --bg-primary: #000000;
  --bg-secondary: #2f2f2f;
  --bg-tertiary: #3a3a3a;
  --text-primary: #ececec;
  --text-secondary: #8e8e8e;
  --border-color: #3a3a3a;
  --accent: #10a37f;
  --accent-hover: #1a7f64;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-tertiary: #ececec;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e5e5e5;
  --accent: #10a37f;
  --accent-hover: #1a7f64;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 25%, #2d1b3d 50%, #1e2a4a 75%, #0f1419 100%);
  color: #ffffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Language Switch Button */
.lang-switch {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

/* Fixed lang-switch shown in empty state */
.lang-switch-fixed {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
}

[dir="rtl"] .lang-switch-fixed {
  right: auto;
  left: 16px;
}

/* Hide fixed lang-switch when navbar is visible */
.navbar.visible ~ .lang-switch-fixed,
.lang-switch-fixed.hidden {
  display: none;
}

/* Nav lang-switch only visible inside navbar */
.lang-switch-nav {
  display: none;
}

.navbar.visible .lang-switch-nav {
  display: inline-block;
}

/* RTL Support (Arabic) */
[dir="rtl"] body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] .navbar-logo {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .input-wrapper-clear input {
    padding-right: 12px;
    padding-left: 36px;
}

[dir="rtl"] .clear-btn {
    right: auto;
    left: 8px;
}

/* Navbar - hidden initially */
.navbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}

.navbar.visible {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.navbar-title {
  font-size: 1rem;
  font-weight: 500;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 8px;
}

.theme-toggle img {
  width: 20px;
  height: 20px;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-chat-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  gap: 6px;
}

.new-chat-btn:hover {
  background: var(--bg-tertiary);
}

.new-chat-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
}

.logo-icon {
  width: 130px;
  margin-bottom: 16px;
}

.navbar-logo {
  width: 35px;
  height: 35px;
  margin-right: 8px;
}

.navbar-title {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
}

/* Main chat area */
/* .chat-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px 0;
            display: flex;
            flex-direction: column;
        } */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chat-container.visible {
  /* Use flex-based height instead of hardcoded value for better responsiveness */
  height: auto;
  min-height: 0;
  flex: 1;
}

.messages-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  flex: 1;
}

/* Empty state - centered layout */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
  max-width: 400px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Centered input in empty state */
.empty-state .input-container-centered {
  display: flex;
  align-items: flex-end;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 8px 8px 8px 16px;
  width: 100%;
  max-width: 600px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.empty-state .input-container-centered:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.15);
}

/* Form Container */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 768px;
}

/* Selected Chips as Dropups */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.selected-chips:empty {
  display: none;
  margin-bottom: 0;
}

/* Chip Mode Toggle (Buy/Sell) */
.chip-mode-toggle {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 0;
}

.chip-mode-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
}

.chip-mode-btn:hover {
  color: var(--text-primary);
}

.chip-mode-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: white;
}

.chip-dropup {
  position: relative;
  display: inline-flex;
}

.chip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.chip-trigger:hover {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.chip-trigger:focus {
  border-color: #2563EB;
  background: var(--bg-tertiary);
}

.chip-dropup.open .chip-trigger {
  border-color: #2563EB;
}

.chip-trigger .chip-label {
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-trigger .chip-value {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.chip-trigger .chip-icon {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

.chip-trigger .chip-arrow {
  width: 10px;
  height: 10px;
  fill: var(--text-secondary);
  transition: transform 0.2s;
  margin-left: 2px;
}

.chip-dropup.open .chip-arrow {
  transform: rotate(180deg);
}

.chip-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  cursor: pointer;
}

.chip-trigger .chip-clear {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
  padding: 2px;
  border-radius: 50%;
  transition: background 0.2s, fill 0.2s;
}

.chip-clear-btn:hover .chip-clear {
  background: transparent;
  fill: var(--text-primary);
}

/* Chip input wrapper clear button */
.chip-input-wrapper .chip-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.chip-input-wrapper .chip-clear-btn:hover {
  background: transparent;
}

.chip-input-wrapper .chip-clear {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
}

.chip-dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  min-width: 150px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-dropdown-menu::-webkit-scrollbar {
  display: none;
}

.chip-dropup.open .chip-dropdown-menu {
  display: block;
}

.chip-dropdown-menu.location-menu {
  min-width: 280px;
}

.chip-dropdown-menu .chip-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.chip-dropdown-menu .chip-search input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.chip-dropdown-menu .chip-search input:focus {
  border-color: var(--accent);
}

.chip-dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
  color: var(--text-primary);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chip-dropdown-item .location-name {
  flex: 1;
}

.chip-dropdown-item:hover {
  background: var(--bg-tertiary);
}

.chip-dropdown-item.selected {
  background: var(--accent);
  color: white;
}

.chip-dropdown-item:first-child,
.chip-search+.chip-dropdown-item {
  border-radius: 12px 12px 0 0;
}

.chip-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.chip-dropdown-items {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-dropdown-items::-webkit-scrollbar {
  display: none;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-group {
  position: relative;
}

.form-group.location-group {
  width: 60%;
}

.form-group:not(.location-group) {
  width: 40%;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  /* padding: 12px 16px; */
  /* background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-primary); */
  /* font-size: 14px; */
  font-family: inherit;
  /* outline: none; */
  /* transition: border-color 0.2s, box-shadow 0.2s; */
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  height: 56px;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group input:hover,
.form-group .custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

.form-group input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Input with clear button */
.input-wrapper-clear {
  position: relative;
  width: 100%;
}

.input-wrapper-clear input {
  padding-right: 44px;
}

[dir="rtl"] .input-wrapper-clear input {
  padding-right: 12px;
  padding-left: 36px;
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 10;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.clear-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

.clear-btn.visible {
  display: flex;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 190px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 20rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.autocomplete-dropdown::-webkit-scrollbar {
  display: none;
}

.autocomplete-dropdown.visible {
  display: block;
}

.autocomplete-item {
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.autocomplete-item .location-name {
  flex: 1;
}

.autocomplete-item:hover,
.autocomplete-item.keyboard-focus {
  background: var(--bg-tertiary);
}

.autocomplete-item:last-child {
  border-radius: 0 0 12px 12px;
}

.autocomplete-loading {
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  /* padding: 12px 16px; */
  /* background: var(--bg-secondary); */
  /* border: 1px solid var(--border-color); */
  /* border-radius: 12px; */
  /* color: var(--text-secondary); */
  /* font-size: 14px; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0 24px;
  font-size: 16px;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  min-width: 160px;
  height: 56px;
  box-sizing: border-box;
}

.custom-select-trigger.has-value {
  color: var(--text-primary);
}

.custom-select-trigger:hover {
  border-color: var(--accent);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.15);
}

.select-arrow {
  width: 12px;
  height: 12px;
  fill: var(--text-secondary);
  transition: transform 0.2s;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 190px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  max-width: 8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-select-dropdown::-webkit-scrollbar {
  display: none;
}

.custom-select.open .custom-select-dropdown {
  display: block;
}

.custom-select-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
}

.custom-select-item:hover,
.custom-select-item.keyboard-focus {
  background: var(--bg-tertiary);
}

.custom-select-item.selected {
  background: var(--accent);
  color: white;
}

.custom-select-item:first-child {
  border-radius: 12px 12px 0 0;
}

.custom-select-item:last-child {
  border-radius: 0 0 12px 12px;
}

/* Form fade animation */
.form-container.loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Submit button */
/* .submit-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
            width: 10%;
            min-width: fit-content;
            overflow: hidden;
        } */
.submit-btn {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%) !important;
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  height: 54px;
  box-sizing: border-box;
}

/* Buy/Sell Switcher */
.mode-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mode-switcher-container {
  display: flex;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.mode-btn {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.mode-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.mode-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

/* Form field visibility for mode switching */
.form-field-buy,
.form-field-sell {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-field-buy.hidden,
.form-field-sell.hidden {
  display: none;
}

.submit-btn:hover:not(:disabled):not(.loading) {
  background: var(--accent-hover);
}

.submit-btn:disabled {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.submit-btn.loading {
  pointer-events: none;
}

/* Icon wrapper */
.btn-icon-wrapper {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.submit-btn .btn-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: opacity 0.3s, transform 0.3s;
}

.submit-btn .tick-icon {
  opacity: 1;
  transform: scale(1);
}

.submit-btn .spinner-icon {
  opacity: 0;
  transform: scale(0.5);
}

.submit-btn.loading .tick-icon {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.submit-btn.loading .spinner-icon {
  opacity: 1;
  transform: scale(1);
  animation: spin 1s linear infinite;
}

/* Text wrapper - cube rotation effect */
.btn-text-wrapper {
  position: relative;
  height: 1.2em;
  white-space: nowrap;
  overflow: hidden;
}

.btn-text {
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text-primary {
  transform: translateY(0);
}

.btn-text-secondary {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.submit-btn.loading .btn-text-primary {
  transform: translateY(-100%);
}

.submit-btn.loading .btn-text-secondary {
  transform: translateY(0);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.suggestion-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--text-primary);
}

.suggestion-chip:hover {
  background: var(--bg-tertiary);
}

/* Message styles */
.message {
  padding: 16px 0;
  display: flex;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.message.user {
  flex-direction: row-reverse;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.message.bot .avatar {
  background: transparent;
}

.message.user .avatar {
  background: transparent;
}

.message-content {
  flex: 1;
  line-height: 1.6;
  font-size: 15px;
  max-width: 100%;
}

.message.user .message-content {
  text-align: right;
}

.message-content p {
  margin-bottom: 12px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.3;
  background: linear-gradient(74deg, #714DFF 0%, #9C83FF 23%, #E151FF 81%, #FFF759 100%) padding-box;
  color: #fff0;
  background-clip: text;
  -webkit-background-clip: text;
}

/* .message-content h1 {
            font-size: 22px;
            font-weight: 700;
            margin: 0 0 16px 0;
            color: var(--accent);
            line-height: 1.3;
            color: #2563EB;
            background-clip: text;
        } */

.message-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 32px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.message-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px 0;
}

.message-content ul,
.message-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.message-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.message-content strong {
  font-weight: 600;
}

/* Loading indicator */
.loading-dots {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Bottom input area - hidden initially */
.input-area {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: none;
}

.input-area.visible {
  display: block;
}

.input-wrapper {
  max-width: 768px;
  margin: 0 auto;
  position: relative;
}

.input-container {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 8px 8px 8px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container:hover {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.input-container:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  resize: none;
  max-height: 200px;
  min-height: 24px;
  line-height: 1.5;
  padding: 4px 0;
}

textarea::placeholder {
  color: var(--text-secondary);
}

.send-btn {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}

.send-btn:hover {
  background: linear-gradient(135deg, #467aec 0%, #1d3481 100%);
  transform: scale(1.05);
}

.send-btn:disabled {
  background: #0f5aca86;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

canvas {
  background: transparent;
  opacity: 1;
  width: 300px;
  margin: 35px;
}

.gemini-loader-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader-logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo-wrapper::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: conic-gradient(#4285f4, #9b72cb, #d96570, #4285f4);
  filter: blur(1px);
  opacity: 0.4;
  animation: rotate 2s linear infinite;
  z-index: 1;
}

.gemini-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate-full 2s linear infinite;
}

.gemini-path {
  stroke-dasharray: 1, 150;
  stroke-dashoffset: 0;
  animation: dash-logic 1.5s ease-in-out infinite;
}

.inner-logo {
  width: 22px;
  height: 22px;
  z-index: 2;
  /* Optional: subtle pulse to match the vibe */
  animation: logo-pulse 2s ease-in-out infinite;
}

.loader-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.5s ease;
}

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

@keyframes dash-logic {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 110, 150;
    /* Expand to nearly full */
    stroke-dashoffset: -25;
  }

  100% {
    stroke-dasharray: 110, 150;
    stroke-dashoffset: -140;
    /* Shrink and chase tail */
  }
}

@keyframes logo-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.92);
    opacity: 0.8;
  }
}


.sell-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
}

.property-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.transactions-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.transactions-table th,
.transactions-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.transactions-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

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

.transactions-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Sell Response Content Styles */
.sell-response-content {
  margin-bottom: 24px;
}

.sell-response-content h1,
.sell-response-content h2,
.sell-response-content h3 {
  margin-top: 20px;
  margin-bottom: 12px;
}

.sell-response-content h1:first-child,
.sell-response-content h2:first-child {
  margin-top: 0;
}

.sell-response-content ul,
.sell-response-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.sell-response-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.section-header svg {
  color: #2563EB;
}

.no-data {
  color: var(--text-secondary);
  font-style: italic;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
}

.price-cell {
  font-weight: 600;
  color: #10B981;
}

.roi-cell {
  font-weight: 500;
  color: #F59E0B;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.new {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.status-badge.renewed,
.status-badge.renew {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.status-badge.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* Pricing Cards Styles */
.pricing-cards-container {
  margin: 24px 0;
}

.pricing-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pricing-section-icon {
  font-size: 20px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-gradient);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card.fast {
  border-color: rgba(16, 185, 129, 0.3);
}

.pricing-card.market {
  border-color: rgba(59, 130, 246, 0.3);
}

.pricing-card.ambitious {
  border-color: rgba(139, 92, 246, 0.3);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pricing-icon {
  font-size: 20px;
}

.pricing-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-badge {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: var(--card-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--card-color);
  font-weight: 600;
}

/* Responsive pricing cards */
@media (max-width: 600px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-amount {
    font-size: 20px;
  }
}

/* ============ BUY MODE COMPONENTS ============ */

/* Buy Response Content */
.buy-response-content {
  margin-bottom: 20px;
}

.buy-response-content h1,
.buy-response-content h2 {
  margin-top: 16px;
  margin-bottom: 10px;
}

.buy-response-content h1:first-child {
  margin-top: 0;
}

/* Warnings Container */
.warnings-container {
  margin-bottom: 20px;
}

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  margin-bottom: 8px;
  color: #FCA5A5;
  font-size: 13px;
  line-height: 1.5;
}

.warning-item svg {
  flex-shrink: 0;
  color: #EF4444;
  margin-top: 2px;
}

/* Market Health Dashboard */
.market-health-container {
  margin: 20px 0;
}

.market-health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.health-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.health-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.health-label {
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.health-value {
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 6px;
}

.health-detail {
  font-size: 11px;
   color: #fff;
  line-height: 1.4;
}

/* Active Listings */
.listings-container {
  margin: 20px 0;
}

.listings-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.listings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-card {
  display: block;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.listing-card:hover {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

.listing-price {
  font-size: 16px;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 4px;
}

.listing-title {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.listing-detail {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.listing-detail svg {
  opacity: 0.7;
}

.listing-detail.price-sqft {
  color: #F59E0B;
  font-weight: 500;
}

.listings-more {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Responsive for market health and listings */
@media (max-width: 480px) {
  .market-health-grid {
    grid-template-columns: 1fr;
  }

  .listings-summary {
    flex-direction: column;
    gap: 10px;
  }

  .listing-details {
    gap: 8px;
  }
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */
[dir="rtl"] body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

[dir="rtl"] .navbar-logo {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .input-wrapper-clear input {
  padding-right: 12px;
  padding-left: 36px;
}

[dir="rtl"] .clear-btn {
  right: auto;
  left: 12px;
}

[dir="rtl"] .custom-select-trigger svg {
  margin-left: 0;
  margin-right: 8px;
}

[dir="rtl"] .autocomplete-dropdown {
  text-align: right;
}


[dir="rtl"] .message .avatar {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .message.user .message-content {
  text-align: left;
}

[dir="rtl"] .message.bot .message-content {
  text-align: right;
}

[dir="rtl"] .chip-trigger {
  flex-direction: row-reverse;
}

[dir="rtl"] .chip-dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .send-btn {
  margin-left: 0;
  margin-right: 8px;
}

[dir="rtl"] .send-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .form-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .navbar-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .new-chat-btn svg {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .transactions-table th,
[dir="rtl"] .transactions-table td {
  text-align: right;
}

[dir="rtl"] .property-details-grid {
  text-align: right;
}

[dir="rtl"] .section-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .section-header svg {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .health-card,
[dir="rtl"] .listing-card {
  text-align: right;
}

[dir="rtl"] .listing-detail {
  flex-direction: row-reverse;
}

[dir="rtl"] .listing-detail svg {
  margin-left: 4px;
  margin-right: 0;
}

/* Location Badge Styles */
.location-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.location-badge-project {
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.location-badge-building {
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* RTL support for location badges */
[dir="rtl"] .autocomplete-item,
[dir="rtl"] .chip-dropdown-item {
  flex-direction: row-reverse;
}

/* ============================================
   SELL RESULT REDESIGNED
   ============================================ */

.sell-result-redesign {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Section */
.sell-hero {
  text-align: center;
  padding: 8px 0 16px;
}

.sell-hero-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(74deg, #714DFF 0%, #9C83FF 23%, #E151FF 81%, #FFF759 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.sell-hero-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Property Info Bar */
.sell-property-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 24px;
}

.sell-property-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.sell-property-icon {
  font-size: 16px;
}

/* Market Stats */
.sell-market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.sell-stat-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.sell-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.sell-stat-icon {
  font-size: 36px;
  min-width: 50px;
  text-align: center;
}

.sell-stat-content {
  display: flex;
  flex-direction: column;
}

.sell-stat-content h3 {
  font-size: 11px;
  color: #888;
  margin: 9px 0 2px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.sell-stat-content p {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Pricing Section */
.sell-pricing-section {
  margin: 8px 0;
}

.sell-pricing-header {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

.sell-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sell-pricing-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sell-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.sell-pricing-card.recommended {
  border-color: #2563EB;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.sell-recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.sell-pricing-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.sell-pricing-label {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: fit-content;
}

.sell-pricing-card.fast .sell-pricing-label {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}

.sell-pricing-card.market .sell-pricing-label {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: #93C5FD;
}

.sell-pricing-card.ambitious .sell-pricing-label {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: #C4B5FD;
}

.sell-pricing-amount {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.sell-pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sell-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.sell-pricing-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.sell-pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  font-weight: 700;
  font-size: 13px;
  color: #3B82F6;
}

.sell-pricing-card.fast .sell-pricing-features li::before {
  color: #10B981;
}

.sell-pricing-card.market .sell-pricing-features li::before {
  color: #3B82F6;
}

.sell-pricing-card.ambitious .sell-pricing-features li::before {
  color: #8B5CF6;
}

.sell-pricing-select-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.sell-pricing-select-btn:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

/* Strategic Analysis */
.sell-analysis-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.sell-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.sell-analysis-section p {
  font-size: 14px;
  color: white;
  line-height: 1.7;
}

/* Expert Recommendation */
.sell-recommendation-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.sell-recommendation-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sell-recommendation-card p {
  font-size: 14px;
  color: white;
  line-height: 1.7;
  margin-bottom: 20px;
}

.sell-recommendation-card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.recommendation-pill {
  background: #ffffff;
  color: #000000;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  line-height: 1.4;
}

/* Action Buttons */
.sell-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sell-action-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sell-action-btn.primary {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: white;
}

.sell-action-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.sell-action-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.sell-action-btn.secondary:hover {
  background: var(--bg-tertiary);
}

/* Share Toast */
.share-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #10B981;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Responsive - Sell Redesigned */
@media (max-width: 768px) {
  .sell-market-stats {
    grid-template-columns: 1fr;
  }

  .sell-pricing-grid {
    grid-template-columns: 1fr;
  }

  .sell-property-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sell-action-buttons {
    flex-direction: column;
  }

  .sell-action-btn {
    width: 100%;
    justify-content: center;
  }

  .sell-hero-title {
    font-size: 18px;
  }

  .sell-pricing-amount {
    font-size: 20px;
  }
}

/* RTL Support - Sell Redesigned */
[dir="rtl"] .sell-property-bar {
  flex-direction: row-reverse;
}

[dir="rtl"] .sell-property-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .sell-stat-card {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .sell-pricing-features li {
  padding-left: 0;
  padding-right: 22px;
}

[dir="rtl"] .sell-pricing-features li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .sell-hero {
  direction: rtl;
}

[dir="rtl"] .sell-analysis-section,
[dir="rtl"] .sell-recommendation-card {
  text-align: right;
}

[dir="rtl"] .sell-action-buttons {
  flex-direction: row-reverse;
}