/* ---------- RESET / BASE ---------- */
* {
  box-sizing: border-box;
  max-width: 100%;
}
/* === GLOBAL MOBILE OVERFLOW FIX === */
html {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f4f6f9 0%, #e9ecef 100%);
  margin: 0;
  color: #212529;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 10px 15px 15px;
}

/* ---------- HEADER ---------- */
.header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #1a365d;
  background: linear-gradient(135deg, #0d6efd, #198754);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 12px;
  line-height: 1.5;
}

.version {
  display: inline-block;
  background: #e9ecef;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 8px;
}

/* ---------- CARD ---------- */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #198754);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* ---------- TOOL CONTROLS ---------- */
.tool-controls {
  margin-bottom: 28px;
}

.controls-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

input[type="file"] {
  padding: 12px;
  font-size: 15px;
  border: 2px dashed #ced4da;
  border-radius: 10px;
  background: #f8f9fa;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #0d6efd;
  background: #f0f7ff;
}

/* ---------- RANGE ---------- */
.range-label {
  display: block;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #495057;
  font-weight: 500;
}

input[type="range"] {
  width: 100%;
  margin-top: 10px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #e9ecef, #0d6efd);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0d6efd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #0b5ed7;
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(13, 110, 253, 0.4);
}

/* ---------- BUTTONS ---------- */
button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6efd, #198754);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
  background: linear-gradient(135deg, #0b5ed7, #157347);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

button i {
  font-size: 16px;
}

.secondary-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.secondary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6268, #343a40);
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.danger-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.danger-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333, #bd2130);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.success-btn {
  background: linear-gradient(135deg, #198754, #157347);
}

.success-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #157347, #0f5132);
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

.remove-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
  padding: 8px 16px;
  font-size: 14px;
}

/* ---------- PROGRESS ---------- */
.progress-wrapper {
  position: relative;
  height: 24px;
  background: #e9ecef;
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d6efd, #198754);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d6efd, #198754);
  transition: width 0.3s ease;
}

#progressText {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #212529;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

