/* 
   PDFTOOLS - MONOCHROME DESIGN SYSTEM 
   Strictly Monochrome: Obsidian, Zinc, Slate, Pure White.
   NO PURPLE GRADIENTS OR TINTS.
*/

:root {
  --bg-dark: #09090b;
  --bg-card: #121215;
  --bg-card-hover: #1a1a1e;
  --bg-elevated: #1f1f23;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: #ffffff;

  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --accent-white: #ffffff;
  --accent-black: #000000;
  --accent-zinc: #27272a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.07);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background Subtle Canvas Noise/Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Header Navigation Menu Tabs */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  background: var(--accent-white);
  color: var(--accent-black);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.18);
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-dropdown-btn .dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #111114;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1100;
  backdrop-filter: blur(16px);
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }
}

.nav-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-dropdown-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-item.active {
  background: var(--accent-white);
  color: var(--accent-black);
  font-weight: 600;
}

.dropdown-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.nav-dropdown-item.active .dropdown-badge {
  background: rgba(0, 0, 0, 0.15);
  border-color: transparent;
  color: #000000;
}

/* Tool Hub Grid (iLovePDF Style) */
.tool-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 4rem;
}

.tool-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
}

.tool-grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.tool-grid-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.tool-grid-card:hover::before {
  background: var(--accent-white);
}

.tool-card-icon {
  width: 54px;
  height: 54px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  transition: var(--transition);
}

.tool-grid-card:hover .tool-card-icon {
  background: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

.tool-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.tool-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* SEO Content & FAQ Section */
.seo-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.seo-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.seo-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

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

.seo-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.seo-feature-h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

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

/* SEO How-To 3-Step Process Cards */
.seo-howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 3.5rem;
  width: 100%;
}

.seo-howto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: var(--transition);
}

.seo-howto-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.seo-step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* SEO Competitor Comparison Matrix */
.seo-comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  min-width: 600px;
}

