/* Basic.cm — Ultra Clean Minimalist Design (Matching Reference Mockup) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-muted: #666666;
  --text-light: #888888;
  --border-color: #ededed;
  --border-subtle: #f7f7f7;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.07);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --primary-accent: #2563eb;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Header & Hamburger Menu */
.header-bar {
  position: fixed;
  top: 1.25rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  pointer-events: auto;
}

.header-logo-img {
  height: 64px;
  width: auto;
  max-height: 64px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  transition: transform 0.2s ease;
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.05);
}

.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

.menu-btn:hover {
  opacity: 0.7;
}

.menu-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* Main Container - Responsive with smooth scroll for deep content */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5.2rem 1.5rem 2rem 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
}

@media (max-width: 768px), (max-height: 580px) {
  .main-wrapper {
    padding: 5.5rem 1.25rem 1.5rem 1.25rem;
    gap: 1.25rem;
  }
}

/* Hero Title Section - Sits below the level of the top-left logo */
.hero {
  text-align: center;
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.brand-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

/* Trust Badges - Single line dots layout matching reference */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0;
}

.badge-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.badge-item:not(:last-child)::after {
  content: "•";
  margin-left: 0.6rem;
  color: var(--text-light);
}

/* Cards Grid Section - Row 1 (4 tools) and Row 2 (3 tools) */
.tools-section {
  width: 100%;
  max-width: 840px;
  margin: 0.35rem auto 0 auto;
}

.tools-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  width: 100%;
}

@media (max-width: 768px) {
  .tools-row {
    flex-wrap: wrap;
    gap: 1.25rem 1rem;
  }
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.3rem;
}

.tool-card {
  background-color: transparent;
  border: none;
  border-radius: var(--radius-lg);
  width: 114px;
  height: 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-wrapper:hover .tool-card {
  transform: translateY(-5px) scale(1.08);
  box-shadow: none;
  border-color: transparent;
}

.card-img {
  width: 106px;
  height: 106px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}

.tool-card.full-logo-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.full-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.8);
  border-radius: var(--radius-lg);
  display: block;
}

