/* DOCK 3 BOQ Design Tool - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --black: #0a0a0a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --accent: #0a0a0a;
  --accent-hover: #374151;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --sidebar-w: 280px;
  --summary-w: 320px;
  --header-h: 72px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.app-logo { display: flex; align-items: center; gap: 12px; }
.app-logo img { height: 48px; object-fit: contain; max-width: 260px; }
.app-title { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ─── Progress Bar ───────────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}
.progress-steps {
  display: flex;
  align-items: center;
  padding: 0;
  overflow-x: auto;
  gap: 0;
  list-style: none;
}
.progress-steps li {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  background: var(--gray-200); color: var(--gray-500);
  transition: all 0.2s;
  flex-shrink: 0;
}
.step-label { font-size: 0.75rem; font-weight: 500; color: var(--gray-500); transition: all 0.2s; }
.step-connector { width: 20px; height: 2px; background: var(--gray-200); }
.step-node.active .step-num { background: var(--black); color: var(--white); }
.step-node.active .step-label { color: var(--black); font-weight: 600; }
.step-node.completed .step-num { background: var(--success); color: var(--white); }
.step-node.completed .step-label { color: var(--success); }
.step-connector.completed { background: var(--success); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  height: calc(100vh - var(--header-h) - 52px);
  overflow: hidden;
}
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}
.summary-panel {
  width: var(--summary-w);
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Step Sections ──────────────────────────────────────────────────────── */
.step-section { display: none; animation: fadeIn 0.3s ease; }
.step-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-header { margin-bottom: 28px; }
.step-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.step-header p { color: var(--gray-500); font-size: 0.9rem; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 16px; }

/* ─── Selection Cards ────────────────────────────────────────────────────── */
.select-cards { display: grid; gap: 12px; }
.select-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.select-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.select-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  position: relative;
}
.select-card:hover { border-color: var(--gray-400); box-shadow: var(--shadow-md); }
.select-card.selected { border-color: var(--black); background: var(--gray-50); }
.select-card.selected::after {
  content: '✓';
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px;
  background: var(--black); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}
.select-card .card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.select-card .card-title { font-size: 0.95rem; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.select-card .card-desc { font-size: 0.8rem; color: var(--gray-500); }
.select-card .card-price { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-top: 8px; }
.select-card .badge-recommend {
  display: inline-block;
  background: var(--success); color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  margin-top: 6px; letter-spacing: 0.05em; text-transform: uppercase;
}
.select-card .badge-warning {
  display: inline-block;
  background: #fef3c7; color: var(--warning);
  font-size: 0.65rem; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  margin-top: 4px;
}
.select-card.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ─── Form Inputs ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-select {
  width: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: all 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-input::placeholder { color: var(--gray-400); }
.form-input.error { border-color: var(--danger); }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; }

/* ─── Checkbox Items ─────────────────────────────────────────────────────── */
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  margin-bottom: 8px;
}
.check-item:hover { border-color: var(--gray-300); background: var(--gray-50); }
.check-item.checked { border-color: var(--black); background: var(--gray-50); }
.check-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--black); flex-shrink: 0; }
.check-item .item-info { flex: 1; min-width: 0; }
.check-item .item-name { font-size: 0.88rem; font-weight: 500; color: var(--gray-900); }
.check-item .item-meta { font-size: 0.78rem; color: var(--gray-500); margin-top: 2px; }
.check-item .item-price { text-align: right; flex-shrink: 0; }
.check-item .item-price .unit-price { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.check-item .item-price .subtotal { font-size: 0.78rem; color: var(--gray-400); }

/* ─── Plan Comparison Table ──────────────────────────────────────────────── */
.plan-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.plan-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--white);
  position: relative;
}
.plan-card:hover { border-color: var(--gray-400); }
.plan-card.recommended { border-color: var(--success); background: #f0fdf4; }
.plan-card.selected-plan { border-color: var(--black); background: var(--gray-50); }
.plan-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.plan-items { list-style: none; margin-bottom: 16px; }
.plan-items li { font-size: 0.82rem; color: var(--gray-600); padding: 3px 0; padding-left: 14px; position: relative; }
.plan-items li::before { content: '•'; position: absolute; left: 0; color: var(--gray-400); }
.plan-total { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); padding-top: 12px; border-top: 1px solid var(--gray-200); }
.plan-badge-rec {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--success); color: var(--white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap; text-transform: uppercase;
}
.plan-badge-sel {
  position: absolute; top: -10px; right: 12px;
  background: var(--black); color: var(--white);
  font-size: 0.65rem; padding: 3px 8px; border-radius: 20px;
}

