:root {
      --bg: #071427; 
      --card: #0b1220; 
      --accent: #7c3aed; 
      --accent2: #06b6d4; 
      --muted: #9fb0c8;
      --text: #ffffff;
      --radius: 12px; 
      --shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
      --transition: all 0.3s ease;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }
    
    * {
      box-sizing: border-box;
    }
     body, .container, .main-content, .tool-container {
        color: #e0e0e0 !important;
    }
    
    h1, h2, h3, h4, h5, h6, p, span, div, li {
        color: #e0e0e0 !important;
    }
    
    h1, h2, h3 {
        color: #ffffff !important;
    }
    
    input, textarea, select {
        background-color: #2d2d2d !important;
        color: #ffffff !important;
        border: 1px solid #444 !important;
    }
    
    button {
        background-color: #274c77 !important;
        color: white !important;
        border: none !important;
    }
    
    .card, .panel, .box {
        background-color: #1e1e1e !important;
        border-color: #333 !important;
    }
    
    a {
        color: #8fc3ed !important;
    }
    
    .text-muted, .text-gray, .text-secondary {
        color: #a0a0a0 !important;
    }   
    html, body {
      min-height: 100%;
      margin: 0;
      background: radial-gradient(1000px 360px at 8% 8%, rgba(124, 58, 237, 0.04), transparent 8%),
        linear-gradient(180deg, #020417 0%, #071427 50%); 
      color: var(--text);
      line-height: 1.6;
    }
    
    body {
      padding-top:70px;
      display: flex;
      flex-direction: column;
    }
    
    .private-badge {
      background: rgba(124, 58, 237, 0.15);
      color: var(--accent);
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      white-space: nowrap;
    }

/* FIX TEXT COLOR ISSUES */
.seo-content-section,
.seo-content-section p,
.seo-content-section li,
.seo-content-section .muted,
.seo-content-section .feature-item,
.seo-content-section .application-category,
.seo-content-section .faq-item {
  color: var(--text) !important;
}

/* Ensure all text in cards is visible */
.card,
.card *:not(.muted):not(.btn) {
  color: var(--text) !important;
}

/* Fix muted text to be slightly lighter but still visible */
.muted {
  color: var(--muted) !important;
  opacity: 0.8 !important;
}

/* Fix specific elements that might be inheriting wrong colors */
.status,
.history-item,
.drop-title,
.feature-item h3,
.application-category h3,
.faq-item h3 {
  color: var(--text) !important;
}

/* Fix tooltip text color */
.tooltip .tooltip-text {
  color: var(--text) !important;
  background-color: var(--card) !important;
}

/* Ensure all headings are visible */
h1, h2, h3, h4, h5, h6 {
  color: var(--text) !important;
}

/* Fix any remaining grey text */
.seo-content-section .muted,
.card .muted {
  color: var(--muted) !important;
  opacity: 0.9 !important;
}
    
    /* Main Content */
    main {
      max-width: 1200px;
      margin: 1rem auto;
      padding: 0 1rem;
      display: grid;
      gap: 1.5rem;
      grid-template-columns: 1fr;
      flex: 1;
      width: 100%;
    }
    
    @media (min-width: 980px) { 
      main {
        grid-template-columns: 1fr 360px;
        padding: 0 1.5rem;
      }
    }
    
    /* Card Styles */
    .card {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
      border-radius: var(--radius);
      padding: 1.5rem;
      box-shadow: var(--shadow);
      border: 1px solid rgba(255, 255, 255, 0.02);
    }
    
    .card-header {
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .card-header svg {
      width: 20px;
      height: 20px;
    }
    
    /* Layout Utilities */
    .row {
      display: flex;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
    }
    
    .col {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .flex-1 {
      flex: 1;
    }
    
    /* Button Styles */
    .btn {
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      border: none;
      color: white;
      padding: 0.75rem 1.25rem;
      border-radius: 10px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      font-size: 0.9rem;
    }
    
    .btn:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
    }
    
    .btn:active {
      transform: translateY(0);
    }
    
    .btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    
    .btn-sm {
      padding: 0.6rem 1rem;
      font-size: 0.85rem;
    }
    
    .btn-secondary {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: inherit;
    }
    
    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.05);
      transform: translateY(-2px);
    }
    
    /* Form Elements */
    label {
      font-size: 0.85rem;
      color: var(--muted);
      font-weight: 500;
    }
    
    input[type="range"] {
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.05);
      outline: none;
      -webkit-appearance: none;
    }
    
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--accent);
      cursor: pointer;
      border: 2px solid var(--card);
      box-shadow: 0 0 0 1px var(--accent2);
    }
    
    input[type="text"], 
    select, 
    input[type="number"] {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      padding: 0.6rem 0.8rem;
      border-radius: 8px;
      color: inherit;
      font-size: 0.9rem;
      transition: var(--transition);
    }
    
    input[type="text"]:focus, 
    select:focus, 
    input[type="number"]:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
    }
    
    input[type="checkbox"] {
      accent-color: var(--accent);
      width: 16px;
      height: 16px;
    }
    
    /* Drop Zone */
    .drop {
      border: 2px dashed rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 2rem;
      text-align: center;
      background: rgba(255, 255, 255, 0.02);
      cursor: pointer;
      transition: var(--transition);
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 160px;
    }
    
    .drop:hover {
      border-color: var(--accent);
      background: rgba(124, 58, 237, 0.05);
    }
    
    .drop.dragover {
      background: rgba(124, 58, 237, 0.08);
      border-color: var(--accent);
      transform: scale(1.01);
    }
    
    .drop-title {
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    
    /* Canvas */
    canvas {
      width: 100%;
      height: 140px;
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(5, 8, 15, 0.4), rgba(5, 8, 15, 0.1));
      display: block;
    }
    
    /* Progress Bar */
    .progress {
      height: 10px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      overflow: hidden;
      margin-top: 1rem;
    }
    
    .progress > i {
      display: block;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      transition: width 200ms linear;
      border-radius: 8px;
    }
    
    /* Status Text */
    .status {
      margin-top: 0.5rem;
      font-size: 0.9rem;
      min-height: 1.4rem;
    }
    
    /* Ad Placeholder */
    .ad-container {
      margin: 1rem 0;
    }
    
    .ad-placeholder {
      border: 1px dashed rgba(255, 255, 255, 0.08);
      text-align: center;
      border-radius: 8px;
    }
    
    /* Responsive Ad Styles */
    .ad-responsive {
    border: 1px dashed rgba(255, 255, 255, 0.08);
      width: 100%;
      display: flex;
      text-align: center;
    }
    
    /* History */
    .history-item {
      padding: 0.5rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .history-item:last-child {
      border-bottom: none;
    }
    

    /* Responsive Adjustments */
    @media (max-width: 768px) {
      
      .private-badge {
        align-self: flex-start;
      }
      
      .card {
        padding: 1.25rem;
      }
      
      .drop {
        padding: 1.5rem;
        min-height: 140px;
      }
      
      .btn {
        width: 100%;
        justify-content: center;
      }
      
      .row {
        flex-direction: column;
        align-items: stretch;
      }
      
      .col {
        width: 100% !important;
      }
    }
    
    @media (max-width: 480px) {
      
      .card {
        padding: 1rem;
      }
      
      .drop {
        padding: 1rem;
      }
    }
    
    /* Utility Classes */
    .muted {
      color: var(--muted);
      font-size: 0.85rem;
    }
    
    .text-center {
      text-align: center;
    }
    
    .mt-1 {
      margin-top: 0.5rem;
    }
    
    .mb-1 {
      margin-bottom: 0.5rem;
    }
    
    .hidden {
      display: none;
    }
    
    /* Animation */
    @keyframes pulse {
      0% { opacity: 1; }
      50% { opacity: 0.5; }
      100% { opacity: 1; }
    }
    
    .pulse {
      animation: pulse 1.5s ease-in-out infinite;
    }
    
    /* Tooltip */
    .tooltip {
      position: relative;
      display: inline-flex;
    }
    
    .tooltip .tooltip-text {
      visibility: hidden;
      width: 200px;
      background-color: var(--card);
      color: var(--text);
      text-align: center;
      border-radius: 6px;
      padding: 8px;
      position: absolute;
      z-index: 1;
      bottom: 125%;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 0.8rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .tooltip:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
    }
    
    /* Icons */
    .icon {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
	
	  .seo-content-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .seo-content-section h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent);
  }
  
  .seo-content-section h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  
  .seo-content-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  /* Feature Grid */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .feature-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  /* Step by Step */
  .step-by-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .step-number {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
  }
  
  .step-content {
    flex: 1;
  }
  
  /* Applications */
  .applications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .application-category {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  /* FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .faq-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  /* Tips List */
  .tips-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
  }
  
  .tips-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  
  @media (max-width: 768px) {
    .feature-grid,
    .applications {
      grid-template-columns: 1fr;
    }
    
    .step {
      flex-direction: column;
      text-align: center;
    }
    
    .step-number {
      align-self: center;
    }
  }
 /* MOBILE RESPONSIVENESS FIXES WITH !IMPORTANT */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: 1fr !important;
    overflow-x: hidden !important;
  }
  
  .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1rem !important;
  }
  
  /* Fix all containers */
  .container, .row, .col, .drop {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Force flexbox to wrap properly */
  .row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  
  /* Fix buttons */
  .btn {
    width: 100% !important;
    min-width: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  /* Fix canvas overflow */
  canvas {
    max-width: 100% !important;
    width: 100% !important;
    height: 120px !important;
  }
  
  /* Fix input elements */
  input[type="text"], 
  input[type="number"], 
  select {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Fix export section */
  .row.mt-1 {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .row.mt-1 > * {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Fix ads */
  .ad-container, .ad-responsive, .ad-placeholder {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  /* Fix tooltips */
  .tooltip .tooltip-text {
    display: none !important; /* Hide on mobile to prevent overflow */
  }
  
  /* Force hidden elements to stay hidden */
  .hidden {
    display: none !important;
  }
  
  /* Fix progress bar */
  .progress {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 8px !important;
  }
  
  main {
    padding: 0 8px !important;
    gap: 1rem !important;
  }
  
  .card {
    padding: 0.75rem !important;
  }
  
  .drop {
    padding: 1rem !important;
    min-height: 120px !important;
  }
  
  /* Force single column layout */
  .col {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  
  /* Fix range inputs */
  input[type="range"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ensure text doesn't overflow */
  .muted, .status, .card-header {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
  
  /* Fix file name input specifically */
  #outName {
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
  }
}

/* GLOBAL OVERFLOW FIXES WITH !IMPORTANT */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
}

* {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Force viewport compliance */
main, section, aside, .card, .container {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Fix for any remaining horizontal scroll */
body::-webkit-scrollbar {
  display: none !important;
}

body {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}