.card-icon svg {
  width: 60px;
  height: 60px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Icon line colors from reference mockup */
.icon-blue svg { stroke: #2563eb; }
.icon-green svg { stroke: #10b981; }
.icon-purple svg { stroke: #7c3aed; }
.icon-amber svg { stroke: #f59e0b; }
.icon-emerald svg { stroke: #059669; }
.icon-indigo svg { stroke: #4f46e5; }
.icon-cyan svg { stroke: #06b6d4; }
.icon-rose svg { stroke: #e11d48; }

.tool-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
  margin-top: 0.35rem;
}

/* Support Section at Bottom matching Image 2 */
.footer-support {
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.support-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0;
  margin-bottom: 0.15rem;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.support-box:hover {
  opacity: 0.85;
}

.support-mug-icon {
  width: 38px;
  height: 38px;
  border: 2px solid #111111;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-mug-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 8px;
  width: 8px;
  height: 16px;
  border: 2px solid #111111;
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.support-mug-steam {
  position: absolute;
  top: -12px;
  font-size: 10px;
}

.support-heart {
  color: #ef4444;
  font-size: 14px;
}

.support-text-container {
  text-align: left;
}

.support-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.support-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.privacy-notice {
  font-size: 0.74rem;
  color: var(--text-light);
  line-height: 1.35;
  margin-top: 0.35rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Modal View Overlay */
.tool-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}

.tool-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s ease;
}

.back-btn:hover {
  background: var(--border-subtle);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  flex: 1;
}

/* Side Drawer Menu */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.15);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 300px;
  height: 100vh;
  background: var(--bg-color);
  z-index: 201;
  padding: 2.5rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
}

.drawer-menu.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.drawer-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.close-drawer-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.drawer-link:hover {
  background: var(--border-subtle);
}

.drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: var(--border-subtle);
}

/* UI Elements inside tool modals */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.input-text, .textarea-text, .select-box {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-text:focus, .textarea-text:focus, .select-box:focus {
  border-color: var(--primary-accent);
}

.textarea-text {
  min-height: 160px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #222222;
}

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

.toast {
  background: #000000;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Smart Password Generator Custom Components */
.spg-container {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.spg-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.spg-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.spg-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

.spg-display-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.spg-output-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.spg-password-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  word-break: break-all;
  user-select: all;
  flex: 1;
}

.spg-icon-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.spg-icon-btn:hover {
  background: var(--border-subtle);
  border-color: #cbd5e1;
}

.spg-meter-container {
  margin-top: 1rem;
}

.spg-meter-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.spg-meter-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.spg-metrics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.spg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spg-badge-weak { background: #fee2e2; color: #dc2626; }
.spg-badge-fair { background: #ffedd5; color: #ea580c; }
.spg-badge-good { background: #fef9c3; color: #ca8a04; }
.spg-badge-strong { background: #dcfce7; color: #16a34a; }
.spg-badge-excellent { background: #dbeafe; color: #2563eb; }

.spg-controls-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.spg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spg-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.spg-slider-val {
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.spg-slider-input {
  width: 100%;
  accent-color: var(--text-main);
  cursor: pointer;
}

.spg-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.spg-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.spg-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--text-main);
  cursor: pointer;
}

.spg-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.spg-btn-full {
  flex: 1;
  min-width: 140px;
}

.spg-collapsible {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.spg-collapsible-header {
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  user-select: none;
}

.spg-collapsible-header:hover {
  background: #f1f5f9;
}

.spg-collapsible-body {
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
  display: none;
  background: #ffffff;
}

.spg-collapsible-body.open {
  display: block;
}

.spg-hint-phrase {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-accent);
  margin-top: 0.5rem;
}

.spg-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: monospace;
  font-size: 0.85rem;
}

.spg-history-item:last-child {
  border-bottom: none;
}

/* QR Generator Custom Components */
.qr-container {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.qr-tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.qr-tab-btn {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.qr-tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.qr-tab-content {
  display: none;
}

.qr-tab-content.active {
  display: block;
}

.qr-preview-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: visible;
  min-height: 280px;
}

.qr-canvas-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: visible;
}

.qr-canvas-wrapper canvas,
.qr-canvas-wrapper img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 2px;
}

.qr-color-picker-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.65rem;
  background: #ffffff;
}

.qr-color-picker-group input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
}

.qr-color-picker-group input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.qr-color-picker-group input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
}

.qr-tab-btn:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

.qr-color-picker-group:focus-within {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 640px) {
  .header-bar { top: 1rem; left: 1rem; right: 1rem; }
  .header-logo-img { height: 66px; }
  .main-wrapper { padding: 4.5rem 1rem 2rem 1rem; }
  .brand-title { font-size: 2.25rem; }
  .tools-grid { gap: 1.25rem; }
  .tool-card { width: 140px; height: 140px; }
  .card-icon { width: 48px; height: 48px; }
  .card-icon img { width: 48px; height: 48px; }
  .spg-grid-2 { grid-template-columns: 1fr; }
  .spg-output-row { flex-direction: column; align-items: flex-start; }
  .qr-tabs-nav { flex-direction: column; }
}

/* ==========================================================================
   MINI GOOGLE DOCS — SNOW WHITE MINIMALIST SINGLE SCREEN
   ========================================================================== */
.tool-modal.doc-modal-active {
  overflow: hidden !important;
  background: #f8fafc !important;
}

.tool-modal.doc-modal-active .modal-header {
  display: none !important;
}

.tool-modal.doc-modal-active .modal-body {
  max-width: 100% !important;
  width: 100% !important;
  height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Single-Screen Full Height Layout */
.doc-app-layout {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  font-family: var(--font-family);
  color: #0f172a;
  overflow: hidden;
}

/* Snow White Unified Top Navigation Bar */
.doc-nav-bar {
  height: 54px;
  min-height: 54px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  z-index: 30;
}

.doc-nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.doc-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.doc-nav-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.doc-nav-back-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.doc-title-input {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  outline: none;
  transition: all 0.15s ease;
  width: 240px;
  text-overflow: ellipsis;
}

.doc-title-input:hover {
  background: #f1f5f9;
}

.doc-title-input:focus {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
  width: 320px;
}

.doc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.doc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  transition: background 0.2s ease;
}

.doc-status-dot.saving {
  background: #f59e0b;
  animation: docPulse 0.8s infinite alternate;
}

@keyframes docPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.doc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.doc-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.doc-nav-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.doc-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.doc-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}

.doc-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 6px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.doc-export-btn:hover {
  background: #334155;
}

.doc-export-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* On-Demand Snow White Toolbar */
.doc-toolbar-wrapper {
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  padding: 0.35rem 1.25rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  z-index: 25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.doc-toolbar-wrapper.active {
  display: flex;
  animation: docSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.doc-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.doc-toolbar-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 0.25rem;
}

.doc-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.doc-select:hover, .doc-select:focus {
  border-color: #94a3b8;
}

.doc-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  min-width: 30px;
  height: 30px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.doc-tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.doc-tool-btn.active {
  background: #f1f5f9;
  color: #2563eb;
  border-color: #cbd5e1;
}

.doc-tool-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Floating Text Selection Bubble (Medium/Notion Style) */
.doc-selection-bubble {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 45;
  animation: docFadeIn 0.12s ease;
}

.doc-selection-bubble .doc-tool-btn {
  min-width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

/* Dropdown Menu (Export) */
.doc-dropdown {
  position: relative;
  display: inline-block;
  /* ensure dropdown child can escape nav bar bounds */
  overflow: visible;
}

.doc-dropdown-menu {
  position: fixed;
  top: auto;
  right: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  min-width: 195px;
  padding: 0.4rem;
  display: none;
  z-index: 9999;
  animation: docFadeIn 0.15s ease;
}

.doc-dropdown-menu.active {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.doc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease;
}

.doc-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.doc-dropdown-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

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

/* Document Workspace & Snow White Canvas */
.doc-workspace {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8fafc;
  padding: 2rem 1.5rem 4rem 1.5rem;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.doc-page-canvas {
  width: 100%;
  max-width: 820px;
  height: auto;
  min-height: calc(100% - 1rem);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
  padding: 3rem 3.5rem 8rem 3.5rem;
  outline: none;
  font-size: 1rem;
  line-height: 1.75;
  color: #0f172a;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  display: block;
  margin: 0 auto 3rem auto;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-page-canvas:focus {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.doc-page-canvas:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
  display: block;
}

.doc-page-canvas h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: #0f172a;
}

.doc-page-canvas h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  color: #1e293b;
}

.doc-page-canvas h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: #334155;
}

.doc-page-canvas p {
  margin-bottom: 0.75rem;
}

.doc-page-canvas hr {
  border: none;
  height: 1.5px;
  background: #e2e8f0;
  margin: 1.75rem 0;
  border-radius: 2px;
}

.doc-page-canvas ul, .doc-page-canvas ol {
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.doc-page-canvas li {
  margin-bottom: 0.25rem;
}

.doc-page-canvas blockquote {
  border-left: 3.5px solid #0f172a;
  padding: 0.5rem 0 0.5rem 1.1rem;
  margin: 1rem 0;
  color: #475569;
  font-style: italic;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
}

/* Interactive Table in Canvas */
.doc-table-container {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.doc-page-canvas table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.92rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.doc-page-canvas th, .doc-page-canvas td {
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.9rem;
  min-width: 80px;
  text-align: left;
}

.doc-page-canvas th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.doc-page-canvas td:focus-within, .doc-page-canvas th:focus-within {
  background: #f8fafc;
}

/* Snow White Floating Table Toolbar */
.doc-table-actions-bar {
  position: absolute;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 40;
  font-size: 0.78rem;
  animation: docFadeIn 0.15s ease;
}

.doc-table-actions-bar button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.doc-table-actions-bar button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.doc-table-actions-bar button.danger {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fecaca;
}

.doc-table-actions-bar button.danger:hover {
  background: #fca5a5;
  color: #991b1b;
}

/* Resizable Image Styling & Floating Controls */
.doc-img-wrapper {
  display: inline-block;
  position: relative;
  margin: 0.75rem 0;
  max-width: 100%;
  user-select: none;
}

.doc-img-wrapper.align-left {
  display: block;
  text-align: left;
}

.doc-img-wrapper.align-center {
  display: block;
  text-align: center;
}

.doc-img-wrapper.align-right {
  display: block;
  text-align: right;
}

.doc-img-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer;
  transition: outline 0.15s ease;
}

.doc-img-wrapper.selected img {
  outline: 3px solid #0f172a;
  outline-offset: 2px;
}

.doc-img-floating-toolbar {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 35;
  white-space: nowrap;
  animation: docFadeIn 0.15s ease;
}

.doc-img-floating-toolbar button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-img-floating-toolbar button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.doc-img-floating-toolbar button.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.doc-img-resize-handle {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #0f172a;
  border: 2px solid #ffffff;
  border-radius: 2px;
  cursor: se-resize;
  display: none;
  z-index: 36;
}

.doc-img-wrapper.selected .doc-img-resize-handle {
  display: block;
}

/* Discreet Snow White Footer */
.doc-footer-status {
  height: 36px;
  min-height: 36px;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  color: #64748b;
  z-index: 20;
}

.doc-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Print Specific Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .tool-modal, .tool-modal.active, .modal-body, .doc-app-layout, .doc-workspace, .doc-page-canvas, .doc-page-canvas * {
    visibility: visible;
  }
  .tool-modal, .tool-modal.active {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .modal-header, .doc-nav-bar, .doc-toolbar-wrapper, .doc-footer-status, .doc-table-actions-bar, .doc-img-floating-toolbar, .doc-img-resize-handle, .doc-selection-bubble, .header-bar, .drawer-overlay, .drawer-menu, .toast-container {
    display: none !important;
  }
  .doc-workspace {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    overflow: visible !important;
  }
  .doc-page-canvas {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }
}

/* ============================================================
   DOCUMENT LIBRARY PANEL (Slide-in panel for multi-doc management)
   ============================================================ */

/* Dim overlay behind the panel */
.doc-library-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  z-index: 200;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* The panel itself — slides in from the right */
.doc-library-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 92vw;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.doc-library-panel.open {
  transform: translateX(0);
}

/* Panel header */
.doc-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.85rem 1.25rem;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}

.doc-library-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.doc-library-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.doc-library-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.doc-library-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Create New button at top of panel */
.doc-library-new-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 1.1rem 0.65rem 1.1rem;
  padding: 0.6rem 1rem;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.doc-library-new-btn:hover {
  background: #1e293b;
}

.doc-library-new-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

/* Scrollable doc list */
.doc-library-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 0.75rem 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.doc-library-list::-webkit-scrollbar {
  width: 4px;
}
.doc-library-list::-webkit-scrollbar-track {
  background: transparent;
}
.doc-library-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.doc-library-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 2rem 1rem;
}

/* Document card */
.doc-library-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.75rem 0.85rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.doc-library-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.doc-library-card.active {
  border-color: #0f172a;
  background: #f8fafc;
}

/* Card body (clickable area) */
.doc-library-card-body {
  flex: 1;
  min-width: 0;
}

.doc-library-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.doc-library-card-preview {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.doc-library-card-date {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Delete button on card */
.doc-library-card-delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.15s ease;
  margin-top: 0.1rem;
}

.doc-library-card-delete:hover {
  background: #fee2e2;
  color: #ef4444;
}

.doc-library-card-delete svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* "Open" active badge on current doc card */
.doc-library-card-active-badge {
  position: absolute;
  top: 0.55rem;
  right: 2.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  background: #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

/* Actions column — holds trash + confirm buttons stacked */
.doc-library-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Two-tap confirm "Delete?" button */
.doc-library-card-delete-confirm {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border: none;
  background: #ef4444;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  min-height: 28px;
}

.doc-library-card-delete-confirm:hover {
  background: #dc2626;
}


/* Mobile: bottom sheet style */
@media (max-width: 640px) {
  .doc-library-panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.1);
    max-height: 80dvh;
  }
  .doc-library-panel.open {
    transform: translateY(0);
  }
}

/* ============================================================
   QUICK NOTES — MOBILE RESPONSIVE (≤ 768px)
   ============================================================ */

/* Tablet tweaks */
@media (max-width: 768px) {
  .doc-page-canvas {
    padding: 2rem 2rem 4rem 2rem;
    max-width: 100%;
  }
  .doc-workspace {
    padding: 1rem 0.75rem 2rem 0.75rem;
  }
  .doc-title-input {
    width: 180px;
  }
  .doc-title-input:focus {
    width: 220px;
  }
}

/* Phone — primary breakpoint */
@media (max-width: 640px) {

  /* Full screen height accounts for mobile browser chrome */
  .tool-modal.doc-modal-active .modal-body {
    height: 100dvh !important;
  }
  .doc-app-layout {
    height: 100dvh;
  }

  /* --- NAV BAR --- */
  .doc-nav-bar {
    height: auto;
    min-height: 50px;
    padding: 0.3rem 0.5rem;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .doc-nav-left {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    overflow: visible;
  }

  .doc-nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  /* Back button — icon only on mobile */
  .doc-nav-back-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
  .doc-nav-back-btn span {
    display: none;
  }

  /* Title — truncate cleanly */
  .doc-title-input {
    flex: 1;
    min-width: 60px;
    max-width: 120px;
    font-size: 0.88rem;
    padding: 0.25rem 0.4rem;
    font-weight: 600;
    width: auto;
  }
  .doc-title-input:focus {
    max-width: 150px;
    width: auto;
  }

  /* Status pill — dot only */
  .doc-status-pill {
    padding: 0.2rem 0.35rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  #docStatusText {
    display: none;
  }

  /* Badge hidden on mobile */
  .doc-nav-badge {
    display: none;
  }

  /* Format / New buttons — compact */
  .doc-nav-btn {
    padding: 0.38rem 0.55rem;
    font-size: 0.78rem;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  /* Export button — compact */
  .doc-export-btn {
    padding: 0.38rem 0.6rem;
    font-size: 0.78rem;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  /* --- TOOLBAR (horizontal scroll, no wrap) --- */
  .doc-toolbar-wrapper {
    padding: 0.3rem 0.4rem;
    gap: 0.15rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* ensure it doesn't grow taller than one row */
    align-items: center;
  }
  .doc-toolbar-wrapper::-webkit-scrollbar {
    display: none;
  }
  .doc-toolbar-group {
    flex-shrink: 0;
    gap: 0.15rem;
  }
  .doc-toolbar-divider {
    flex-shrink: 0;
    margin: 0 0.15rem;
  }
  .doc-tool-btn {
    min-width: 30px;
    height: 30px;
    padding: 0.2rem 0.3rem;
    flex-shrink: 0;
  }
  .doc-select {
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
    flex-shrink: 0;
    max-width: 100px;
  }

  /* --- WORKSPACE & CANVAS --- */
  .doc-workspace {
    padding: 0.5rem 0.4rem 2rem 0.4rem;
  }
  .doc-page-canvas {
    padding: 1.25rem 1rem 6rem 1rem;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.7;
    border-radius: 8px;
    min-height: calc(100% - 1rem);
    height: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0 auto 2rem auto;
  }
  .doc-page-canvas h1 { font-size: 1.5rem; }
  .doc-page-canvas h2 { font-size: 1.2rem; }
  .doc-page-canvas h3 { font-size: 1.05rem; }

  /* Tables scroll horizontally inside canvas */
  .doc-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-page-canvas table {
    font-size: 0.8rem;
    min-width: 240px;
  }
  .doc-page-canvas th,
  .doc-page-canvas td {
    padding: 0.4rem 0.5rem;
    min-width: 60px;
    white-space: nowrap;
  }

  /* --- FLOATING SELECTION BUBBLE --- */
  .doc-selection-bubble {
    max-width: 90vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.35rem;
    gap: 0.15rem;
    flex-wrap: nowrap;
  }
  .doc-selection-bubble::-webkit-scrollbar { display: none; }
  .doc-selection-bubble .doc-tool-btn {
    min-width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  /* --- TABLE ACTIONS BAR --- */
  .doc-table-actions-bar {
    max-width: 90vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.4rem;
    font-size: 0.72rem;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }
  .doc-table-actions-bar::-webkit-scrollbar { display: none; }
  .doc-table-actions-bar button {
    padding: 0.22rem 0.38rem;
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* --- IMAGE FLOATING TOOLBAR --- */
  .doc-img-floating-toolbar {
    max-width: 90vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.4rem;
    gap: 0.2rem;
    flex-wrap: nowrap;
  }
  .doc-img-floating-toolbar::-webkit-scrollbar { display: none; }
  .doc-img-floating-toolbar button {
    padding: 0.22rem 0.38rem;
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* --- EXPORT DROPDOWN --- */
  .doc-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 175px;
    max-width: calc(100vw - 1rem);
  }

  /* --- FOOTER STATUS --- */
  .doc-footer-status {
    height: 30px;
    min-height: 30px;
    padding: 0 0.65rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .doc-stats {
    gap: 0.5rem;
  }
}

/* Extra small phones (≤ 400px) — strip all text labels from buttons */
@media (max-width: 400px) {
  .doc-nav-btn span {
    display: none;
  }
  .doc-export-btn span {
    display: none;
  }
  /* Keep the arrow indicator after Export */
  .doc-export-btn::after {
    content: "▾";
    font-size: 0.75rem;
    margin-left: 1px;
  }
  .doc-title-input {
    max-width: 100px;
  }
  .doc-title-input:focus {
    max-width: 120px;
  }
  .doc-nav-bar {
    gap: 0.2rem;
    padding: 0.3rem 0.35rem;
  }
  .doc-nav-left {
    gap: 0.2rem;
  }
  .doc-nav-right {
    gap: 0.15rem;
  }
}

/* ==========================================================================
   UPI PAYMENT / CHOCOLATE MODAL (EXACT REFERENCE MOCKUP)
   ========================================================================== */
.upi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.upi-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.upi-payment-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 90%;
  max-width: 350px;
  max-height: 94vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.upi-payment-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.upi-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: #111827;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.upi-close-btn:hover {
  color: #000000;
  background: #f3f4f6;
}

.upi-modal-inner {
  padding: 24px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-height: 94vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.upi-mascot-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.upi-mascot-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}

.upi-modal-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  margin-top: -2px;
  margin-bottom: 4px;
}

.upi-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.upi-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.upi-action-btn:hover {
  border-color: #111827;
  background: #f9fafb;
}

.upi-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.upi-btn-main {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.upi-btn-sub {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.2;
}

.upi-copy-section {
  margin-top: 4px;
}

.upi-subheading-small {
  font-size: 0.76rem;
  font-weight: 500;
  color: #4b5563;
  text-align: center;
  margin-bottom: 6px;
}

.upi-copy-field-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 7px 10px 7px 12px;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.upi-copy-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.upi-copy-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-left: 1px solid #e5e7eb;
  padding: 2px 4px 2px 10px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: color 0.15s ease;
}

.upi-copy-action-btn:hover {
  color: #111827;
}

.upi-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 6px;
}

.upi-dot {
  font-size: 0.65rem;
  color: #d1d5db;
}

/* ==========================================================================
   Seamless Bottom Bar: Left Copyright & Right Legal Links (No Dividing Lines)
   ========================================================================== */
.footer-bottom-bar {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem 0.25rem 1.5rem;
  box-sizing: border-box;
  border: none;
  background: transparent;
}

.footer-copyright-left {
  font-size: 0.74rem;
  color: var(--text-light);
  white-space: nowrap;
}

.footer-nav-links-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.footer-link {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-link:hover {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-dot {
  font-size: 0.7rem;
  color: var(--text-light);
  user-select: none;
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column-reverse;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
  }

  .footer-copyright-left {
    white-space: normal;
  }

  .footer-nav-links-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.drawer-nav-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.6rem 0.5rem;
  opacity: 0.6;
}

.drawer-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
  padding: 0.35rem 1rem 0.15rem 1rem;
}

/* ==========================================================================
   Static Pages Styling (About, Privacy Policy, Terms & Conditions)
   ========================================================================== */
.static-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

.static-nav-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
  width: 100%;
}

.static-nav-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.static-nav-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.static-nav-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.static-back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.18s ease;
}

.static-back-home-btn:hover {
  background: var(--border-subtle);
  border-color: #d1d5db;
  transform: translateX(-2px);
}

.static-content-container {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem 1.5rem;
  flex: 1;
  box-sizing: border-box;
}

.static-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.static-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 1rem;
}

.static-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.static-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tab Switcher for Quick Navigation */
.static-page-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem 0;
}

.static-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  background: #f9fafb;
  border: 1px solid var(--border-color);
  transition: all 0.18s ease;
}

.static-tab-link:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.static-tab-link.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* Content Body */
.static-article {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--card-shadow);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .static-article {
    padding: 1.75rem 1.25rem;
  }
}

.static-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.static-article h2:first-of-type {
  margin-top: 0;
}

.static-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.static-article p {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.static-article ul, .static-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
  color: #374151;
  font-size: 0.95rem;
}

.static-article li {
  margin-bottom: 0.5rem;
}

.static-callout {
  background: #f9fafb;
  border-left: 3px solid #111827;
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: #374151;
}

.static-callout-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.static-feature-card {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.static-feature-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.static-feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.static-feature-card-icon {
  font-size: 1.35rem;
}

.static-feature-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.static-feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.static-feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-decoration: none;
}

.static-feature-card-link:hover {
  text-decoration: underline;
}

.contact-card-box {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.75rem;
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: #374151;
}

.contact-item-row:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: 600;
  color: var(--text-main);
  min-width: 80px;
}

/* Contact Form Elements */
.contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-submit-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  align-self: flex-start;
}

.contact-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-status-msg {
  font-size: 0.88rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Rich Editorial & Guides Sections for Home Page */
.home-editorial-container {
  width: 100%;
  max-width: 900px;
  margin: 3.5rem auto 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  text-align: left;
}

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

.editorial-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.editorial-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.editorial-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.5rem auto 0 auto;
  line-height: 1.5;
}

/* Feature / Guide Cards Grid */
.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.guide-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: #f3f4f6;
}

