/* ======================================
   SPACEZ CLIENT PRESENTATION APP
   Design System & Component Styles — v2.0
   ====================================== */

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
  --bg-deep: #f5f7f5;
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f5f1;
  --bg-elevated: #f5f8f6;
  --bg-input: #f5f8f6;

  --accent: #1b5e37;
  --accent-hover: #166b3a;
  --accent-glow: rgba(27, 94, 55, 0.08);
  --accent-light: #1b5e37;
  --accent-bg: #e8f5ed;

  --text-primary: #1a2e22;
  --text-secondary: #3d5a48;
  --text-tertiary: #5a7a66;
  --text-muted: #8aaa96;
  --text-dim: #b5cdbf;

  --border: #e2ebe5;
  --border-light: #d0ddd5;
  --border-edit: rgba(27, 94, 55, 0.4);

  --danger: #e74c3c;
  --danger-bg: #fef2f1;
  --success: #2ecc71;
  --success-bg: #edfbf3;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  --shadow-sm: 0 1px 4px rgba(27, 94, 55, 0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(27, 94, 55, 0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(27, 94, 55, 0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 20px rgba(27, 94, 55, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --transition-fast: 0.15s var(--ease);
}

/* ===== BASE ===== */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ===== APP CONTAINER ===== */
.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  min-height: 100vh;
  position: relative;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 12px;
  position: relative;
}

.logo-section { text-align: center; }

.logo-img {
  height: 120px;
  width: auto;
  margin-bottom: 4px;
  transition: transform var(--transition);
  object-fit: contain;
}

.logo-img:hover {
  transform: scale(1.03);
}

.logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent);
  text-transform: uppercase;
}

.tagline {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2.5px;
  margin-top: 4px;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ===== HOME HERO ===== */
.home-hero {
  background: linear-gradient(165deg, #f0f7f2 0%, #e8f5ed 50%, #dff0e5 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid #c8e0d0;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 94, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27, 94, 55, 0.15), transparent);
}

.home-hero .header {
  padding: 0;
  margin-bottom: 16px;
}

.home-hero .logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #1b5e37, #2d8a52);
  border-radius: 2px;
  margin: 12px auto 16px;
}

.hero-tagline {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
  letter-spacing: 0.3px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(27, 94, 55, 0.12);
}

.hero-stat {
  text-align: center;
  padding: 12px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #1b5e37;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 6px;
}

/* ===== ADMIN LOCK BUTTON ===== */
.admin-lock-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  position: absolute;
  right: 0;
  top: 20px;
}

.admin-lock-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== ADMIN TOOLBAR ===== */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(27, 94, 55, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 94, 55, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 0.3s var(--ease);
}

.project-admin-toolbar {
  margin-top: -8px;
}

.admin-tool-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}

.admin-tool-btn i { font-size: 15px; }

.admin-tool-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.admin-tool-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.admin-tool-btn.danger {
  color: var(--danger);
}

.admin-tool-btn.danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

/* ===== PROJECT GROUPS ===== */
.project-group {
  margin-bottom: 20px;
  transition: background var(--transition);
  border-radius: var(--radius-md);
  padding: 2px;
}

.project-group.drag-over-group {
  background: rgba(27, 94, 55, 0.06);
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  margin-bottom: 4px;
}

.group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.group-header-left i {
  color: var(--accent);
  font-size: 18px;
}

.group-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
}

.empty-group-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
}

/* ===== PROJECT GRID ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 8px 0;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 16px 22px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1b5e37, #5dba7d);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.project-card:hover::before { opacity: 1; }
.project-card:active { transform: translateY(-1px); }

/* Drag-and-drop states */
.project-card.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.project-card.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(27, 94, 55, 0.2);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 10px;
  transition: transform var(--transition);
}

.project-card:hover .card-icon { transform: scale(1.1); }

