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

:root {
  --bg: #0f0f13;
  --bg2: #16161e;
  --bg3: #1e1e2a;
  --border: #2a2a3a;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --photo-color: #22c55e;
  --name-color: #3b82f6;
  --business-color: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  background: rgba(15, 15, 23, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  /* Slightly larger box */
  height: 44px;
  /* Slightly larger box */
  background: rgba(108, 99, 255, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(108, 99, 255, 0.25);
  overflow: hidden;
  /* Keeps the scaled image within the rounded corner boundary */
  backdrop-filter: blur(10px);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.1);
  /* Adjust this number up or down until the camera icon fills the square perfectly */
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.logo-accent {
  background: linear-gradient(135deg, #6c63ff, #9f7aea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tab-nav {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

/* ===== APP LAYOUT ===== */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg);
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
  display: none;
  /* hidden on desktop */
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar-link.active {
  background: rgba(108, 99, 255, 0.15);
  color: #a78bfa;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.sidebar-footer .user-badge {
  margin-bottom: 16px;
}


.tab-svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.user-profile-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
}

#userWelcome {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 24px;
  width: 100%;
  overflow-y: auto;
}

.content-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.tab-section {
  display: none;
}

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

/* ===== SELECTION PANELS (Designer top bar) ===== */
.selection-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
  background: var(--bg2);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: center;
}

.selection-panels label {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  font-size: 14px;
}

.selection-panels select {
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 180px;
  cursor: pointer;
}

.selection-panels select:focus {
  border-color: var(--accent);
}

.selection-panels select option {
  background: var(--bg3);
  color: var(--text);
}

/* ===== MODULE LAYOUT ===== */
.module-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.generator-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
  align-items: start;
}

/* ===== PANELS ===== */
.canvas-panel,
.settings-panel,
.input-panel,
.preview-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

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

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  padding: 20px;
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-prompt:hover {
  border-color: var(--accent);
}

.upload-icon {
  font-size: 48px;
  opacity: 0.5;
}

.upload-prompt p {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.upload-prompt span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== CANVAS WRAPPER ===== */
.canvas-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.preview-container {
  position: relative;
  display: inline-block;
  user-select: none;
  cursor: default;
  max-width: 100%;
}

.preview-container img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ===== DRAG ELEMENTS ===== */
.drag-element {
  position: absolute;
  cursor: move;
  border: 2px solid var(--photo-color);
  background: rgba(34, 197, 94, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 30px;
  transition: background 0.15s;
}

.drag-element:hover {
  background: rgba(34, 197, 94, 0.25);
}

.drag-element.active-drag {
  background: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

#nameBox {
  border-color: var(--name-color);
  background: rgba(59, 130, 246, 0.15);
  cursor: move;
  white-space: nowrap;
  overflow: hidden;
}

#nameBox:hover {
  background: rgba(59, 130, 246, 0.25);
}

#nameBox.active-drag {
  background: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

#businessBox {
  border-color: var(--business-color);
  background: rgba(245, 158, 11, 0.15);
  cursor: move;
  white-space: nowrap;
  overflow: hidden;
}

#businessBox:hover {
  background: rgba(245, 158, 11, 0.25);
}

#businessBox.active-drag {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.drag-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  padding: 2px 6px;
}

.resize-handle {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: var(--photo-color);
  border-radius: 2px;
  cursor: se-resize;
}

/* ===== CANVAS ACTIONS ===== */
.canvas-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ===== SETTINGS PANEL ===== */
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.settings-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.settings-tab:hover {
  color: var(--text);
  background: var(--bg3);
}

.settings-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}

.settings-content {
  display: none;
  padding: 16px;
}

.settings-content.active {
  display: block;
}

/* ===== FIELD GROUPS ===== */
.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.field-group input[type="text"],
.field-group input[type="number"],
.field-group input[type="password"],
.field-group input[type="tel"],
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--accent);
}

.field-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.field-group select option {
  background: var(--bg3);
}