.guide-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.guide-card-text {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
  flex-grow: 1;
}

.guide-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Architecture Callout Banner */
.architecture-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.architecture-banner h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.architecture-banner p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.architecture-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
}

.pillar-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.pillar-item p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #d1d5db;
}

.faq-question-btn {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
}

.faq-question-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  stroke: #6b7280;
}

.faq-item.open .faq-question-btn svg {
  transform: rotate(180deg);
  stroke: var(--primary-accent);
}

.faq-answer-content {
  display: none;
  padding: 0 1.25rem 1.15rem 1.25rem;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}

.faq-item.open .faq-answer-content {
  display: block;
}

.static-footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  background: transparent;
  border: none;
}

.static-footer-bar {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .static-footer-bar {
    flex-direction: column-reverse;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   ANT DESIGN (AntD 5.x) DESIGN SYSTEM & COMPONENT ARCHITECTURE
   ========================================================================== */

:root {
  --ant-primary: #1677ff;
  --ant-primary-hover: #4096ff;
  --ant-primary-active: #0958d9;
  --ant-primary-bg: #e6f4ff;
  --ant-primary-border: #91caff;
  --ant-success: #52c41a;
  --ant-success-bg: #f6ffed;
  --ant-success-border: #b7eb8f;
  --ant-warning: #faad14;
  --ant-warning-bg: #fffbe6;
  --ant-warning-border: #ffe58f;
  --ant-error: #ff4d4f;
  --ant-error-bg: #fff2f0;
  --ant-error-border: #ffccc7;
  --ant-text-heading: rgba(0, 0, 0, 0.88);
  --ant-text-body: rgba(0, 0, 0, 0.65);
  --ant-text-secondary: rgba(0, 0, 0, 0.45);
  --ant-text-disabled: rgba(0, 0, 0, 0.25);
  --ant-bg-layout: #f5f5f5;
  --ant-bg-container: #ffffff;
  --ant-bg-elevated: #ffffff;
  --ant-border: #d9d9d9;
  --ant-border-split: #f0f0f0;
  --ant-radius-base: 6px;
  --ant-radius-lg: 8px;
  --ant-radius-sm: 4px;
  --ant-shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --ant-shadow-hover: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

/* Page Layout Container for Ant Design Pages */
.ant-page-layout {
  min-height: 100vh;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
}

.ant-layout-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ant-border-split);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-header-nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ant-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ant-text-heading);
  font-weight: 600;
  font-size: 1.15rem;
}

