


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Roboto:wght@400;500;700&family=Open+Sans:wght@400;600;700&family=Lato:wght@400;700&family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Nunito:wght@400;600;700&family=Raleway:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&family=Outfit:wght@400;500;600;700&display=swap');


:root {
  
  --bg-primary: #0f0a1a;
  --bg-secondary: #171026;
  --bg-tertiary: #231838;
  --bg-panel: rgba(23, 16, 38, 0.85);
  --bg-panel-hover: rgba(35, 24, 56, 0.95);
  --bg-glass: rgba(15, 10, 26, 0.6);
  --bg-glass-border: rgba(178, 36, 239, 0.12);
  --bg-input: rgba(15, 10, 26, 0.8);

  --text-primary: #ffffff;
  --text-secondary: #a79fbb;
  --text-muted: #746b8a;
  --text-inverse: #0f0a1a;

  --accent: #B224EF;
  --accent-hover: #c94bff;
  --accent-glow: rgba(178, 36, 239, 0.25);
  --accent-secondary: #7579FF;
  --accent-gradient: linear-gradient(135deg, #B224EF 0%, #7579FF 100%);

  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);

  --border: rgba(167, 159, 187, 0.12);
  --border-hover: rgba(167, 159, 187, 0.25);
  --border-active: rgba(178, 36, 239, 0.4);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(178, 36, 239, 0.15);

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

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --header-height: 64px;
  --toolbar-height: 52px;
  --sidebar-width: 300px;
  --footer-height: 40px;
}


[data-theme="light"] {
  --bg-primary: #fdfbf7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f0ea;
  --bg-panel: rgba(255, 255, 255, 0.9);
  --bg-panel-hover: rgba(244, 240, 234, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-border: rgba(178, 36, 239, 0.15);
  --bg-input: rgba(253, 251, 247, 0.9);

  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: #000000;
  --text-inverse: #fdfbf7;

  --accent: #8E2DE2;
  --accent-hover: #b44bff;
  --accent-glow: rgba(178, 36, 239, 0.2);
  --accent-secondary: #7579FF;
  --accent-gradient: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);

  --border: rgba(35, 24, 56, 0.08);
  --border-hover: rgba(35, 24, 56, 0.15);
  --border-active: rgba(178, 36, 239, 0.4);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 24px rgba(178, 36, 239, 0.1);
}


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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  transition: background var(--transition-base), color var(--transition-base);
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
}

::selection {
  background: var(--accent);
  color: var(--text-inverse);
}


::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}



.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  position: relative;
  z-index: 1;
}


.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--accent);
  border-bottom: none;
  flex-shrink: 0;
  z-index: 100;
  color: #ffffff;
  min-height: 96px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  letter-spacing: -0.02em;
}

.app-subtitle {
  display: none;
}

.nav-link {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-right: 12px;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #ffffff !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 48px;
}


.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.icon-btn:active {
  transform: translateY(0);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}



.unified-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height) - 40px);
}