/* ─── Alert Boxes ────────────────────────────────────────────────────────── */
.alert {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.alert-info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-danger { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; outline: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ─── Navigation Buttons ─────────────────────────────────────────────────── */
.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  position: sticky; bottom: 0;
}

/* ─── Summary Panel ──────────────────────────────────────────────────────── */
.summary-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.summary-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); }
.summary-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.summary-item {
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.summary-item:last-child { border-bottom: none; }
.summary-item .s-category { font-size: 0.68rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.summary-item .s-model { font-size: 0.82rem; font-weight: 500; color: var(--gray-800); margin-bottom: 3px; line-height: 1.4; }
.summary-item .s-detail { display: flex; justify-content: space-between; }
.summary-item .s-qty { font-size: 0.78rem; color: var(--gray-500); }
.summary-item .s-subtotal { font-size: 0.82rem; font-weight: 600; color: var(--gray-900); }
.summary-total {
  padding: 16px 20px;
  background: var(--gray-900);
  color: var(--white);
}
.summary-total .total-label { font-size: 0.78rem; font-weight: 500; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; }
.summary-total .total-amount { font-size: 1.4rem; font-weight: 800; margin-top: 2px; }
.summary-actions { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.1); background: var(--gray-900); }
.summary-empty { padding: 40px 20px; text-align: center; color: var(--gray-400); }
.summary-empty i { font-size: 2rem; margin-bottom: 8px; display: block; }
.summary-empty p { font-size: 0.82rem; }

/* ─── Radio Buttons ──────────────────────────────────────────────────────── */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 30px;
  cursor: pointer; transition: all 0.2s;
  font-size: 0.85rem; font-weight: 500; color: var(--gray-700);
}
.radio-pill input { display: none; }
.radio-pill:hover { border-color: var(--gray-400); }
.radio-pill.selected { border-color: var(--black); background: var(--black); color: var(--white); }

