/* ===== ORION DEMO CABINET — DESIGN SYSTEM ===== */

:root {
  --primary: #0F3460;
  --primary-hover: #1A3A5C;
  --primary-light: #EFF6FF;
  --primary-100: #E0EDFF;
  --bg-page: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --green: #10B981;
  --green-bg: #D1FAE5;
  --green-text: #065F46;
  --red: #EF4444;
  --red-bg: #FEE2E2;
  --red-text: #991B1B;
  --amber: #F59E0B;
  --amber-bg: #FEF3C7;
  --amber-text: #92400E;
  --blue-bg: #E0EDFF;
  --blue-text: #1E40AF;
  --gray-bg: #F3F4F6;
  --gray-text: #6B7280;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-badge: 999px;
  --radius-input: 8px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.1);
  --sidebar-width: 240px;
  --header-height: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  height: var(--header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar-logo img {
  height: 34px;
  width: auto;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  list-style: none;
  overflow-y: auto;
}

.sidebar-nav li {
  margin: 2px 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-nav a:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left: 4px solid var(--primary);
  margin-left: -4px;
  padding-left: 16px;
}

.sidebar-nav a .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-badge);
  margin-left: auto;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.header-profile-info {
  display: flex;
  flex-direction: column;
}

.header-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-profile-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.content {
  flex: 1;
  padding: 28px 32px;
}

/* ===== METRIC CARDS ===== */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

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

.metric-card.accent:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(15,52,96,0.3);
}

.metric-card.accent {
  background: var(--primary);
  color: #fff;
}

.metric-card.accent .metric-label {
  color: rgba(255,255,255,0.7);
}

.metric-card.accent .metric-value {
  color: #fff;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-badge);
  width: fit-content;
}

.metric-trend.up {
  background: var(--green-bg);
  color: var(--green-text);
}