.seo-comparison-table th,
.seo-comparison-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-comparison-table th {
  background: var(--bg-elevated);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

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

.seo-comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-highlight {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #ffffff;
}

.seo-badge-yes {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.seo-badge-no {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.seo-guide-section {
  margin: 2.5rem 0;
}

/* FAQ Accordions */
.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

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

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}


.main-content {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* Hero & Upload Dropzone */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

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

/* Dropzone Box */
.dropzone-container {
  background: var(--bg-card);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dropzone-container:hover,
.dropzone-container.drag-over {
  border-color: var(--accent-white);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-main);
  transition: var(--transition);
}

.dropzone-container:hover .dropzone-icon {
  background: var(--accent-white);
  color: var(--accent-black);
  transform: scale(1.08);
}

.dropzone-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dropzone-hint {
  font-size: 0.875rem;
  color: var(--text-dim);
}

#file-input,
#organize-file-input,
#protect-file-input,
#unlock-file-input,
#split-file-input,
#pdf2img-file-input,
#img2pdf-file-input,
#merger-file-input,
#compress-file-input,
.dropzone-container input[type="file"] {
  display: none;
}

/* Security & Password Styling */
.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 680px;
  margin: 1.5rem auto 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.security-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.security-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-white);
  flex-shrink: 0;
}

.security-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-mono {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pw-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.pw-input {
  width: 100%;
  padding-right: 2.75rem !important;
  font-family: inherit;
  font-size: 0.95rem;
}

.pw-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.pw-toggle-btn:hover {
  color: var(--accent-white);
  background: rgba(255, 255, 255, 0.08);
}

.strength-meter-container {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.strength-meter-bars {
  display: flex;
  gap: 4px;
  flex: 1;
  max-width: 200px;
}

.str-segment {
  height: 4px;
  flex: 1;
  background: var(--border-subtle);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.pw-match-error {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Settings Bar */
.extraction-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.option-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 0.5rem;
}

.segment-control {
  display: flex;
  background: var(--bg-dark);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.segment-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.segment-btn.active {
  background: var(--accent-white);
  color: var(--accent-black);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
}

.select-input {
  background: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Loading & Progress Overlay */
.progress-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.spinner-mono {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}

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

.progress-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  margin: 1rem auto 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Workspace / Results Dashboard */
.workspace-container {
  display: none;
}

.doc-info-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.doc-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-icon-badge {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.doc-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.doc-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.doc-actions {
  display: flex;
  gap: 0.75rem;
}

/* Toolbar & Filters */
.toolbar-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
}

.search-input {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem 0.45rem 2.2rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  width: 180px;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-white);
  width: 230px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-white);
  color: var(--accent-black);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.badge-count {
  background: var(--accent-black);
  color: var(--accent-white);
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.2rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.image-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.image-card.selected {
  border-color: var(--accent-white);
  box-shadow: 0 0 0 2px var(--accent-white);
}

.card-thumb-container {
  height: 200px;
  background: #000000;
  background-image:
    linear-gradient(45deg, #121215 25%, transparent 25%),
    linear-gradient(-45deg, #121215 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #121215 75%),
    linear-gradient(-45deg, transparent 75%, #121215 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-thumb {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: var(--transition);
}

.image-card:hover .card-thumb {
  transform: scale(1.05);
}

.card-select-checkbox {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 20px;
  height: 20px;
  accent-color: var(--accent-white);
  cursor: pointer;
  z-index: 10;
}

.card-page-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.card-details {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.card-filename {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* Lightbox Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: var(--bg-elevated);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-image-preview {
  max-width: 65%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.modal-info-panel {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
}

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

.info-val {
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}

.mobile-menu-toggle svg {
  pointer-events: none;
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

/* =========================================================================
   RESPONSIVE DESIGN SYSTEM (Tablets, Mobile & Touch Devices)
   ========================================================================= */

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .app-header {
    padding: 0.85rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-container {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: -1.25rem;
    right: -1.25rem;
    background: #0d0d10;
    border-bottom: 1px solid var(--border-strong);
    border-top: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    z-index: 9999;
  }

  .nav-menu.open {
    display: flex !important;
    animation: menuSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-tab {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-tab.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 700;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    right: auto;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: none;
    display: none;
    margin-top: 0.25rem;
    padding: 0.4rem;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex !important;
  }

  .nav-dropdown-item {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }

  .tool-hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .tool-grid-card {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(0.875rem, 2.2vw, 1.05rem);
  }
}


@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .main-content {
    padding: 1.25rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-section {
    padding: 1.25rem 0;
    width: 100%;
  }

  .tool-hub-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
  }

  .dropzone-container {
    padding: 2rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .dropzone-text {
    font-size: 0.95rem;
  }

  .toolbar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .search-input {
    width: 100%;
    box-sizing: border-box;
  }

  .option-group {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .select-input {
    flex: 1;
    min-width: 0;
  }

  .batch-actions {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .batch-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
    justify-content: center;
    text-align: center;
  }

  .doc-info-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .doc-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .doc-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    width: 100%;
  }

  .seo-section {
    padding: 2.5rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .seo-title {
    font-size: 1.35rem;
  }

  .seo-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
  }

  .seo-features-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .faq-question {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 1rem 0.85rem;
    font-size: 0.825rem;
  }

  .app-footer {
    padding: 2rem 1rem 1.25rem;
    margin-top: 2.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .toast-container {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .toast {
    width: 100%;
    box-sizing: border-box;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-body {
    flex-direction: column;
    max-height: 75vh;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .tool-hub-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .tool-grid-card {
    padding: 1.25rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .segment-control {
    width: 100%;
    flex-direction: column;
  }

  .segment-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Organize PDF Workspace & Draggable Card Styles
   ========================================================================== */

.organize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.organize-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  cursor: default;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

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

.organize-card.dragging {
  opacity: 0.35;
  transform: scale(0.96);
  border: 2px dashed #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.organize-card.drop-target-left {
  border-left: 3px solid #ffffff !important;
  box-shadow: -6px 0 16px rgba(255, 255, 255, 0.35);
  transform: translateX(4px);
}

.organize-card.drop-target-right {
  border-right: 3px solid #ffffff !important;
  box-shadow: 6px 0 16px rgba(255, 255, 255, 0.35);
  transform: translateX(-4px);
}

.organize-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.organize-badge-num {
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.organize-badge-orig {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.organize-drag-handle {
  cursor: grab;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.organize-drag-handle:hover {
  color: #ffffff;
}

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

.organize-thumb-wrapper {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.organize-thumb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.organize-rot-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(4px);
}

.organize-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.35rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.org-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.org-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-subtle);
  transform: scale(1.08);
}

.org-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.org-btn.del-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.org-btn.dup-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.organize-empty-state {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
}

@media (max-width: 768px) {
  .organize-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
  }

  .organize-thumb-wrapper {
    height: 160px;
    padding: 0.5rem;
  }

  .org-btn {
    width: 22px;
    height: 22px;
  }
}

/* =========================================================================
   LEGAL PAGES & GDPR COMPLIANCE STYLES (Terms of Use & Privacy Policy)
   ========================================================================= */

.legal-hero-section {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.legal-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.legal-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.legal-container {
  max-width: 920px;
  margin: 0 auto 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-summary-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.legal-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.gdpr-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gdpr-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition);
}

.gdpr-highlight-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.gdpr-highlight-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.gdpr-highlight-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.gdpr-highlight-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.legal-h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e5e7;
  margin-top: 0.5rem;
}

.legal-p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.legal-inline-link:hover {
  color: var(--text-main);
  opacity: 0.8;
}

.gdpr-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.gdpr-right-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.gdpr-right-card strong {
  color: #ffffff;
  font-weight: 600;
}

.gdpr-right-card span {
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================================
   GDPR COOKIE CONSENT POPOVER BANNER
   ========================================================================= */

.gdpr-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  width: calc(100vw - 3rem);
  z-index: 9999;
  animation: gdprSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gdprSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gdpr-banner-card {
  background: #111115;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  backdrop-filter: blur(20px);
}

.gdpr-banner-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gdpr-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.gdpr-banner-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.gdpr-badge-pill {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.gdpr-banner-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.gdpr-inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdpr-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* =========================================================================
   REPORT BUG & FEEDBACK SYSTEM
   ========================================================================= */

.feedback-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feedback-category-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feedback-label {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.feedback-type-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.feedback-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.feedback-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.feedback-pill.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feedback-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feedback-input,
.feedback-select,
.feedback-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: var(--transition-fast);
}

.feedback-input:focus,
.feedback-select:focus,
.feedback-textarea:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.feedback-select {
  cursor: pointer;
}

.feedback-select option {
  background: #18181b;
  color: #ffffff;
}

.feedback-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.feedback-checkbox-group {
  display: flex;
  align-items: center;
}

.feedback-modal-content {
  max-width: 580px;
  width: 90%;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}

.floating-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(24, 24, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--transition-normal);
}

.floating-feedback-btn:hover {
  background: rgba(35, 35, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  .feedback-card {
    padding: 1.5rem;
  }
  .floating-feedback-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* ==========================================
   IMAGE CONVERTER TOOL STYLES
========================================== */

.img-preset-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.preset-pills-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.img-preset-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.img-preset-pill:hover {
  color: #ffffff;
  background: var(--bg-card-hover);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.img-preset-pill.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.imgconvert-queue-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.imgconvert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  transition: var(--transition-fast);
  flex-wrap: wrap;
  gap: 1rem;
}

.imgconvert-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.imgconvert-card.converted {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.03);
}

.imgconvert-card.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.04);
}

.imgconvert-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 240px;
  flex: 1;
}

.imgconvert-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #000000;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.imgconvert-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imgconvert-thumb-placeholder {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.imgconvert-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.imgconvert-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imgconvert-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.format-pill-sm {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border-radius: 4px;
}

.imgconvert-card-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.queue-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.queue-status-badge.ready {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.queue-status-badge.converting {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.queue-status-badge.converted {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.queue-status-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.size-comparison {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.savings-positive {
  color: #4ade80;
  font-weight: 700;
}

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

.imgconvert-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.item-remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.mini-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(250, 204, 21, 0.3);
  border-top-color: #facc15;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@media (max-width: 640px) {
  .imgconvert-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .imgconvert-card-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
  }
  .imgconvert-name {
    max-width: 220px;
  }
}

/* ==========================================
   KNOWLEDGE BASE & GUIDES SUITE STYLES
========================================== */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  z-index: 1100;
  transition: width 0.1s ease-out;
}

/* Guides Breadcrumbs */
.guides-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.guides-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.guides-breadcrumbs a:hover {
  color: #ffffff;
}

.crumb-separator {
  color: var(--border-strong);
}

.crumb-current {
  color: #ffffff;
  font-weight: 500;
}

/* Guides Hub Layout */
.guides-hub-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.guides-hub-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hub-hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.guides-hub-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.guides-hub-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Hub Search Box */
.hub-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hub-search-box {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.hub-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.hub-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hub-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* Category Filter Pills */
.hub-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-pill {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.hub-pill:hover {
  color: #ffffff;
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.hub-pill.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* Guides Grid & Cards */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-normal);
  position: relative;
}

.guide-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(59, 130, 246, 0.08);
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.guide-cat-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.guide-cat-badge.pdf {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.guide-cat-badge.image {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.guide-cat-badge.technical {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.guide-read-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.guide-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.guide-card-link {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.guide-card:hover .guide-card-link {
  color: #60a5fa;
}

.guide-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.guide-author {
  color: var(--text-dim);
  font-weight: 500;
}

.guide-card-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.guide-card-read-btn:hover {
  color: #93c5fd;
  transform: translateX(2px);
}

.guides-no-results {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Tools Strip */
.hub-tools-strip {
  margin-top: 2rem;
}

.tools-strip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(24, 24, 28, 0.95), rgba(15, 15, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tools-strip-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.tools-strip-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.tools-strip-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================
   INDIVIDUAL GUIDE ARTICLE READER STYLES
========================================== */

.guide-article-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}

.guide-article-header {
  max-width: 920px;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-meta-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

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

.guide-meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.guide-article-h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.guide-article-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.guide-author-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.guide-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.guide-share-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: #ffffff;
}

/* 2-Column Article Layout */
.guide-layout-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.guide-sidebar {
  position: relative;
}

.sidebar-sticky-inner {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.sidebar-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: var(--transition-fast);
  line-height: 1.4;
}

.toc-link:hover {
  color: #ffffff;
  background: var(--bg-elevated);
}

.toc-link.active {
  color: #60a5fa;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
}

/* Sidebar Tool CTA Card */
.tool-cta-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tool-cta-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.tool-cta-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.tool-cta-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.tool-cta-btn {
  width: 100%;
  justify-content: space-between;
}

/* Main Article Prose Typography */
.guide-body-column {
  min-width: 0;
  max-width: 820px;
}

.guide-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #d4d4d8;
}

.guide-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #f4f4f5;
  margin-bottom: 2rem;
}

.guide-prose h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  scroll-margin-top: 100px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.75rem 0 0.6rem;
  scroll-margin-top: 100px;
}

.guide-prose p {
  margin-bottom: 1.25rem;
}

.guide-prose ul,
.guide-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.guide-prose li {
  margin-bottom: 0.5rem;
}

.guide-prose strong {
  color: #ffffff;
}

.guide-prose a.guide-link {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.guide-prose a.guide-link:hover {
  color: #93c5fd;
}

.guide-prose pre {
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #38bdf8;
}

.guide-prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #60a5fa;
}

.guide-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Callout Boxes */
.guide-callout {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: #e4e4e7;
  font-size: 0.95rem;
}

.guide-callout.note {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.guide-callout strong {
  color: #ffffff;
}

/* Step Cards */
.guide-steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.guide-step-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.guide-step-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.guide-step-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tables */
.guide-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.guide-table th {
  background: var(--bg-elevated);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-strong);
}

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

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

/* Inline Tool Banner */
.guide-inline-tool-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.inline-tool-icon {
  font-size: 2rem;
}

.inline-tool-content {
  flex: 1;
  min-width: 240px;
}

.inline-tool-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
}

.inline-tool-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.inline-tool-action {
  white-space: nowrap;
}

/* FAQ Accordion */
.guide-faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(96, 165, 250, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

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

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Next / Prev Navigation */
.guide-prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-prev-card,
.nav-next-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-next-card {
  text-align: right;
}

.nav-prev-card:hover,
.nav-next-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
}

.nav-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.nav-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

/* Related Guides Showcase */
.related-guides-section {
  margin-top: 3.5rem;
}

.related-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

.related-guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.related-guide-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.5rem 0 0.35rem;
  line-height: 1.35;
}

.related-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}

.related-card-link-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .guide-layout-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .guide-sidebar {
    order: 2;
  }
  .sidebar-sticky-inner {
    position: static;
  }
  .guide-article-h1 {
    font-size: 2rem;
  }
  .guide-prev-next-nav {
    grid-template-columns: 1fr;
  }
  .nav-next-card {
    text-align: left;
  }
}

/* ==========================================
   GLOBAL APP FOOTER STYLES
========================================== */
.app-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
  padding: 3.5rem 1.5rem 2rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}

.footer-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-links li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: inline-block;
  line-height: 1.4;
}

.footer-links li a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  max-width: 1300px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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