/* EXIF Privacy Scrubber & Metadata Cleaner — Minimal White Design System */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-primary-light: #eef2ff;
  
  --risk-high: #ef4444;
  --risk-high-bg: #fef2f2;
  --risk-high-border: #fecaca;
  
  --risk-mod: #d97706;
  --risk-mod-bg: #fffbeb;
  --risk-mod-border: #fde68a;
  
  --risk-clean: #10b981;
  --risk-clean-bg: #ecfdf5;
  --risk-clean-border: #a7f3d0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* HIDE DEFAULT OS BROWSER CURSOR ENTIRELY */
html, body, button, a, input, select, textarea, label, div, span, p, h1, h2, h3, h4, section, main, table, tr, td, th {
  cursor: none !important;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CUSTOM CURSOR WITH TAIL TRAIL */
#shift-cursor {
  position: fixed;
  pointer-events: none !important;
  z-index: 99999 !important;
  width: 20px;
  height: 20px;
  transition: width 0.13s, height 0.13s;
  left: -50px;
  top: -50px;
  transform-origin: 4px 4px;
}

#shift-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(79, 70, 229, 0.45));
  transition: filter 0.13s, transform 0.12s;
}

#shift-cursor.hover {
  width: 24px;
  height: 24px;
}

#shift-cursor.hover svg {
  filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.75));
}

#shift-cursor.click svg {
  transform: scale(0.85);
}

#shift-cursor.typing {
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.8);
  transform: translate(8px, 0);
}

#shift-cursor.typing svg {
  display: none;
}

#shift-trail {
  position: fixed;
  pointer-events: none !important;
  z-index: 99998 !important;
  width: 14px;
  height: 14px;
  opacity: 0.32;
  transition: left 0.18s ease-out, top 0.18s ease-out, opacity 0.15s ease;
  left: -50px;
  top: -50px;
}

#shift-trail.typing,
#shift-cursor.typing ~ #shift-trail {
  opacity: 0 !important;
}

#shift-trail svg {
  width: 100%;
  height: 100%;
}

/* App Shell Layout */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.nav-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background-color: var(--bg-subtle);
  color: var(--accent-primary);
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--accent-primary);
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--risk-clean-bg);
  color: var(--risk-clean);
  border: 1px solid var(--risk-clean-border);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--risk-clean);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 880px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* Main Container */
.main-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  flex: 1;
}

/* Dropzone Card */
.dropzone-card {
  background-color: #ffffff;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dropzone-card:hover, .dropzone-card.drag-over {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary-light);
  box-shadow: var(--shadow-md);
}

.file-input-hidden {
  display: none;
}

.dropzone-icon {
  width: 72px;
  height: 72px;
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.2s ease;
}

.dropzone-card:hover .dropzone-icon {
  transform: translateY(-4px);
}

.dropzone-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}

.dropzone-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.supported-formats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.fmt-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* Batch Controls Toolbar Card */
.batch-controls-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-md);
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.batch-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.stats-count {
  color: var(--accent-primary);
}

.stats-divider {
  color: var(--text-light);
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled {
  opacity: 0.55;
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-hover);
}

.btn-secondary:disabled {
  opacity: 0.5;
}

.btn-ghost {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

/* Presets Section */
.presets-wrapper {
  padding-top: 1.25rem;
}

.preset-label-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.preset-card {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.preset-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.preset-card.active {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary-light);
}

.preset-radio {
  margin-top: 0.35rem;
  accent-color: var(--accent-primary);
}

.preset-badge-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.preset-badge-tag.recommended {
  color: var(--accent-primary);
}

.preset-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.preset-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Custom Tag Checkboxes with SVGs */
.custom-tags-container {
  margin-top: 1.25rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.custom-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.custom-tag-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.custom-tag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.svg-tag-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.custom-tag-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
}

/* Photo Cards List View Grid */
.photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual Photo Card */
.photo-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-top-preview {
  position: relative;
  height: 190px;
  background-color: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover .card-img-thumb {
  transform: scale(1.03);
}

.card-risk-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-risk-badge.high {
  background-color: rgba(254, 242, 242, 0.95);
  color: var(--risk-high);
  border: 1px solid var(--risk-high-border);
}

.card-risk-badge.mod {
  background-color: rgba(255, 251, 235, 0.95);
  color: var(--risk-mod);
  border: 1px solid var(--risk-mod-border);
}

.card-risk-badge.clean {
  background-color: rgba(236, 253, 245, 0.95);
  color: var(--risk-clean);
  border: 1px solid var(--risk-clean-border);
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Modernized Card Typography */
.card-file-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.card-file-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.meta-dot {
  color: var(--text-light);
  font-size: 0.7rem;
}

.quick-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.quick-tag-chip {
  font-size: 0.76rem;
  font-weight: 600;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-chip-svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.card-sanitized-banner {
  background-color: var(--risk-clean-bg);
  border: 1px solid var(--risk-clean-border);
  color: var(--risk-clean);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-actions-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modern Card Action Buttons */
.btn-card-action {
  flex: 1;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-card-inspect {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.btn-card-inspect:hover {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
  color: var(--accent-primary);
}

.btn-card-scrub {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.25);
}

.btn-card-scrub:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-card-download {
  background-color: var(--risk-clean);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.25);
}

.btn-card-download:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-card-remove {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-card-remove:hover {
  color: var(--risk-high);
  border-color: var(--risk-high-border);
  background-color: var(--risk-high-bg);
}

/* Comparison Table Card */
.comparison-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.comparison-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  background-color: var(--bg-page);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

/* Educational Info & Deep SEO Content Section */
.info-section {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.text-rose { color: var(--risk-high); }
.text-amber { color: var(--risk-mod); }
.text-emerald { color: var(--risk-clean); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Deep SEO Content Article Blocks */
.seo-article-container {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.seo-article-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.seo-article-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.seo-guide-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.seo-guide-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-guide-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion Section with Smooth Animations */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-primary-hover);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  user-select: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid transparent;
  animation: accordion-slide 0.25s ease-out;
}

@keyframes accordion-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer code {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Footer */
.footer-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Deep Inspector Modal Window */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-fade-in 0.25s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-page);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon-box {
  width: 38px;
  height: 38px;
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.modal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-light);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-close-modal:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.modal-tabs {
  display: flex;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.25rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-svg-icon {
  color: var(--text-light);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-btn.active .tab-svg-icon {
  color: var(--accent-primary);
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.tab-pane {
  display: none;
}

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

/* Map Tab Styles */
.gps-notice-box {
  background-color: var(--risk-high-bg);
  border: 1px solid var(--risk-high-border);
  color: var(--risk-high);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.alert-icon {
  display: flex;
  align-items: center;
}

.map-view-box {
  height: 280px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  margin-bottom: 1.25rem;
  z-index: 10;
}

.gps-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gps-metric {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.gps-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.gps-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
}

/* Info Table Styles */
.info-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.info-table th {
  text-align: left;
  background-color: var(--bg-page);
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 35%;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.info-table td {
  padding: 0.75rem 1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child th, .info-table tr:last-child td {
  border-bottom: none;
}

.text-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Raw Tags Table Tab */
.raw-filter-bar {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.table-scroll-area {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.raw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.raw-table th {
  position: sticky;
  top: 0;
  background-color: var(--bg-page);
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  z-index: 5;
}

.raw-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .controls-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .batch-actions {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .photo-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-card {
    max-height: 95vh;
  }
}