.metric-card.accent .metric-trend.up {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Metric card arrow icon */
.metric-card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.metric-card:hover .metric-card-arrow {
  background: rgba(0,0,0,0.08);
  transform: translate(2px, -2px);
}

.metric-card.accent .metric-card-arrow {
  background: rgba(255,255,255,0.15);
}

.metric-card.accent:hover .metric-card-arrow {
  background: rgba(255,255,255,0.25);
}

.metric-card {
  position: relative;
}

/* ===== DEAL BANNER ===== */
.deal-banner {
  background: var(--green-bg);
  border: 1px solid #A7F3D0;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.deal-banner-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-banner-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-text);
  text-decoration: underline;
  cursor: pointer;
}

/* ===== ONBOARDING BANNER ===== */
.onboarding-banner {
  background: var(--primary-light);
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.onboarding-banner .banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.onboarding-banner .banner-text {
  font-size: 13px;
  color: var(--blue-text);
  flex: 1;
}

.onboarding-banner .banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.onboarding-banner .banner-close:hover {
  color: var(--text-primary);
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-count {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== REQUEST CARDS ===== */
.request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.request-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-100);
}

.request-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.request-number {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.offers-count-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  margin-left: auto;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.request-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.request-card-details {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.request-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.request-detail-item .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

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

.request-requirements {
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-page);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  font-weight: 500;
}

.request-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-width: 160px;
}

/* ===== TIMER ===== */
.timer {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.timer.critical {
  color: #dc2626;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green { background: var(--green-bg); color: var(--green-text); }
.badge-blue { background: var(--blue-bg); color: var(--blue-text); }
.badge-amber { background: var(--amber-bg); color: var(--amber-text); }
.badge-gray { background: var(--gray-bg); color: var(--gray-text); }
.badge-red { background: var(--red-bg); color: var(--red-text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

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

.btn-danger {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
}

.btn-danger:hover {
  background: var(--red-bg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn:disabled, .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all 0.15s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,52,96,0.12);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* ===== CHIPS (BONUSES) ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
  user-select: none;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photo-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.photo-upload-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.photo-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.photo-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== COMPETITORS BLOCK ===== */
.competitors-block {
  background: var(--bg-page);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 24px;
}

.competitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.competitor-row.own {
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  margin: 4px -14px;
}

.best-price-badge {
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-badge);
}

/* ===== REQUEST DETAIL ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.detail-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-page);
}

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

.detail-row-label {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.detail-full {
  grid-column: 1 / -1;
}

/* ===== OFFER FORM ===== */
.offer-form {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.offer-form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.price-input-wrap {
  position: relative;
}

.price-input-wrap .form-input {
  padding-right: 40px;
}

.price-input-wrap .currency {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.delivery-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-option {
  padding: 8px 16px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}

.delivery-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.delivery-option.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== DEALS TABLE ===== */
.deals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}

.deal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deal-buyer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-buyer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.deal-contact {
  display: flex;
  flex-direction: column;
}

.deal-contact-name {
  font-size: 14px;
  font-weight: 600;
}

.deal-contact-phone {
  font-size: 13px;
  color: var(--text-secondary);
}

.deal-card-body {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.deal-info-item {
  font-size: 13px;
  color: var(--text-secondary);
}

.deal-info-item strong {
  color: var(--text-primary);
}

.deal-status-select {
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  background: var(--bg-card);
}

.deal-status-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,52,96,0.12);
}

/* ===== COMPLETED REQUESTS ===== */
.completed-header-info {
  background: var(--bg-page);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  border-left: 4px solid var(--border);
}

.completed-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}

.completed-offer-summary {
  background: var(--bg-page);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}

/* ===== SETTINGS ===== */
.settings-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-bottom: 20px;
}

.settings-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: all 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brand-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.brand-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.brand-checkbox.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.pagination-btn {
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}

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

.pagination-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(10px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease;
}

.toast.success { background: var(--green-text); }
.toast.error { background: var(--red); }

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

/* ===== SUPPORT PAGE ===== */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question:hover {
  background: var(--bg-page);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding: 0 20px 16px;
  max-height: 500px;
}

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

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 72px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 4px;
}

.empty-state-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.empty-state-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 280px;
  line-height: 1.5;
}

/* ===== HIDE / NOT PARTICIPATE ===== */
.hide-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.hide-btn:hover {
  background: var(--red-bg);
  color: var(--red);
}

/* ===== FAILURE REASON SELECT ===== */
.failure-reason-group {
  margin-top: 12px;
  padding: 16px;
  background: var(--bg-page);
  border-radius: var(--radius-btn);
  display: none;
}

.failure-reason-group.visible {
  display: block;
}

/* ===== SEGMENTED CONTROL ===== */
.segmented-control {
  display: inline-flex;
  background: var(--bg-page);
  border-radius: var(--radius-btn);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}

.segmented-btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.segmented-btn:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.03);
}

.segmented-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.segmented-btn.active-green {
  background: var(--green-bg);
  color: var(--green-text);
}

.segmented-btn.active-red {
  background: var(--red-bg);
  color: var(--red-text);
}

/* ===== BONUS TAGS ===== */
.bonus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  min-height: 28px;
}

.bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 500;
  animation: tagAppear 0.2s ease;
}

.bonus-tag-remove {
  cursor: pointer;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--primary);
  transition: all 0.15s;
  border: none;
  background: transparent;
  font-family: var(--font);
  line-height: 1;
  padding: 0;
}

.bonus-tag-remove:hover {
  background: rgba(15,52,96,0.15);
}

@keyframes tagAppear {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.bonus-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.bonus-input-row .form-input {
  flex: 1;
}

.bonus-input-row .btn {
  flex-shrink: 0;
}

/* ===== PHOTO GALLERY (for demo car photos) ===== */
.offer-photos {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.offer-photo {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.offer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== DROPDOWN ARROW FIX ===== */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.lightbox-overlay.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Make all offer/preview photos clickable */
.offer-photo img,
.photo-preview img {
  cursor: zoom-in;
}

/* ===== DEAL STATUS DROPDOWN ===== */
.deal-status-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.deal-status-row .form-label {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-secondary);
}

.deal-status-select {
  padding: 8px 36px 8px 12px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  background: var(--bg-card);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.15s ease;
}

.deal-status-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

/* ===== CTA BADGE FOR ZERO OFFERS ===== */
.offers-count-badge.cta {
  background: var(--primary);
  color: #fff;
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 52, 96, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(15, 52, 96, 0); }
}