.color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.radius-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.radius-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.radius-row span {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

.color-row input[type="color"] {
  width: 40px;
  height: 36px;
  padding: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.color-row input[type="text"] {
  flex: 1;
}

/* ===== IMPORT/EXPORT ===== */
.import-export {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ===== GENERATOR ===== */
.input-panel .field-group {
  padding: 16px 20px 0;
}

.input-panel .field-group:first-child {
  padding-top: 20px;
}

.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--bg3);
}

.photo-upload-area:hover {
  border-color: var(--accent);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
}

.photo-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
}

#userPhotoPreview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gen-actions {
  padding: 20px;
}

.warning-box {
  margin: 0 20px 20px;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  color: var(--warning);
  font-size: 13px;
}

.warning-box p {
  margin-top: 4px;
  opacity: 0.8;
}

/* ===== OUTPUT AREA ===== */
.preview-panel {
  display: flex;
  flex-direction: column;
}

.output-area {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.output-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.output-placeholder p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.output-placeholder span {
  font-size: 12px;
}

#outputCanvas {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.download-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ===== GENERATOR LAYOUT ===== */
#tab-generator .module-layout {
  grid-template-columns: 360px 1fr;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  width: 100%;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  pointer-events: none;
  max-width: 320px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: var(--success);
  color: var(--success);
}

.toast.error {
  border-color: var(--danger);
  color: var(--danger);
}