.card-tabs {
  display: none; 
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.card-tab {
  flex: 1;
  text-align: center;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.card-tab:hover {
  background: var(--bg-panel-hover);
  color: var(--text-primary);
}

.card-tab.active {
  background: var(--bg-panel);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.card-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.card-column {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.card-column:first-child {
  border-right: 1px solid var(--border);
}

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

.column-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.column-indicator {
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
}

.column-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.column-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
}

.column-footer {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
  height: 36px;
}

.unified-textarea {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.unified-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.unified-textarea:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
  font-style: italic;
}

.preview-output {
  background: var(--bg-secondary);
  font-family: var(--font-mono);
}


.options-section {
  padding: 30px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
}

.options-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.options-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: normal;
}

.options-divider {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.options-grid {
  display: grid;
  gap: 12px;
}

.checkboxes-grid {
  grid-template-columns: repeat(3, 1fr);
}

.case-grid {
  grid-template-columns: repeat(5, 1fr);
}

.font-grid {
  grid-template-columns: repeat(5, 1fr);
}


.pill-checkbox, .pill-radio {
  display: block;
  position: relative;
  cursor: pointer;
}

.pill-checkbox input, .pill-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.pill-checkbox-text, .pill-radio-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  height: 100%;
}

.pill-checkbox-text::before, .pill-radio-text::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.pill-radio-text::before {
  border-radius: 50%;
}

.pill-checkbox:hover .pill-checkbox-text,
.pill-radio:hover .pill-radio-text {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.pill-checkbox input:checked ~ .pill-checkbox-text,
.pill-radio input:checked ~ .pill-radio-text {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.pill-checkbox input:checked ~ .pill-checkbox-text::before,
.pill-radio input:checked ~ .pill-radio-text::before {
  background-color: #d32f2f;
  border-color: #d32f2f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 8px rgba(211, 47, 47, 0.6);
}


.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-hover);
}

.pill-btn.primary {
  background: #6366f1;
  color: #fff;
  border: none;
}
.pill-btn.primary:hover { opacity: 0.9; }

.pill-btn.warning {
  background: #f59e0b;
  color: #fff;
  border: none;
}
.pill-btn.warning:hover { opacity: 0.9; }

.pill-btn.success {
  background: #10b981;
  color: #fff;
  border: none;
}
.pill-btn.success:hover { opacity: 0.9; }

.pill-btn svg { width: 16px; height: 16px; flex-shrink:0; }

.icon-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.icon-text-btn:hover { background: var(--bg-panel-hover); color: var(--text-primary); }
.icon-text-btn.danger:hover { color: var(--danger); }
.icon-text-btn svg { width: 16px; height: 16px; }


.font-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-control label {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-secondary);
}

.unified-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.unified-range {
  width: 100%;
  height: 4px;
  margin-top: 18px;
}

.unified-color {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  background: none;
}
.unified-color::-webkit-color-swatch-wrapper { padding: 0; }
.unified-color::-webkit-color-swatch { border: none; border-radius: 4px; }



@media (max-width: 1000px) {
  
  .card-tabs { display: flex; }
  
  .card-columns {
    grid-template-columns: 1fr;
    position: relative;
  }
  
  .card-column {
    display: none;
    border-right: none;
  }
  
  .card-column.active {
    display: flex;
  }

  .checkboxes-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .font-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
}

@media (max-width: 800px) {
}

@media (max-width: 650px) {
  .checkboxes-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .font-grid { grid-template-columns: 1fr; }
  .options-section { padding: 16px; }
  .card-column { padding: 16px; }
  
  
  .pill-btn span { display: none; } 
  .pill-btn { padding: 0 12px; }
  
  .header { padding: 12px; }
  .app-title { font-size: 1.1rem; }
  .app-subtitle { display: none; }
  
  .column-body { min-height: 250px; }
  
  .footer { 
    flex-direction: column; 
    height: auto; 
    padding: 12px; 
    gap: 8px; 
  }
  .privacy-badge span { display: none; }
  .footer-left, .footer-right { flex-wrap: wrap; justify-content: center; }
}


.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-height);
  padding: 0 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-stat-value {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  margin-top: auto;
  font-family: var(--font-sans);
}

.footer-sections {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 30px;
  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 150px;
}

.footer-heading {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-pages-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.68rem;
}

.privacy-badge svg {
  width: 12px;
  height: 12px;
}


.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity var(--transition-base);
}

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

.drop-zone {
  width: 380px;
  height: 260px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent-glow);
  animation: pulse-border 2s ease-in-out infinite;
}

.drop-zone svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.drop-zone-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.drop-zone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: var(--accent-secondary); }
}


.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--text-primary);
  pointer-events: auto;
  animation: toast-in 300ms ease forwards;
  max-width: 340px;
}

.toast.removing {
  animation: toast-out 250ms ease forwards;
}

.toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.success .toast-icon { color: var(--success); }