.card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Add card */
.project-card.add-card {
  border: 2px dashed var(--border-light);
  background: transparent;
}
.project-card.add-card .card-icon { color: var(--text-muted); }
.project-card.add-card .card-name { color: var(--text-muted); }
.project-card.add-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.project-card.add-card:hover .card-icon,
.project-card.add-card:hover .card-name { color: var(--accent); }

/* Card delete button (admin mode) */
.card-delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition-fast);
}
.card-delete:hover { transform: scale(1.15); background: #c0392b; }

/* Card logo (image) display */
.card-logo img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}
.project-card:hover .card-logo img { transform: scale(1.1); }

/* Card logo change button (admin mode) */
.card-logo-change {
  position: absolute;
  top: 6px; left: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition-fast);
}
.card-logo-change:hover { transform: scale(1.15); background: var(--accent-dark, #2d6a4f); }

/* ===== ADMIN-ONLY VISIBILITY ===== */
.admin-only { display: none !important; }
body.admin-mode.edit-mode .admin-only { display: flex !important; }
body.admin-mode.edit-mode .admin-only.add-card { display: flex !important; }
body.admin-mode.edit-mode .card-delete { display: flex; }
body.admin-mode.edit-mode .card-logo-change { display: flex; }
body.admin-mode.edit-mode .reset-btn { display: inline; }
body.admin-mode.edit-mode .empty-group-hint { display: block !important; }

/* ===== LOGO UPLOAD AREA (Modal) ===== */
.logo-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.logo-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.logo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.logo-upload-placeholder i {
  font-size: 32px;
  color: var(--accent);
  opacity: 0.7;
}
.logo-upload-placeholder span {
  font-size: 13px;
}
.logo-upload-hint {
  font-size: 11px !important;
  color: var(--text-tertiary);
}

.logo-preview-img {
  max-width: 120px;
  max-height: 100px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.logo-preview-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}
.btn.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
}
.btn.btn-danger:hover {
  background: #c0392b;
}

/* ===== BONUS TOOLS ===== */
.bonus-tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.bonus-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  background: var(--bg-card);
  border: 1px solid transparent;
}

.bonus-tool:hover {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: rgba(27, 94, 55, 0.25);
}

.bonus-tool i { font-size: 16px; }

/* ===== PROJECT DETAIL ===== */
.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  position: relative;
}

.back-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

.project-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.project-title[contenteditable="true"] {
  outline: none;
  border-bottom: 2px dashed var(--border-edit);
  padding-bottom: 2px;
}

.project-title[contenteditable="true"]:focus {
  border-bottom-color: var(--accent);
}

/* ===== TAB BAR ===== */
.tab-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  min-width: 72px;
}

.tab i {
  font-size: 20px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.tab span {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color var(--transition);
}

.tab:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
}
.tab:hover i { color: var(--accent-light); }

.tab.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(27, 94, 55, 0.2);
}
.tab.active i { color: var(--accent-light); }
.tab.active span { color: var(--text-primary); font-weight: 500; }

.tab.empty i { color: var(--text-dim); }
.tab.empty span { color: var(--text-dim); }

/* Tab drag-and-drop states */
.tab.dragging {
  opacity: 0.4;
  transform: scale(0.9);
}

.tab.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(27, 94, 55, 0.2);
  background: var(--accent-glow);
}

/* ===== SECTION CONTENT ===== */
.section-content {
  min-height: 300px;
  animation: fadeIn 0.3s var(--ease);
}

.section-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

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

.section-title i { color: var(--accent); font-size: 22px; }

/* ===== EDITABLE TEXT ===== */
.editable-text {
  transition: all var(--transition-fast);
  border-radius: var(--radius-xs);
  padding: 2px 4px;
  margin: -2px -4px;
}

body.edit-mode .editable-text {
  border: 1px dashed var(--border-light);
  cursor: text;
}

body.edit-mode .editable-text:hover {
  border-color: var(--accent);
  background: rgba(27, 94, 55, 0.08);
}