/* ===== LEGEND ===== */
.element-legend {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-dot.photo {
  background: var(--photo-color);
}

.legend-dot.name {
  background: var(--name-color);
}

.legend-dot.business {
  background: var(--business-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .module-layout {
    grid-template-columns: 1fr;
  }

  #tab-generator .module-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
  }

  .main-content {
    padding: 16px;
  }
}

/* ===== LANDING PAGE ===== */
.landing-page {
  background: radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  scroll-behavior: smooth;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-nav .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  width: 100%;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-content .badge {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent2);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

.btn-hero {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ===== LOGIN MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card {
  position: relative;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(108, 99, 255, 0.15);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

/* Modal form states */
.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-form p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.auth-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.demo-credentials {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.demo-credentials code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent2);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-muted);
  font-size: 16px;
}

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

.feature-card {
  background: rgba(22, 22, 30, 0.5);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(22, 22, 30, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 36px;
  color: var(--accent2);
  width: 60px;
  height: 60px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== HOW TO USE SECTION ===== */
.how-to-section {
  padding: 80px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
}

.section-badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(108, 99, 255, 0.3);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Timeline Layout */
.timeline-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

/* ===== INQUIRY SECTION ===== */
.inquiry-section {
  padding: 80px 24px 100px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
}

.inquiry-container {
  background: rgba(22, 22, 30, 0.6);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(108, 99, 255, 0.1);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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


.timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
      #7c4dff,
      #5e35ff,
      rgba(124, 77, 255, 0.1));
  border-radius: 20px;
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 90px;
}

.timeline-item.left {
  padding-right: 70px;
}

.timeline-item.right {
  margin-left: auto;
  padding-left: 70px;
}

.timeline-dot {
  position: absolute;
  top: 40px;
  width: 24px;
  height: 24px;
  background: #7c4dff;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(124, 77, 255, 0.12),
    0 0 30px rgba(124, 77, 255, 0.8);
  z-index: 5;
}

.timeline-item.left .timeline-dot {
  right: -12px;
}

.timeline-item.right .timeline-dot {
  left: -12px;
}

.timeline-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 18, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(18px);
  transition: 0.4s ease;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(124, 77, 255, 0.18),
      transparent 40%);
  opacity: 0;
  transition: 0.4s;
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-card:hover {
  transform: translateY(-10px);
  border-color: rgba(124, 77, 255, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(124, 77, 255, 0.18);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.step-badge {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #b9a8ff;
  text-transform: uppercase;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;

  background:
    linear-gradient(135deg,
      rgba(124, 77, 255, 0.22),
      rgba(124, 77, 255, 0.08));

  border: 1px solid rgba(124, 77, 255, 0.2);
}

.timeline-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.2;
}

.timeline-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tags span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(124, 77, 255, 0.12);
  color: #cbbdff;
  border: 1px solid rgba(124, 77, 255, 0.18);
}

/* MOBILE */

@media (max-width: 900px) {

  .timeline-center-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
  }

  .timeline-dot {
    left: 8px !important;
    right: auto !important;
  }

  .timeline-item.right {
    margin-left: 0;
  }
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
  padding: 80px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
}

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

.benefit-card {
  background: rgba(22, 22, 30, 0.5);
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(22, 22, 30, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(108, 99, 255, 0.15);
}

.benefit-icon {
  font-size: 36px;
  width: 64px;
  height: 64px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(3deg);
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.benefit-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-left {
  transform: translateX(-50px) translateY(20px);
}

.reveal.reveal-right {
  transform: translateX(50px) translateY(20px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.landing-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== AUTH USER NAV ===== */
.user-profile-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

#userWelcome {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}

#logoutBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
}

/* ===== RESPONSIVE LANDING ===== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-preview {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO MOCKUP PREVIEW ===== */
.hero-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-canvas {
  background: rgba(22, 22, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 99, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.mockup-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.mockup-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent2);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 16px;
}

.mockup-image {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 10px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-icon {
  font-size: 52px;
  opacity: 0.5;
}

.mockup-box {
  position: absolute;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1.5px solid;
}

.photo-box {
  top: 12px;
  left: 12px;
  color: var(--photo-color);
  border-color: var(--photo-color);
  background: rgba(34, 197, 94, 0.1);
}

.name-box {
  bottom: 36px;
  left: 12px;
  color: var(--name-color);
  border-color: var(--name-color);
  background: rgba(59, 130, 246, 0.1);
  font-size: 13px;
}

.business-box {
  bottom: 12px;
  left: 12px;
  color: var(--business-color);
  border-color: var(--business-color);
  background: rgba(245, 158, 11, 0.1);
}

/* ===== CROP MODAL ===== */
.crop-card {
  max-width: 600px;
  padding: 24px;
}

.crop-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.crop-container {
  width: 100%;
  height: 400px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cropper-view-box,
.cropper-face {
  border-radius: 4px;
}

/* ===== ADMIN DASHBOARD ===== */

/* Dashboard Header */
.dashboard-header {
  margin-bottom: 28px;
}

.dashboard-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Stats Row */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card--inquiries::before {
  background: linear-gradient(90deg, #6c63ff, #9f7aea);
}

.stat-card--users::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card--templates::before {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.stat-card--pending::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon--inquiries {
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.stat-icon--users {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-icon--templates {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.stat-icon--pending {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.chart-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
}

.chart-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.chart-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.chart-card-body {
  padding: 20px;
  height: 280px;
  position: relative;
}

.chart-doughnut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
  align-content: center;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.quick-action-btn:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.quick-action-icon {
  font-size: 28px;
}

.quick-action-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Admin Grid */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  align-items: start;
}

/* Admin Panels */
.admin-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-panel--wide {
  min-height: 300px;
}

.admin-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-panel-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.admin-panel-body {
  padding: 20px;
}

/* Admin Table */
.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.admin-table tbody tr:hover {
  background: rgba(108, 99, 255, 0.04);
}

.admin-table tbody td {
  padding: 12px;
  color: var(--text);
  vertical-align: top;
}

.msg-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted) !important;
}

.phone-link {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 500;
}

.phone-link:hover {
  text-decoration: underline;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-done {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-dismissed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-contacted {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-resolved {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

select.status-badge {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

select.status-badge:hover {
  filter: brightness(1.2);
}

/* Admin Form */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* User Rows */
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s;
}

.user-row:hover {
  border-color: rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.06);
}

.user-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.user-row-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Empty state */
.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px 16px;
}

.text-muted {
  color: var(--text-muted);
}

/* Small button */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ===== ADMIN RESPONSIVE ===== */
@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== APP LAYOUT RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-header {
    display: none;
    /* Hide since mobile-header has the logo */
  }

  .main-content {
    padding: 16px;
  }

  .module-layout,
  .generator-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* ===== TEMPLATE CARDS ===== */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
  gap: 20px;
  padding: 20px;
}

.template-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.template-preview-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  padding-top: 0 !important;
  background: var(--bg2);
  overflow: hidden;
}

.template-preview-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.template-photo-box {
  display: none;
}

.template-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.template-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== GLOBAL FOOTER ===== */
.app-footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 15px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.app-footer p {
  margin: 4px 0;
}