.ant-header-brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.ant-header-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ant-header-menu-item {
  text-decoration: none;
  color: var(--ant-text-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--ant-radius-base);
  transition: all 0.2s ease;
}

.ant-header-menu-item:hover,
.ant-header-menu-item.active {
  color: var(--ant-primary);
  background-color: var(--ant-primary-bg);
}

@media (max-width: 900px) {
  .ant-header-menu {
    display: none;
  }
}

.ant-layout-content {
  flex: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem 1.25rem;
  box-sizing: border-box;
}

/* Ant Breadcrumbs */
.ant-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--ant-text-secondary);
  margin-bottom: 1.25rem;
}

.ant-breadcrumb a {
  color: var(--ant-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ant-breadcrumb a:hover {
  color: var(--ant-primary);
}

.ant-breadcrumb-separator {
  color: var(--ant-text-disabled);
  margin: 0 0.2rem;
}

.ant-breadcrumb-current {
  color: var(--ant-text-heading);
  font-weight: 500;
}

/* Ant Page Header */
.ant-page-header {
  background: #ffffff;
  border: 1px solid var(--ant-border-split);
  border-radius: var(--ant-radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ant-shadow-card);
}

.ant-page-header-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

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

.ant-page-header-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  line-height: 1.2;
  margin: 0;
}

.ant-page-header-desc {
  font-size: 0.95rem;
  color: var(--ant-text-body);
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.ant-page-header-extra {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Ant Buttons */
.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5714;
  height: 36px;
  padding: 4px 15px;
  border-radius: var(--ant-radius-base);
  border: 1px solid var(--ant-border);
  background-color: #ffffff;
  color: var(--ant-text-heading);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  text-decoration: none;
  user-select: none;
  font-family: inherit;
}

.ant-btn:hover {
  color: var(--ant-primary-hover);
  border-color: var(--ant-primary-hover);
}

.ant-btn:active {
  color: var(--ant-primary-active);
  border-color: var(--ant-primary-active);
}

.ant-btn-primary {
  color: #ffffff;
  background-color: var(--ant-primary);
  border-color: var(--ant-primary);
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}

.ant-btn-primary:hover {
  color: #ffffff;
  background-color: var(--ant-primary-hover);
  border-color: var(--ant-primary-hover);
}

.ant-btn-primary:active {
  color: #ffffff;
  background-color: var(--ant-primary-active);
  border-color: var(--ant-primary-active);
}

.ant-btn-dashed {
  border-style: dashed;
  background-color: transparent;
}

.ant-btn-lg {
  height: 42px;
  padding: 6.4px 20px;
  font-size: 1rem;
  border-radius: var(--ant-radius-lg);
}

.ant-btn-sm {
  height: 28px;
  padding: 0 8px;
  font-size: 0.775rem;
  border-radius: var(--ant-radius-sm);
}

.ant-btn-block {
  width: 100%;
}

/* Ant Tags */
.ant-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  line-height: 20px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--ant-radius-sm);
  border: 1px solid var(--ant-border);
  background: #fafafa;
  color: var(--ant-text-body);
  white-space: nowrap;
  font-weight: 500;
}