body.edit-mode .editable-text:focus {
  outline: none;
  border-color: var(--accent);
  border-style: solid;
  background: var(--bg-input);
}

/* ===== FIELD VISIBILITY TOGGLE ===== */
.vis-toggle {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-fast);
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.vis-toggle.vis-on {
  background: var(--accent-glow);
  color: var(--accent);
}

.vis-toggle.vis-off {
  background: var(--danger-bg);
  color: var(--danger);
}

.vis-toggle:hover {
  transform: scale(1.15);
}

/* Field hidden state (admin view, dimmed) */
.field-hidden {
  opacity: 0.4;
  position: relative;
}

.field-hidden::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--danger);
  opacity: 0.4;
  pointer-events: none;
}

.cover-field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.overview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

/* ===== IMAGE HANDLING ===== */
.image-slot {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
  border: 2px solid transparent;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  width: 100%;
  height: 100%;
  min-height: 180px;
}

.image-placeholder i { font-size: 40px; color: var(--text-dim); }
.image-placeholder span { font-size: 12px; }

body.edit-mode .image-slot {
  cursor: pointer;
  border-color: var(--border-light);
  border-style: dashed;
}

body.edit-mode .image-slot:hover { border-color: var(--accent); }

.image-actions {
  position: absolute;
  bottom: 8px; right: 8px;
  gap: 4px;
  display: none;
}

body.admin-mode.edit-mode .image-actions { display: flex; }

.image-actions button {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.image-actions .change-btn {
  background: #1b5e37;
  color: white;
}
.image-actions .change-btn:hover { background: var(--accent); }

.image-actions .delete-btn {
  background: rgba(231, 76, 60, 0.9);
  color: white;
}
.image-actions .delete-btn:hover { background: var(--danger); }

/* ===== COVER SECTION ===== */
.cover-hero {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.cover-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cover-field {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  position: relative;
}

.cover-field-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 500;
}

/* ===== OVERVIEW SECTION ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.overview-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--accent);
  transition: all var(--transition);
  position: relative;
}

.overview-item:hover { background: var(--bg-card-hover); }

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

/* ===== AVAILABILITY TABLE ===== */
.avail-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.avail-filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition);
}

.avail-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.avail-filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.avail-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.avail-table thead {
  background: var(--bg-elevated);
}

.avail-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.avail-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.avail-table tbody tr:nth-child(even) {
  background: rgba(27, 94, 55, 0.02);
}

.avail-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.avail-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-available {
  background: var(--success-bg);
  color: #27ae60;
}

.status-booked {
  background: var(--danger-bg);
  color: var(--danger);
}

.avail-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.avail-input:focus {
  outline: none;
  border-color: var(--accent);
}