/* ---------- PREVIEW GRID ---------- */
.preview-grid {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

/* ---------- IMAGE CARD ---------- */
.preview-grid .card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ---------- IMAGE COLUMN ---------- */
.img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.img-col img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

.img-col img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ---------- COMPRESSED COLUMN ---------- */
.compressed {
  border-left: 2px solid #dee2e6;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compressed p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- DOWNLOAD ACTIONS ---------- */
.download-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- ADSENSE ---------- */
.ad-box {
  height: 90px;
  max-width: 728px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  text-align: center;
  line-height: 90px;
  border-radius: 12px;
  color: #6c757d;
  font-size: 14px;
  border: 2px dashed #ced4da;
  font-weight: 500;
  margin: 5px auto; 
  aspect-ratio: 728 / 90;
}
/* Force ad iframe to scale */
.ad-box iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .ad-box {
    max-width: 100%;
    aspect-ratio: 320 / 50;   /* common mobile banner ratio */
  }
}

  .compressed {
    border-left: none;
    border-top: 1px dashed #dee2e6;
    padding-left: 0;
    padding-top: 12px;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }


/* ---------- DRAG & DROP ---------- */
.drop-zone {
  border: 3px dashed #cfe2ff;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 24px;
}

.drop-zone:hover {
  background: linear-gradient(135deg, #eef5ff, #e0edff);
  border-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
}

.drop-zone.active {
  background: linear-gradient(135deg, #e0edff, #d4e6ff);
  border-color: #0d6efd;
  transform: translateY(-2px);
}
/* Reduce drop-zone padding on mobile */
@media (max-width: 600px) {
  .drop-zone {
    padding: 24px 16px;
  }
}
.drop-content strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1a365d;
}

.drop-content span {
  display: block;
  margin: 8px 0;
  color: #7d756c;
  font-size: 15px;
}

.browse-btn {
  background: linear-gradient(135deg, #0d6efd, #198754);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
}

.browse-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
  color: #ffffff !important;
}

.browse-btn span {
  color: white !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}



.hint {
  margin-top: 12px;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.5;
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  background: #fff;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: transparent;
  color: #6c757d;
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.tab-btn:hover:not(.active) {
  background: #f8f9fa;
  color: #0d6efd;
}

.tab-btn.active {
  background: #0d6efd;
  color: #fff;
  border-bottom: 3px solid #0d6efd;
  box-shadow: 0 -4px 20px rgba(13, 110, 253, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

/* ---------- FILE LIST ---------- */
.file-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-color: #0d6efd;
  transform: translateX(4px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.file-icon {
  font-size: 28px;
  color: #dc3545;
  flex-shrink: 0;
}

.file-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  font-size: 15px;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}

/* ---------- SPLIT OPTIONS ---------- */
.split-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #f8f9fa;
  transition: background 0.3s ease;
  flex-wrap: wrap;
}

.option-row:hover {
  background: #e9ecef;
}

.number-input {
  width: 90px;
  padding: 10px 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.number-input:hover, .number-input:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* ---------- SELECT STYLES ---------- */
select {
  padding: 12px 16px;
  border: 2px solid #ced4da;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #212529;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

select:hover {
  border-color: #0d6efd;
  background: #f0f7ff;
}

select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* ---------- UTILITY ---------- */
.hidden {
  display: none !important;
}

.mt-24 {
  margin-top: 24px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

.text-success {
  color: #198754;
  font-weight: 700;
}

.text-danger {
  color: #dc3545;
  font-weight: 700;
}

.text-primary {
  color: #0d6efd;
  font-weight: 700;
}

.image-format-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border: 2px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.format-option:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-color: #0d6efd;
  transform: translateY(-2px);
}

.format-option.active {
  background: linear-gradient(135deg, #e7f1ff, #d4e6ff);
  border-color: #0d6efd;
  color: #0d6efd;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.format-option input[type="radio"] {
  margin: 0;
}

/* ---------- STATUS MESSAGE ---------- */
.status-message {
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  display: none;
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.status-success {
  background: linear-gradient(135deg, #d1e7dd, #badbcc);
  color: #0f5132;
  border-left-color: #198754;
  display: block;
}

.status-error {
  background: linear-gradient(135deg, #f8d7da, #f5c2c7);
  color: #721c24;
  border-left-color: #dc3545;
  display: block;
}

.status-info {
  background: linear-gradient(135deg, #cfe2ff, #b6d4fe);
  color: #084298;
  border-left-color: #0d6efd;
  display: block;
}

/* ---------- PDF TO IMAGE PREVIEW ---------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.image-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: #0d6efd;
}

.image-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  margin-bottom: 12px;
}

.image-info {
  text-align: center;
  font-size: 14px;
}

.image-checkbox {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.image-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ---------- LOADING SPINNER ---------- */
.spinner {
  width: 50px;
  height: 50px;
  margin: 30px auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- FEATURES GRID ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: #fff;
  padding: 8px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #0d6efd;
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #0d6efd;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 8px;
}

.feature-desc {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- FILE INFO ---------- */
.file-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 2px solid #dee2e6;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  color: #212529;
  font-weight: 600;
}

/* ---------- TOOLTIPS ---------- */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background: linear-gradient(135deg, #212529, #343a40);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  font-weight: normal;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ---------- PAGE COUNTER ---------- */
.page-counter {
  display: inline-block;
  background: linear-gradient(135deg, #0d6efd, #198754);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 12px;
  vertical-align: middle;
}

/* ---------- ICONS ---------- */
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

.icon-pdf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E"); }
.icon-image { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E"); }
.icon-merge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z'/%3E%3C/svg%3E"); }
.icon-split { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4h-6zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3L10 4z'/%3E%3C/svg%3E"); }
.icon-compress { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z'/%3E%3C/svg%3E"); }

/* ---------- NAVBAR ---------- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* BRAND */
.brand-wrap {
  display: flex;
  flex-direction: column;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0d6efd;
}

.brand-title {
  margin: 0;
}

/* MENU */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #212529;
}

.nav-links a:hover {
  color: #0d6efd;
}

.nav-links a.active {
  color: #0d6efd;
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #0d6efd;
  border-radius: 4px;
}

/* TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.nav-toggle:hover {
  background: #fff;
}
/* ---------- OPTIONS ---------- */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.option-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-item label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
}

.option-item select,
.option-item input[type="number"] {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ced4da;
  background: #fff;
}

.option-item select:focus,
.option-item input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,.15);
}

/* Checkbox */
.option-item.checkbox {
  justify-content: flex-end;
}

.option-item.checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.option-item.checkbox input {
  width: 16px;
  height: 16px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    color: black;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 8px 0;
  }
}

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

/* TEXTAREA STYLES */
textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  resize: vertical;
  outline: none;
  margin-bottom: 20px;
}

textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,.15);
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.stat-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

.stat-box span {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
  color: #0d6efd;
}

/* TOOL CARD */
.tool-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

/* ===== NEW CLASSES TO ADD ===== */

/* File upload custom button */
.file-upload {
  position: relative;
  display: inline-block;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0d6efd, #198754);
  color: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13,110,253,.25);
  transition: .2s ease;
}

.file-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13,110,253,.35);
}

.file-name {
  margin-left: 10px;
  font-size: 0.85rem;
  color: #495057;
}

/* Additional classes from the top section */
.preview img {
  max-width: 100%;
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

pre {
  background: #f1f1f1;
  padding: 10px;
  overflow: auto;
}

/* Nav toggle hover */
.nav-toggle:hover {
  background: #fff;
}

/* === CROP AREA IMPROVEMENT === */

#cropImage {
  width: 100%;
  max-width: 600px;     /* increase preview width */
  height: auto;
  max-height: 620px;    /* allow taller cropping */
  object-fit: contain;
}

/* make preview card wider */
.preview-grid .card {
  grid-template-columns: 1.3fr 0.7fr;
}

/* mobile friendly */
@media (max-width: 700px) {
  #cropImage {
    max-width: 100%;
    max-height: 350px;
  }
}

.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  margin-top: 0px;
  padding: 15px 20px 30px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e5e7eb;
  padding: 14px 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 20px rgba(0,0,0,.25);
}

.cookie-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
}

.cookie-content a {
  color: #38bdf8;
  text-decoration: none;
}

.cookie-content button {
  background: #38bdf8;
  border: none;
  color: #020617;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-content button:hover {
  opacity: 0.9;
}

@media (max-width: 700px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
.legal-page {
  max-width: 900px;
  margin: 0px auto;
  line-height: 1.7;
}

.legal-page h1, .legal-page h2 {
  margin-top: 20px;
}
.footer-bottom a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Header Brand Area */
/* Brand wrapper */
.brand-wrap {
  display: flex;
  flex-direction: column;
}

/* Brand title (logo row) */
.brand-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* 🔥 Force left alignment */
}

/* Logo */
.site-logo {
  height: 42px;
  width: auto;
  display: block;
  margin: 0;                    /* 🔥 Remove weird spacing */
  padding: 0;
  transition: all 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
  .site-logo { height: 38px; }
}

/* Mobile */
@media (max-width: 600px) {
  .site-logo { height: 32px; }
}

/* Small phones */
@media (max-width: 400px) {
  .site-logo { height: 28px; }
}

/* Content Quality Analyzer Styles */
.quality-analyzer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.quality-analyzer h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.quality-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.quality-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quality-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.quality-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.quality-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    width: 100%;
}

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

.quality-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
    margin-top: auto;
}

.top-keywords, .writing-tips {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-keywords h4, .writing-tips h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.keywords-container {
    min-height: 60px;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.keyword-item {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.keyword-item:hover {
    transform: translateY(-2px);
}

.keyword-word {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.keyword-stats {
    font-size: 0.75rem;
    color: #666;
}

.low-density {
    background: #e8f5e8;
    border: 1px solid #27ae60;
}

.medium-density {
    background: #fff8e1;
    border: 1px solid #f39c12;
}

.high-density {
    background: #ffeaea;
    border: 1px solid #e74c3c;
}

.no-keywords {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
}

.tips-container {
    min-height: 40px;
}

.tip {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.tip:last-child {
    border-bottom: none;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .quality-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quality-box {
        min-height: 130px;
    }
    
    .top-keywords, .writing-tips {
        padding: 1.25rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quality-analyzer {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .quality-analyzer h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .quality-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quality-box {
        min-height: 100px;
        padding: 0.75rem;
    }
    
    .quality-value {
        font-size: 1.6rem;
    }
    
    .quality-label {
        font-size: 0.8rem;
    }
    
    .quality-desc {
        font-size: 0.75rem;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .keyword-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .keyword-stats {
        font-size: 0.7rem;
    }
    
    .top-keywords, .writing-tips {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .top-keywords h4, .writing-tips h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .tip {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
}

/* Small Mobile (Phones) */
@media (max-width: 480px) {
    .quality-analyzer {
        padding: 0.75rem;
    }
    
    .quality-stats {
        gap: 0.5rem;
    }
    
    .quality-box {
        min-height: 90px;
        padding: 0.75rem;
    }
    
    .quality-value {
        font-size: 1.4rem;
    }
    
    .quality-label {
        font-size: 0.75rem;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .keyword-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
    }
    
    .keyword-word {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .top-keywords, .writing-tips {
        padding: 0.75rem;
    }
    
    .no-keywords {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .quality-analyzer {
        padding: 0.5rem;
    }
    
    .quality-box {
        padding: 0.5rem;
        min-height: 85px;
    }
    
    .quality-value {
        font-size: 1.3rem;
    }
    
    .quality-label {
        font-size: 0.7rem;
    }
    
    .quality-desc {
        font-size: 0.7rem;
    }
    
    .top-keywords, .writing-tips {
        padding: 0.5rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .quality-analyzer {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .quality-analyzer h3,
    .top-keywords h4,
    .writing-tips h4 {
        color: #e2e8f0;
    }
    
    .quality-box {
        background: #4a5568;
    }
    
    .quality-label,
    .quality-desc {
        color: #cbd5e0;
    }
    
    .quality-value {
        color: #ffffff;
    }
    
    .quality-bar {
        background: #718096;
    }
    
    .top-keywords,
    .writing-tips {
        background: #4a5568;
    }
    
    .keyword-word {
        color: #e2e8f0;
    }
    
    .keyword-stats {
        color: #a0aec0;
    }
    
    .low-density {
        background: #22543d;
        border-color: #38a169;
    }
    
    .medium-density {
        background: #744210;
        border-color: #ed8936;
    }
    
    .high-density {
        background: #742a2a;
        border-color: #fc8181;
    }
    
    .no-keywords {
        color: #a0aec0;
    }
    
    .tip {
        color: #cbd5e0;
        border-color: #718096;
    }
}

/* Print Support */
@media print {
    .quality-analyzer {
        break-inside: avoid;
        background: none;
        border: 2px solid #000;
    }
    
    .quality-box {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .quality-bar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Social Platform Optimizer Styles - Responsive Mobile First */
.social-optimizer {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.social-optimizer h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.optimizer-subtitle {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile First - Single Column */
.platforms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.platform-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.platform-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.platform-icon svg {
    width: 20px;
    height: 20px;
}

.twitter-icon {
    background: #1da1f2;
    color: white;
}

.instagram-icon {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
}

.linkedin-icon {
    background: #0077b5;
    color: white;
}

.facebook-icon {
    background: #1877f2;
    color: white;
}

.platform-info {
    flex: 1;
    min-width: 0;
}

.platform-info h4 {
    margin: 0 0 0.25rem 0;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.platform-stats {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

.char-count {
    font-weight: bold;
    font-size: 1.1rem;
}

.char-limit {
    opacity: 0.8;
}

.platform-progress {
    margin-bottom: 0.75rem;
    width: 100%;
}

.progress-bar-w {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    width: 100%;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
    max-width: 100%;
}

.progress-labels {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.progress-label {
    text-align: left;
    line-height: 1.3;
    word-break: break-word;
}

.progress-label.optimal {
    color: #4ade80;
}

.progress-label.good {
    color: #fbbf24;
}

.progress-label.long {
    color: #f87171;
}

.platform-tip {
    font-size: 0.8rem;
    opacity: 0.9;
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.4;
    word-break: break-word;
}

.social-tips {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.social-tips h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.social-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}

.tip-content {
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.tip-content strong {
    color: white;
    font-weight: 600;
}

/* Tablet - 2 columns for platforms */
@media (min-width: 640px) {
    .social-optimizer {
        padding: 1.5rem;
    }
    
    .social-optimizer h3 {
        font-size: 1.3rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-labels {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .progress-label {
        text-align: center;
        flex: 1;
        font-size: 0.65rem;
    }
}

/* Desktop - 4 columns for platforms */
@media (min-width: 1024px) {
    .social-optimizer {
        padding: 2rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .platform-card {
        padding: 1.25rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .progress-label {
        font-size: 0.7rem;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .social-optimizer {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    .social-optimizer {
        padding: 1rem;
    }
    
    .social-optimizer h3 {
        font-size: 1.1rem;
    }
    
    .optimizer-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .platform-card {
        padding: 0.875rem;
    }
    
    .platform-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .platform-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .platform-info h4 {
        font-size: 0.95rem;
    }
    
    .char-count {
        font-size: 1rem;
    }
    
    .social-tips {
        padding: 1rem;
    }
    
    .social-tips h4 {
        font-size: 1rem;
    }
    
    .tip-icon {
        font-size: 1.1rem;
    }
    
    .tip-content {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices (Galaxy Fold, etc) */
@media (max-width: 320px) {
    .social-optimizer {
        padding: 0.875rem;
    }
    
    .platform-card {
        padding: 0.75rem;
    }
    
    .platform-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        margin-right: 0.5rem;
    }
    
    .platform-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .platform-info h4 {
        font-size: 0.9rem;
    }
    
    .platform-stats {
        font-size: 0.8rem;
    }
    
    .char-count {
        font-size: 0.95rem;
    }
    
    .progress-label {
        font-size: 0.6rem;
    }
    
    .platform-tip {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .social-optimizer {
        background: white !important;
        color: black !important;
        border: 2px solid #000;
    }
    
    .social-optimizer h3,
    .platform-info h4,
    .social-tips h4 {
        color: black !important;
    }
    
    .platform-card {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }
    
    .platform-icon {
        background: #333 !important;
        color: white !important;
    }
    
    .tip-content strong {
        color: black !important;
    }
    
    .progress-bar-w {
        background: #ddd !important;
    }
    
    .progress-fill {
        background: #666 !important;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 767px) {
    .social-optimizer,
    .platform-card,
    .social-tips {
        overflow-x: hidden;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .platform-card:hover {
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.15);
    }
    
    .platform-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.25);
        transition: transform 0.1s ease, background 0.1s ease;
    }
    
    /* Increase tap targets for mobile */
    .platform-card {
        min-height: 120px;
    }
    
    .progress-bar-w {
        height: 8px;
    }
}

/* Remove hover effects on mobile */
@media (max-width: 1024px) {
    .platform-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* FAQ Section Styles */
.faq {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.faq h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.faq h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.faq h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.faq h3:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(5px);
}

.faq h3:after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #3498db;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq h3.active:after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 0 1.25rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq p.active {
    display: block;
}

/* FAQ Item Container */
.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.faq-item.active {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

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

/* Animation for FAQ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Search Feature */
.faq-search {
    margin-bottom: 2rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.faq-search:before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #7f8c8d;
}

.faq-search input::placeholder {
    color: #95a5a6;
}

/* No Results Message */
.faq-no-results {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
    display: none;
}

.faq-no-results.active {
    display: block;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.faq-category {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-category:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.faq-category.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Responsive Design for FAQ */
@media (max-width: 1024px) {
    .faq {
        padding: 1.75rem;
    }
    
    .faq h2 {
        font-size: 1.6rem;
    }
    
    .faq h3 {
        font-size: 1.2rem;
    }
    
    .faq p {
        font-size: 1.03rem;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 1.5rem;
        margin-top: 2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .faq h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .faq h2:after {
        width: 60px;
    }
    
    .faq h3 {
        font-size: 1.15rem;
        padding: 0.875rem 1rem;
        margin-bottom: 0;
    }
    
    .faq h3:after {
        right: 1rem;
        font-size: 1.3rem;
    }
    
    .faq p {
        font-size: 1rem;
        padding: 1rem;
        line-height: 1.6;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-categories {
        gap: 0.375rem;
    }
    
    .faq-category {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .faq h2 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .faq h3 {
        font-size: 1.1rem;
        padding: 0.75rem;
        border-left-width: 3px;
    }
    
    .faq h3:hover {
        transform: none;
    }
    
    .faq h3:after {
        right: 0.75rem;
        font-size: 1.2rem;
    }
    
    .faq p {
        font-size: 0.98rem;
        padding: 0.75rem;
    }
    
    .faq-search input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .faq-search:before {
        left: 0.75rem;
        font-size: 1rem;
    }
    
    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .faq-category {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 320px) {
    .faq {
        padding: 1rem;
    }
    
    .faq h2 {
        font-size: 1.3rem;
    }
    
    .faq h3 {
        font-size: 1.05rem;
        padding: 0.625rem;
    }
    
    .faq p {
        font-size: 0.95rem;
        padding: 0.625rem;
    }
}

/* Print styles for FAQ */
@media print {
    .faq {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .faq h2 {
        color: #000;
        text-align: left;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #000;
    }
    
    .faq h2:after {
        display: none;
    }
    
    .faq h3 {
        color: #000;
        background: #f5f5f5;
        border-left: 2px solid #000;
        cursor: default;
    }
    
    .faq h3:after {
        display: none;
    }
    
    .faq p {
        color: #333;
        display: block !important;
    }
    
    .faq-search,
    .faq-categories {
        display: none;
    }
}

/* SEO Content Section Styles */
.seo-content {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.seo-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
    font-weight: 700;
    line-height: 1.3;
}

.seo-content h2:not(:first-child) {
    margin-top: 2.5rem;
}

.seo-content p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.seo-content ul, .seo-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-content li {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    position: relative;
}

.seo-content li:last-child {
    margin-bottom: 0;
}

.seo-content ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.2rem;
}

.seo-content ol {
    counter-reset: item;
}

.seo-content ol li {
    counter-increment: item;
}

.seo-content ol li:before {
    content: counter(item) ".";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
}

.seo-content strong {
    color: #2c3e50;
    font-weight: 700;
}

.seo-content em {
    color: #4a5568;
    font-style: italic;
}

.seo-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.seo-content a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

/* Featured sections within SEO content */
.feature-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.feature-highlight h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Responsive Design for SEO Content */
@media (max-width: 1024px) {
    .seo-content {
        padding: 1.75rem;
    }
    
    .seo-content h2 {
        font-size: 1.6rem;
    }
    
    .seo-content p,
    .seo-content li {
        font-size: 1.03rem;
    }
}

@media (max-width: 768px) {
    .seo-content {
        padding: 1.5rem;
        margin-top: 2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
    }
    
    .seo-content h2:not(:first-child) {
        margin-top: 2rem;
    }
    
    .seo-content p,
    .seo-content li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .feature-highlight {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .feature-highlight h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .seo-content {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .seo-content h2 {
        font-size: 1.4rem;
    }
    
    .seo-content p,
    .seo-content li {
        font-size: 0.98rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .seo-content ul, .seo-content ol {
        padding-left: 1.25rem;
    }
    
    .feature-highlight {
        padding: 1rem;
        margin: 1.25rem 0;
    }
}

@media (max-width: 320px) {
    .seo-content {
        padding: 1rem;
    }
    
    .seo-content h2 {
        font-size: 1.3rem;
    }
    
    .seo-content p,
    .seo-content li {
        font-size: 0.95rem;
    }
}

/* Print styles for SEO content */
@media print {
    .seo-content {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .seo-content h2 {
        color: #000;
        border-bottom: 1px solid #000;
    }
    
    .seo-content p,
    .seo-content li {
        color: #333;
    }
    
    .seo-content a {
        color: #000;
        text-decoration: underline;
    }
}