.ant-tag-blue {
  color: #0958d9;
  background: #e6f4ff;
  border-color: #91caff;
}

.ant-tag-green {
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.ant-tag-orange {
  color: #d46b08;
  background: #fff7e6;
  border-color: #ffd591;
}

.ant-tag-red {
  color: #cf1322;
  background: #fff1f0;
  border-color: #ffa39e;
}

.ant-tag-purple {
  color: #531dab;
  background: #f9f0ff;
  border-color: #d3adf7;
}

.ant-tag-cyan {
  color: #08979c;
  background: #e6fffb;
  border-color: #87e8de;
}

.ant-tag-geekblue {
  color: #1d39c4;
  background: #f0f5ff;
  border-color: #adc6ff;
}

/* Ant Badges */
.ant-badge-status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}

.ant-badge-status-success {
  background-color: var(--ant-success);
}

.ant-badge-status-processing {
  background-color: var(--ant-primary);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

/* Ant Cards */
.ant-card {
  background: #ffffff;
  border-radius: var(--ant-radius-lg);
  border: 1px solid var(--ant-border-split);
  box-shadow: var(--ant-shadow-card);
  margin-bottom: 1.5rem;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  overflow: hidden;
}

.ant-card-hoverable:hover {
  box-shadow: var(--ant-shadow-hover);
  border-color: #e6e6e6;
  transform: translateY(-2px);
}

.ant-card-head {
  min-height: 52px;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--ant-border-split);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-card-head-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ant-card-extra {
  font-size: 0.875rem;
  color: var(--ant-primary);
}

.ant-card-body {
  padding: 1.5rem;
}

/* Ant Tabs */
.ant-tabs-nav {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ant-border-split);
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  overflow-x: auto;
}