/* ─── Section Label ──────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px; margin-top: 4px;
}

/* ─── Tags ───────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.tag-dock { background: #e0e7ff; color: #3730a3; }
.tag-drone { background: #dbeafe; color: #1d4ed8; }
.tag-battery { background: #d1fae5; color: #065f46; }
.tag-drtk { background: #fce7f3; color: #9d174d; }
.tag-accessory { background: #fef3c7; color: #92400e; }
.tag-software { background: #f3e8ff; color: #6d28d9; }
.tag-service { background: #fee2e2; color: #991b1b; }
.tag-draft { background: #fef3c7; color: #92400e; }
.tag-completed { background: #d1fae5; color: #065f46; }

/* ─── Table Styles ───────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  background: var(--gray-50);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem; font-weight: 700;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%; max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transform: translateY(8px); transition: transform 0.2s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); border: none; cursor: pointer;
  font-size: 1rem; color: var(--gray-600); transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex; justify-content: flex-end; gap: 8px;
  background: var(--gray-50);
}

/* ─── Admin Styles ───────────────────────────────────────────────────────── */
.admin-layout { min-height: 100vh; background: var(--gray-50); }
.admin-header {
  background: var(--black);
  color: var(--white);
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-header-logo { display: flex; align-items: center; gap: 12px; }
.admin-header-logo img { height: 44px; filter: brightness(0) invert(1); max-width: 240px; object-fit: contain; }
.admin-nav-tabs {
  display: flex; gap: 4px;
  padding: 20px 32px 0;
  border-bottom: 2px solid var(--gray-200);
  background: var(--white);
}
.admin-tab {
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent; color: var(--gray-500);
  transition: all 0.2s; border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.admin-tab:hover { color: var(--gray-700); }
.admin-tab.active { color: var(--black); border-bottom-color: var(--black); background: transparent; }
.admin-content { padding: 32px; }
.admin-toolbar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* ─── Login Page ─────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1f2937 100%);
}
.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { height: 52px; max-width: 260px; object-fit: contain; }
.login-title { text-align: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.login-sub { text-align: center; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 32px; }

/* ─── Report Page ────────────────────────────────────────────────────────── */
.report-page { background: var(--gray-100); min-height: 100vh; padding: 32px; }
.report-container { max-width: 1000px; margin: 0 auto; }
.report-doc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.report-header {
  padding: 32px 40px;
  border-bottom: 3px solid var(--black);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.report-header img { height: 50px; max-width: 260px; object-fit: contain; }
.report-title-block h1 { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); }
.report-title-block p { font-size: 0.82rem; color: var(--gray-500); }
.report-meta { padding: 20px 40px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.report-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meta-item .meta-label { font-size: 0.7rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; }
.meta-item .meta-value { font-size: 0.92rem; font-weight: 600; color: var(--gray-900); }
.report-body { padding: 32px 40px; }
.report-table-wrap { border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.report-table th {
  background: var(--gray-900); color: var(--white);
  padding: 10px 14px;
  text-align: left; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.report-table td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.report-table tr:last-child td { border-bottom: none; }
.report-table tr:hover td { background: var(--gray-50); }
.report-table .total-row td { background: var(--gray-50); font-weight: 700; font-size: 0.9rem; border-top: 2px solid var(--gray-900); }
.report-footer-notes {
  background: #fffbeb; border: 1px solid #fcd34d;
  border-radius: 8px; padding: 16px 20px; margin-bottom: 24px;
}
.report-footer-notes h4 { font-size: 0.8rem; font-weight: 700; color: #92400e; margin-bottom: 8px; }
.report-footer-notes p, .report-footer-notes li { font-size: 0.8rem; color: #78350f; line-height: 1.7; }
.report-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  padding: 24px 0;
}

/* ─── Dashboard Stats ────────────────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin: 4px 0; }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--gray-400); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .summary-panel { display: none; }
  .select-cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-content { padding: 20px 16px; }
  .select-cards.cols-2, .select-cards.cols-3 { grid-template-columns: 1fr; }
  .plan-compare { grid-template-columns: 1fr; }
  .report-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .step-nav { padding: 16px; }
  .admin-content { padding: 16px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Feedback Floating Button ───────────────────────────────────────────── */
.feedback-fab {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.2s;
  text-decoration: none;
}
.feedback-fab:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.feedback-fab i { font-size: 0.9rem; }

/* ─── Feedback Modal ─────────────────────────────────────────────────────── */
.feedback-modal { max-width: 580px; }

.feedback-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.feedback-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}
.feedback-cat-btn:hover { border-color: var(--gray-400); background: var(--gray-50); }
.feedback-cat-btn.selected { border-color: var(--black); background: var(--black); color: var(--white); }
.feedback-cat-btn .cat-icon { font-size: 1rem; }

/* ─── Image Upload Area ──────────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50);
  position: relative;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--gray-500);
  background: var(--gray-100);
}
.upload-area.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-area.disabled input[type="file"] { pointer-events: none; }
.upload-icon { font-size: 1.6rem; color: var(--gray-400); margin-bottom: 6px; }
.upload-text { font-size: 0.84rem; font-weight: 500; color: var(--gray-600); }
.upload-hint { font-size: 0.76rem; color: var(--gray-400); margin-top: 3px; }
.upload-limit-msg {
  font-size: 0.76rem;
  color: var(--warning);
  font-weight: 600;
  margin-top: 6px;
  display: none;
}

/* ─── Image Preview Grid ─────────────────────────────────────────────────── */
.image-preview-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.image-preview-item {
  position: relative;
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: visible;
  flex-shrink: 0;
}
.image-preview-item img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  display: block;
}
.image-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 10;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.image-preview-remove:hover { transform: scale(1.15); background: #b91c1c; }
.image-preview-name {
  font-size: 0.68rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

/* ─── Feedback Success State ─────────────────────────────────────────────── */
.feedback-success {
  text-align: center;
  padding: 40px 20px;
}
.feedback-success .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.feedback-success h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.feedback-success p  { font-size: 0.85rem; color: var(--gray-500); }

/* ─── Admin Feedback Styles ──────────────────────────────────────────────── */
.feedback-status-new      { background: #fef3c7; color: #92400e; }
.feedback-status-reviewed { background: #dbeafe; color: #1e40af; }
.feedback-status-resolved { background: #d1fae5; color: #065f46; }

.feedback-cat-tag-bug      { background: #fee2e2; color: #991b1b; }
.feedback-cat-tag-feature  { background: #ede9fe; color: #5b21b6; }
.feedback-cat-tag-general  { background: #f0fdf4; color: #166534; }
.feedback-cat-tag-other    { background: var(--gray-100); color: var(--gray-600); }

.admin-note-box {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--gray-800);
}
.admin-note-box:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }

/* ─── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.25s;
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav.hidden { opacity: 0; pointer-events: none; }

/* ─── Feedback thumb in admin ────────────────────────────────────────────── */
.feedback-thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: transform 0.15s;
  margin-right: 4px;
}
.feedback-thumb:hover { transform: scale(1.08); border-color: var(--gray-400); }

.stat-card.highlight { border-color: #fcd34d; background: #fffbeb; }
.stat-card.highlight .stat-value { color: var(--warning); }