.avail-select {
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.avail-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== COST SHEET TABLE ===== */
.cost-table .cost-amount {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cost-table .cost-note {
  color: var(--text-muted);
  font-size: 12px;
}

.cost-total-row {
  background: var(--accent-glow) !important;
  border-top: 2px solid var(--accent) !important;
}

.cost-total-row td {
  border-bottom: none;
  font-size: 14px;
}

.cost-amount-input {
  font-weight: 600;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item { position: relative; }
.gallery-item .image-slot { aspect-ratio: 4/3; }

.gallery-caption {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== MASTER PLAN ===== */
.master-plan-container { margin-bottom: 16px; }
.master-plan-container .image-slot { aspect-ratio: 4/3; min-height: 300px; }

.master-plan-description {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FLOOR PLANS ===== */
.floor-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.floor-plan-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}

.floor-plan-card:hover { box-shadow: var(--shadow-sm); }
.floor-plan-card .image-slot { aspect-ratio: 1/1; }

.floor-plan-info {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floor-plan-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.floor-plan-size {
  font-size: 12px;
  color: var(--accent-light);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ===== AMENITIES ===== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.amenity-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 18px 8px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.amenity-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.amenity-item > i {
  font-size: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.amenity-item > .amenity-name {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.amenity-delete {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
}

.amenity-delete:hover { background: #c0392b; }
body.admin-mode.edit-mode .amenity-delete { display: flex; }

/* ===== LIST SECTIONS ===== */
.list-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  position: relative;
  transition: all var(--transition);
}

.list-item:hover { background: var(--bg-card-hover); }

.list-item-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item-icon i { font-size: 20px; color: var(--accent); }

.list-item-content { flex: 1; min-width: 0; }

.list-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.list-item-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.list-item-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.item-delete {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.item-delete:hover { background: var(--danger); color: white; }
body.admin-mode.edit-mode .item-delete { display: flex; }

/* ===== PAYMENT PLAN ===== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.payment-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition);
}

.payment-item:hover { background: var(--bg-card-hover); }

.payment-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.payment-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-light);
}

/* ===== VIDEOS ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.video-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}

.video-item:hover { box-shadow: var(--shadow-sm); }

.video-embed {
  aspect-ratio: 16/9;
  width: 100%;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-url-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.video-url-input:focus { outline: none; border-color: var(--accent); }

/* ===== ADD BUTTON ===== */
.add-btn {
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
  margin-top: 14px;
}

.add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== COMING SOON ===== */
.coming-soon {
  text-align: center;
  padding: 52px 20px;
}

.coming-soon i {
  font-size: 52px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: block;
}

.coming-soon h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.coming-soon p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
}

/* ===== LOGIN FORM ===== */
.login-form {
  animation: fadeIn 0.3s var(--ease);
}

.login-form .form-group {
  margin-bottom: 16px;
}

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

.login-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.login-form .form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 46, 34, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s var(--ease);
  position: relative;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title i { color: var(--accent); }

/* ===== EMI CALCULATOR ===== */
.emi-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emi-field label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emi-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.emi-field input:focus { outline: none; border-color: var(--accent); }

.emi-result {
  background: var(--accent-glow);
  border: 1px solid rgba(27, 94, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 8px;
}

.emi-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.emi-label { font-size: 12px; color: var(--text-tertiary); }

.emi-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.emi-breakdown-item { text-align: center; }
.emi-breakdown-value { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.emi-breakdown-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ===== REVIEWS ===== */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.review-rating { color: #f39c12; font-size: 14px; letter-spacing: 2px; }

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-field {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.contact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.qr-container {
  text-align: center;
  padding: 24px;
}

.qr-container img {
  border-radius: var(--radius-md);
  background: white;
  padding: 10px;
}

/* ===== ICON PICKER ===== */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 8px 0 4px;
}

.icon-option {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-fast);
}

.icon-option:hover,
.icon-option.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

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

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.3);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-block { width: 100%; }

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

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: white;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s var(--ease), fadeOut 0.3s var(--ease) 2.5s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success { background: #27ae60; color: white; }
.toast.error { background: var(--danger); color: white; }
.toast.info { background: var(--accent); color: white; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.screen { animation: fadeIn 0.3s var(--ease); }

/* ===== BROCHURE IMPORT ===== */
.import-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.import-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.import-method:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.import-method i {
  font-size: 32px;
  color: var(--accent);
}

.import-method-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.import-method-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.brochure-processing {
  text-align: center;
  padding: 40px 20px;
}

.brochure-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brochure-processing-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.brochure-processing-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.extract-review {
  max-height: 55vh;
  overflow-y: auto;
  margin-bottom: 16px;
}

.extract-section {
  margin-bottom: 16px;
}

.extract-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.extract-section-title i {
  font-size: 16px;
}

.extract-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extract-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.extract-field-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.extract-field-status.found {
  background: #27ae60;
}

.extract-field-status.missing {
  background: var(--text-dim);
}

.extract-field-label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.extract-field input {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition-fast);
  min-width: 0;
}

.extract-field input:hover {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.extract-field input:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--accent);
}

.extract-field input.extracted {
  font-weight: 500;
}

.extract-field input.placeholder-val {
  color: var(--text-muted);
  font-style: italic;
}

.extract-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(27, 94, 55, 0.15);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.extract-summary i {
  color: var(--accent);
  font-size: 18px;
}

.extract-summary strong {
  color: var(--accent);
}

.extract-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.extract-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

/* ===== EXTRACTION PROGRESS BAR ===== */
.extract-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.extract-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light, #52b788));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.extract-progress-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.extract-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.extract-step {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.extract-step.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent);
  animation: stepPulse 1.5s ease-in-out infinite;
}

.extract-step.done {
  color: var(--success, #2d6a4f);
  background: rgba(45, 106, 79, 0.1);
  border-color: var(--success, #2d6a4f);
}

.extract-step.done i::before {
  content: '\eb7b'; /* ti-check */
}

@keyframes stepPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== EXTRACTION IMAGE GRID ===== */
.extract-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.extract-image-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all var(--transition-fast);
}

.extract-image-thumb.cover-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.extract-image-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.extract-image-label {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 0;
  background: var(--bg-elevated);
}

.cover-thumb .extract-image-label {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== SECTION PILLS (filled sections) ===== */
.extract-sections-filled {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.extract-section-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--success, #2d6a4f);
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.extract-section-pill i {
  font-size: 10px;
}

/* Section badge label */
.extract-section-badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 8px;
  font-style: italic;
}

/* ===== FOOTER ===== */
.app-footer {
  text-align: center;
  padding: 24px 20px;
  margin-top: 16px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 10px;
  font-family: inherit;
  text-decoration: underline;
  margin-top: 8px;
  display: none;
}

.reset-btn:hover { color: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .payment-grid, .gallery-grid, .contact-grid,
  .videos-grid, .floor-plans-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .cover-info { grid-template-columns: 1fr; }
  .bonus-tools { flex-wrap: wrap; }
  .app { padding: 12px 14px; }
  .admin-toolbar {
    padding: 6px 10px;
    gap: 4px;
  }
  .admin-tool-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .admin-tool-btn span {
    display: none;
  }
  .admin-tool-btn i {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .amenities-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .floor-plans-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== LIGHTBOX & ZOOM CONTROLS ===== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  animation: fadeIn 0.3s var(--ease);
  user-select: none;
  touch-action: none;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  z-index: 3010;
  padding: 8px 16px;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-tool-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-tool-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent, #6366f1);
  transform: scale(1.1);
}

.lightbox-tool-btn:active {
  transform: scale(0.95);
}

.lightbox-tool-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 52px;
  text-align: center;
}

.lightbox-tool-badge:hover {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
}

.lightbox-close {
  position: relative;
  top: 0; right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--danger, #ef4444);
  transform: scale(1.1);
}

.lightbox-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 10px 0;
}

.lightbox-viewport img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transform-origin: center center;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.13, 1);
  will-change: transform;
  cursor: zoom-in;
}

.lightbox-viewport img.zoomed {
  cursor: grab;
}

.lightbox-viewport img.dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  max-width: 80%;
  z-index: 3010;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3010;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent, #6366f1);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Inline Viewer Zoom Controls */
.viewer-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.zoom-level-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-level-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.image-slot img {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 8px; width: 42px; height: 42px; font-size: 22px; }
  .lightbox-next { right: 8px; width: 42px; height: 42px; font-size: 22px; }
  .lightbox-zoom-toolbar { padding: 4px 8px; gap: 4px; }
  .lightbox-tool-btn { width: 32px; height: 32px; font-size: 16px; }
  .lightbox-top-bar { padding: 4px 8px; }
}

/* ===== V3 SPECIFIC STYLES ===== */

/* Admin Tab Visibility Toggle */
.tab-vis-toggle {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.tab-vis-toggle:hover {
  opacity: 1;
  background: rgba(0,0,0,0.05);
}
.tab-hidden {
  opacity: 0.5;
  border-bottom: 2px dashed var(--border) !important;
}
.tab-hidden:hover {
  opacity: 0.8;
}

/* Home Screen Ongoing Sub-Groups */
.ongoing-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.ongoing-main-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
  justify-content: space-between;
}
.project-subgroup {
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.project-subgroup:last-child {
  margin-bottom: 0;
}
.subgroup-header {
  cursor: pointer;
  padding: 16px;
  margin-bottom: 0;
  background: var(--bg-elevated);
  transition: background var(--transition);
  border-bottom: 1px solid transparent;
}
.subgroup-header:hover {
  background: var(--bg-card-hover);
}
.category-grid {
  padding: 16px;
  transition: all var(--transition);
  transform-origin: top;
}
.category-grid.collapsed {
  display: none;
}
.group-chevron {
  transition: transform var(--transition);
  color: var(--text-secondary);
}
.group-chevron.rotated {
  transform: rotate(-90deg);
}

/* --- PPT & Brochure Viewer --- */
.ppt-viewer {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-light);
}

.ppt-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default for PPT */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* Dark background behind slides */
  overflow: hidden;
}

#brochure-slider {
  aspect-ratio: auto;
  min-height: 400px;
  max-height: 80vh;
}

.ppt-slide {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.ppt-slide.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.ppt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  width: 100%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
}

.ppt-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.ppt-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
  border-color: var(--primary);
}

.ppt-btn:active {
  transform: scale(0.95);
}

.ppt-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: center;
}

/* ===== ITEM & SECTION DRAG & MOVE STYLES ===== */
.item-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  cursor: grab;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  user-select: none;
}

.item-drag-handle:hover {
  color: var(--accent);
  background: var(--bg-hover);
}

.item-drag-handle:active {
  cursor: grabbing;
}

.list-item {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-item.item-dragging,
.amenity-item.item-dragging,
.floor-plan-card.item-dragging,
.gallery-item.item-dragging,
.payment-item.item-dragging {
  opacity: 0.45;
  border: 2px dashed var(--accent) !important;
  background: var(--bg-hover) !important;
}

.list-item.item-drag-over,
.amenity-item.item-drag-over,
.floor-plan-card.item-drag-over,
.gallery-item.item-drag-over,
.payment-item.item-drag-over {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent) !important;
  transform: translateY(-2px) scale(1.01);
}

/* Section Move & Reorder Controls */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section-move-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.section-move-btn {
  background: var(--bg-elevated, rgba(255,255,255,0.06));
  border: 1px solid var(--border-light, rgba(255,255,255,0.1));
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s ease;
}

.section-move-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

.section-move-btn:active {
  transform: scale(0.95);
}

.reorder-sections-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.reorder-section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.reorder-section-item.hidden-sec {
  opacity: 0.5;
}

.reorder-section-item.item-drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.reorder-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 18px;
}
.reorder-handle:active {
  cursor: grabbing;
}

/* ===== ICON PICKER MODAL STYLES ===== */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.icon-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  user-select: none;
}

.icon-picker-item i {
  font-size: 24px;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.icon-picker-item span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.icon-picker-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.icon-picker-item:hover i {
  color: var(--accent);
}

.icon-picker-item.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.icon-picker-item.selected i,
.icon-picker-item.selected span {
  color: #ffffff !important;
}

.amenity-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.amenity-icon-box:hover {
  transform: scale(1.15);
}

.change-icon-overlay {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.amenity-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== FLOOR PLAN BHK FOLDER STYLES ===== */
.fp-card-image-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  border: 1px solid var(--border-light);
}

.fp-card-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.fp-card-image-slot:hover img {
  transform: scale(1.04);
}

.fp-folder-badge-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(18, 18, 24, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fp-folder-thumb-card {
  transition: all 0.2s ease;
}

.fp-folder-thumb-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.footer-visitor-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.footer-visitor-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