.ant-tabs-tab {
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ant-text-body);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.ant-tabs-tab:hover {
  color: var(--ant-primary-hover);
}

.ant-tabs-tab.active {
  color: var(--ant-primary);
  border-bottom-color: var(--ant-primary);
  font-weight: 600;
}

.ant-tabs-tabpane {
  display: none;
}

.ant-tabs-tabpane.active {
  display: block;
  animation: antFadeIn 0.25s ease;
}

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

/* Ant Statistics */
.ant-statistic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ant-statistic {
  background: #ffffff;
  border: 1px solid var(--ant-border-split);
  border-radius: var(--ant-radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--ant-shadow-card);
}

.ant-statistic-title {
  font-size: 0.825rem;
  color: var(--ant-text-secondary);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.ant-statistic-content {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.ant-statistic-content-suffix {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ant-text-secondary);
}

/* Ant Alert */
.ant-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--ant-radius-lg);
  border: 1px solid var(--ant-primary-border);
  background-color: var(--ant-primary-bg);
  color: var(--ant-text-heading);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ant-alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ant-alert-message {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--ant-text-heading);
}

.ant-alert-description {
  color: var(--ant-text-body);
  font-size: 0.85rem;
}

.ant-alert-success {
  background-color: var(--ant-success-bg);
  border-color: var(--ant-success-border);
}