.toast.error { border-left: 3px solid var(--danger); }
.toast.error .toast-icon { color: var(--danger); }

.toast.info { border-left: 3px solid var(--accent); }
.toast.info .toast-icon { color: var(--accent); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(40px) scale(0.95); }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 440px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  animation: modal-in 250ms ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

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

.modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.modal-body {
  padding: 16px 20px 20px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.shortcut-keys {
  display: flex;
  gap: 4px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}




.sidebar-toggle-mobile {
  display: none;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    right: 0;
    top: var(--header-height);
    bottom: var(--footer-height);
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.collapsed {
    width: 0;
    right: -10px;
  }

  .sidebar-toggle-mobile {
    display: inline-flex;
  }

  .tool-btn span {
    display: none;
  }

  .tool-btn {
    padding: 0 10px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0 12px;
  }

  .app-subtitle {
    display: none;
  }

  .editor-area {
    flex-direction: column;
  }

  .panel-divider {
    width: auto;
    height: 1px;
    cursor: row-resize;
  }

  .toolbar {
    padding: 0 8px;
    gap: 4px;
  }

  .toolbar-divider {
    margin: 0 4px;
  }

  .footer-left {
    gap: 10px;
  }

  .footer-stat-label {
    display: none;
  }

  .sidebar {
    width: 100%;
    --sidebar-width: 100%;
  }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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


#fileInput {
  display: none;
}


.seo-section {
  background: var(--bg-primary);
  padding: 24px;
  position: relative;
  z-index: 10;
}

.seo-container {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.seo-container h1, .seo-container h2, .seo-container h3, .seo-container h4 {
  color: var(--text-primary);
  margin-top: 1em;
  margin-bottom: 0.4em;
  font-weight: 600;
}

.seo-container h1 {
  font-size: 2.2rem;
  margin-top: 0;
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-container h2 {
  font-size: 1.6rem;
  background: var(--bg-input);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.seo-container h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  background: var(--bg-panel);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--success);
}

.seo-container h4 {
  font-size: 1.1rem;
  margin-top: 1.5em;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.seo-container p {
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.seo-container ul, .seo-container ol {
  margin-bottom: 1.5em;
  padding-left: 24px;
}

.seo-container li {
  margin-bottom: 0.5em;
}

.seo-container hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.seo-container strong {
  color: var(--text-primary);
}


.how-to-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 16px 0;
}
.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.step-content {
  padding: 20px;
  flex: 1;
}
.step-number {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list {
  padding-left: 20px;
  margin-bottom: 20px;
}
.feature-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}




.about-container, .contact-container, .blog-container, .article-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-title, .contact-title, .blog-header, .article-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.contact-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.about-title { font-size: 2rem; font-weight: 700; }

.contact-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.about-content p, .article-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about-content h2, .article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-content ul, .article-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-content li, .article-content li {
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  margin-bottom: 24px;
}

.feature-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-title svg {
  color: var(--success);
  width: 20px;
  height: 20px;
}

.feature-desc {
  margin-top: 4px;
  color: var(--text-secondary);
  padding-left: 28px;
}

.contact-email {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-email:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--accent);
}


.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}
.form-group input, .form-group textarea {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.submit-btn {
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.submit-btn:hover {
  background: var(--accent-hover);
}


.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-card {
  padding: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: block;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-category, .article-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.article-content th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text-primary);
}




.mobile-menu-toggle {
  display: inline-flex;
  position: absolute !important;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px 0 0 8px !important;
  border-right: none !important;
  width: 48px !important;
  height: 48px !important;
  background: rgba(0, 0, 0, 0.15) !important;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
  right: 0;
}

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

.mobile-menu-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 5px;
  letter-spacing: 1px;
}



@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .desktop-nav {
    display: none;
  }
}

.feature-list { list-style: none; }


@media (max-width: 899px) {
  #btnShortcuts {
    display: none !important;
  }
}