.ant-alert-warning {
  background-color: var(--ant-warning-bg);
  border-color: var(--ant-warning-border);
}

/* Ant Steps / Process */
.ant-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.ant-step-item {
  display: flex;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--ant-border-split);
  border-radius: var(--ant-radius-lg);
  padding: 1.15rem;
  box-shadow: var(--ant-shadow-card);
}

.ant-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ant-primary-bg);
  color: var(--ant-primary);
  border: 1px solid var(--ant-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ant-step-content {
  flex: 1;
}

.ant-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  margin-bottom: 0.35rem;
}

.ant-step-description {
  font-size: 0.825rem;
  color: var(--ant-text-body);
  line-height: 1.5;
}

/* Ant Table */
.ant-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--ant-border-split);
  border-radius: var(--ant-radius-lg);
  background: #ffffff;
  box-shadow: var(--ant-shadow-card);
  margin: 1.5rem 0;
}

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

.ant-table th {
  background: #fafafa;
  color: var(--ant-text-heading);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ant-border-split);
}

.ant-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ant-border-split);
  color: var(--ant-text-body);
}

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

.ant-table tr:hover td {
  background: #fafafa;
}

/* Ant Form Inputs & Controls */
.ant-form-item {
  margin-bottom: 1.25rem;
}

.ant-form-item-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ant-text-heading);
  margin-bottom: 0.4rem;
}

.ant-input,
.ant-textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--ant-text-heading);
  background-color: #ffffff;
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius-base);
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

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

.ant-input:focus,
.ant-textarea:focus {
  border-color: var(--ant-primary);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.ant-input-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* Ant Collapse / Accordion */
.ant-collapse {
  border: 1px solid var(--ant-border-split);
  border-radius: var(--ant-radius-lg);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--ant-shadow-card);
  margin: 1.5rem 0;
}

.ant-collapse-item {
  border-bottom: 1px solid var(--ant-border-split);
}

.ant-collapse-item:last-child {
  border-bottom: none;
}

.ant-collapse-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ant-text-heading);
  transition: background-color 0.2s ease;
}

.ant-collapse-header:hover {
  background-color: #fafafa;
}

.ant-collapse-header svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  stroke: var(--ant-text-secondary);
}

.ant-collapse-item.open .ant-collapse-header svg {
  transform: rotate(90deg);
  stroke: var(--ant-primary);
}

.ant-collapse-content {
  display: none;
  padding: 0 18px 16px 18px;
  color: var(--ant-text-body);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ant-collapse-item.open .ant-collapse-content {
  display: block;
}

/* Ant Article / Documentation Typography */
.ant-prose {
  color: var(--ant-text-body);
  font-size: 0.95rem;
  line-height: 1.75;
}

.ant-prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ant-border-split);
}

.ant-prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  margin: 1.5rem 0 0.75rem 0;
}

.ant-prose p {
  margin-bottom: 1.1rem;
}

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

.ant-prose li {
  margin-bottom: 0.4rem;
}

.ant-prose code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.85em;
  padding: 0.2em 0.4em;
  background-color: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  color: #cf1322;
}

.ant-prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--ant-radius-lg);
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ant-prose blockquote {
  border-left: 4px solid var(--ant-primary);
  background: #f0f5ff;
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--ant-radius-base) var(--ant-radius-base) 0;
  margin: 1.25rem 0;
  color: var(--ant-text-heading);
}

/* Ant Interactive Tool Card Layout */
.ant-tool-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ant-tool-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.ant-tool-output-box {
  background: #fafafa;
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius-base);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  word-break: break-all;
  position: relative;
}

/* Ant Design Footer */
.ant-layout-footer {
  background: #ffffff;
  border-top: 1px solid var(--ant-border-split);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
}

.ant-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .ant-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ant-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ant-text-heading);
  margin-bottom: 0.85rem;
}

.ant-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ant-footer-col li {
  margin-bottom: 0.5rem;
}

.ant-footer-col a {
  color: var(--ant-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.ant-footer-col a:hover {
  color: var(--ant-primary);
}

.ant-footer-bottom {
  max-width: 1140px;
  margin: 2rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ant-border-split);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ant-text-secondary);
}

/* ==========================================================================
   COOKIE CONSENT NOTICE BANNER (GDPR / ePrivacy / AdSense Compliant)
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--ant-border-split);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
  animation: antSlideUp 0.3s ease;
}

@keyframes antSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-text {
  font-size: 0.875rem;
  color: var(--ant-text-body);
  line-height: 1.5;
  margin: 0;
  max-width: 860px;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-consent-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   ADSENSE COMPLIANT AD CONTAINERS (Clear Separation, Non-Deceptive)
   ========================================================================== */
.ad-slot-container {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  padding: 0.75rem;
  background: #fafafa;
  border: 1px dashed var(--ant-border);
  border-radius: var(--ant-radius-base);
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.ad-slot-label {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ant-text-disabled);
  margin-bottom: 0.5rem;
  display: block;
}

.ad-slot-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  width: 100%;
}



