html {
  font-size: clamp(14px, 1.1vw, 16px);
}

body {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.95rem, 0.9vw, 1rem);
  line-height: 1.6;
  background: #0b0f1a;
  color: #ffffff;
}


/* =====================
   FONT FACES
===================== */
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* =====================
   RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

button,
input,
select,
textarea {
  font-size: clamp(0.9rem, 0.85vw, 1rem);
}

:root {
  --header-height: 70px;
}



/* =====================
   HEADER
===================== */
.site-header {
  position: sticky;
  top: 0;
  height: 70px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0e1220;
  z-index: 1001;
  width: 100%;
  overflow-x: clip;
}




/* =====================
   DESKTOP NAV
===================== */
.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

/* =====================
   DROPDOWN BUTTON
===================== */
.dropbtn {
  background: none;
  border: none;
  color: #9aa0b5;
  font-size: 1rem;
  cursor: pointer;
}

/* =====================
   DROPDOWN WRAPPER
===================== */
.dropdown {
  position: relative;
}

/* Invisible hover bridge to prevent gap issue */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 20px;
}

/* =====================
   DROPDOWN CONTENT
===================== */
.dropdown-content {
  position: absolute;
  top: 100%;              /* remove hover gap */
  right: 0;
  left: auto;
  min-width: 220px;
  max-width: 90vw;
  background: #12172a;
  border-radius: 10px;
  padding: 0.5rem 0;
  display: none;
  overflow-x: hidden;
  z-index: 1000;
}

/* =====================
   DROPDOWN LINKS
===================== */
.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: #ffffff;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* =====================
   HOVER STATE
===================== */
.dropdown:hover .dropdown-content {
  display: block;
}


/* =====================
   HAMBURGER (FINAL FIX)
===================== */
.hamburger {
  display: none;              /* hidden by default */
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Initial bar positions */
.hamburger span:nth-child(1) {
  top: 14px;
}

.hamburger span:nth-child(2) {
  top: 21px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

/* Active → X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   MOBILE MENU
===================== */
.overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.side-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 280px;
  height: calc(100vh - var(--header-height));
  background: #0b0f1a;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1000;

  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}


.side-menu.active {
  transform: translateX(0);
}

.menu-inner {
  padding: 2rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.menu-inner a {
  color: #ffffff;
  text-decoration: none;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;   /* ✅ MUST be block (not flex) */
  }
}




/* =====================
   HERO
===================== */
.hero {
  padding: 70px 0 80px;
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center h1 {
  max-width: 900px;
  margin-bottom: 14px;
}

.hero-center .subheading {
  max-width: 720px;
}

.page-content {
  overflow-x: hidden;
}



/* =====================
   UPLOAD BOX
===================== */
.upload-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .upload-wrapper {
    padding: 0 1.5rem;
  }
}

.upload-box {
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 60px 20px;
  background: #12172a;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.upload-box:hover {
  border-color: #6c7cff;
}

/* ✅ MATCHES JS: uploadArea.classList.add("dragover") */
.upload-box.dragover {
  border-color: #00f2c3;
  background: rgba(0,242,195,0.08);
}

.upload-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.upload-icon {
  font-size: 2.4rem;
}

.upload-hint {
  font-size: 0.85rem;
  color: #9aa0b5;
}

/* =====================
   GLOBAL DROP OVERLAY
===================== */
.global-drop-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,242,195,0.15);
  backdrop-filter: blur(6px);
  z-index: 9999;
  pointer-events: none;
}

.global-drop-overlay.active {
  display: flex;
}

.overlay-content {
  background: #12172a;
  border: 2px dashed #00f2c3;
  border-radius: 20px;
  padding: 60px 80px;
  text-align: center;
}

.overlay-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* =====================
   COMPRESS CONTROL
===================== */
.compress-control {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.compress-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.compress-input-group {
  display: flex;
  flex-direction: column;   /* ← THIS WAS MISSING */
  gap: 0.75rem;
  align-items: center;
}


.size-input {
  width: 160px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #12172a;
  color: #ffffff;
  font-size: 0.95rem;
}

.size-input::placeholder {
  color: #9aa0b5;
}

.size-input:focus {
  outline: none;
  border-color: #6c7cff;
}

.unit-select {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #12172a;
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
}

.unit-select:focus {
  outline: none;
  border-color: #6c7cff;
}

.compress-hint {
  font-size: 0.9rem;
  color: #9aa0b5;
  max-width: 480px;
}

.compress-btn {
  margin-top: 0.5rem;
  height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  background: linear-gradient(135deg, #6c7cff, #00f2c3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compress-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(108,124,255,0.35);
}

.compress-btn:active {
  transform: translateY(0);
}


/* =====================
   PREVIEW AREA
===================== */
#previews {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

/* =====================
   PREVIEW CARD
===================== */
#previews > div {
  background: #0e1326;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

/* =====================
   CARD GRID
===================== */
#previews > div > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* =====================
   IMAGE CONTAINERS
===================== */
.card-img-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0b1022;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================
   DOWNLOAD BUTTON
===================== */
.card-download {
  margin-top: 10px;
  padding: 10px 18px;

  border-radius: 10px;
  background: #ff2b2b;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;

  border: none;
  cursor: pointer;
}

/* =====================
   TRASH BUTTON
===================== */
.big-trash-btn {
  margin-top: 10px;

  width: 40px;
  height: 40px;
  border-radius: 10px;

  background: #141a33;
  border: 1px solid rgba(255,255,255,0.12);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.big-trash-btn svg {
  width: 18px;
  height: 18px;
  fill: #9aa0b5;
}

.big-trash-btn:hover svg {
  fill: #ff4d4d;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 640px) {
  #previews > div > div {
    grid-template-columns: 1fr;
  }
}


/* =====================
   HEIC STATUS
===================== */
#heicStatus {
  max-width: 900px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #ffffff;
  min-height: 24px; /* prevents layout jump */
}

/* Optional: subtle status emphasis */
#heicStatus span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Optional spinner animation if you use ⌛ */
#heicStatus .spin {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------ RATING SECTION ------------------------------ */
.rating-section {
    margin: 1.875rem auto 0.625rem;
    padding: 0.625rem 1.25rem;
    max-width: 40.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem;
    color: #ccc;
    text-align: center;
}

.rate-label {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* ------------------------------ STARS ------------------------------ */
.stars {
    display: flex;
    flex-direction: row-reverse; /* DO NOT CHANGE — required by JS logic */
    gap: 0.25rem;
}

.stars span {
    font-size: 1.35rem;
    color: #555;
    cursor: pointer;
    transition: color 0.18s ease;
}

/* Hover behavior */
.stars span:hover,
.stars span:hover ~ span {
    color: #ffd700;
}

/* Active (selected) stars */
.stars:not(:hover) .active,
.stars:not(:hover) .active ~ span {
    color: #ffd700;
}

/* Locked state after rating */
.stars.locked span {
    cursor: default;
}

.stars.locked span:hover,
.stars.locked span:hover ~ span {
    color: inherit;
}

/* NEW RULE: Keep active stars gold when locked */
.stars.locked .active,
.stars.locked .active ~ span {
    color: #ffd700;
}

/* ------------------------------ TEXT ------------------------------ */
.rating-score,
.rating-votes {
    font-size: 0.95rem;
    color: #bbb;
}

/* ------------------------------ FEEDBACK MODAL ------------------------------ */
.feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
    display: none; /* Edit #1: keep modal hidden on page load */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


.feedback-box {
    background:#111;
    border:1px solid #222;
    padding:1.5rem;
    border-radius:0.875rem;
    width:90%;
    max-width:26.25rem;
    text-align:center;
    color:#fff;
}

.feedback-box textarea,
.feedback-box input {
    width:100%;
    border-radius:0.625rem;
    border:1px solid #333;
    background:#0d0d0d;
    color:#fff;
    padding:0.625rem;
}

.feedback-box button {
    width:100%;
    padding:0.75rem;
    border-radius:0.625rem;
    background:#1773ff;
    color:#fff;
    border:none;
    cursor:pointer;
}

.close-modal {
    background:#333 !important;
}

.feedback-success {
    display:none;
    color:#4dff85;
    font-size:1rem;
}

.feedback-overlay {
    display: none;
}

/* ------------------------------ FOOTER ------------------------------ */
footer {
    background: #050505;
    padding: 3.5rem 1.25rem 2.25rem;
    margin-top: 3.5rem;
    color: #d4d4d4;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-main {
    max-width: 75rem;
    margin: 0 auto;
}

/* Menu links */
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 2.25rem;
}

.footer-menu a {
    color: #cfcfcf;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* Brand */
.footer-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Description */
.footer-desc {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* social icons */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 26px 0;
}

.social-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #1b2432;
    transition: 0.25s ease;
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: 0.25s ease;
    filter: invert(92%) brightness(110%); /* makes black SVG become off-white */
}

/* Hover animations */
.social-link:hover {
    transform: translateY(-4px);
    background: #283244;
}

/* Brand hover tints using filter (no editing SVG needed) */

/* X brand blue */
.x-link:hover img {
    filter: invert(50%) sepia(90%) saturate(3000%) hue-rotate(180deg) brightness(1.2);
}

/* Instagram gradient-like tint */
.insta-link:hover img {
    filter: invert(36%) sepia(88%) saturate(3600%) hue-rotate(-10deg) brightness(1.1);
}

/* Copyright */
.footer-copy {
    font-size: 0.9rem;
    opacity: 0.55;
}


/* ------------------------------ HOW TO USE ------------------------------ */
.how-to-use {
    padding: 4rem 1.25rem;
    background: #0b0f1a;
    color: #e5e7eb;
}

.how-to-use .container {
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.how-to-use h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.how-intro {
    max-width: 42rem;
    margin: 0 auto 3rem;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Steps grid */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

/* Individual step */
.how-step {
    background: linear-gradient(180deg, #111827, #0b0f1a);
    border: 1px solid #1f2933;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem 2.25rem;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.how-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

/* Step number */
.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Step title */
.how-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* Step text */
.how-step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #d1d5db;
}

/* Privacy note */
.how-note {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.25);
    border-radius: 1rem;
    font-size: 0.95rem;
    color: #c7d2fe;
}

.how-note strong {
    color: #ffffff;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .how-step {
        padding: 1.75rem 1.25rem 2rem;
    }
}


/* ------------------------------ FEATURES ------------------------------ */
.features {
    padding: 4rem 1.25rem;
    background: #0b0f1a;
    color: #e5e7eb;
}

.features .container {
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: #ffffff;
}

/* Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.75rem;
}

/* Card */
.feature-item {
    background: linear-gradient(180deg, #111827, #0b0f1a);
    border: 1px solid #1f2933;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* Icon */
.feature-icon {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* Title */
.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

/* Text */
.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d5db;
}

/* Mobile */
@media (max-width: 480px) {
    .feature-item {
        padding: 1.75rem 1.25rem;
    }
}

/* ------------------------------ FAQ ------------------------------ */
.faq {
    padding: 4rem 1.25rem;
    background: #0b0f1a;
    color: #e5e7eb;
}

.faq .container {
    max-width: 52rem;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: #ffffff;
}

/* FAQ list */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Item */
.faq-item {
    background: linear-gradient(180deg, #111827, #0b0f1a);
    border: 1px solid #1f2933;
    border-radius: 1rem;
    padding: 0.25rem 1.25rem;
}

/* Question */
.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 0;
    color: #ffffff;
    position: relative;
}

/* Remove default arrow */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Custom arrow */
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.25rem;
    transition: transform .2s ease;
}

/* Open state */
.faq-item[open] summary::after {
    content: "–";
}

/* Answer */
.faq-item p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #d1d5db;
    padding-bottom: 1rem;
}


/* ------------------------------ BLOG POST ------------------------------ */
.blog-post {
    padding: 4rem 1.25rem;
    background: #0b0f1a;
    color: #e5e7eb;
}

.blog-post .container {
    max-width: 48rem;
    margin: 0 auto;
}

.blog-post h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.blog-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.blog-post h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: #ffffff;
}

.blog-post p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d1d5db;
}

/* CTA */
.blog-cta {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #111827, #0b0f1a);
    border: 1px solid #1f2933;
    border-radius: 1rem;
    text-align: center;
}

.blog-cta p {
    font-size: 0.95rem;
}

.blog-cta a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}

.blog-cta a:hover {
    text-decoration: underline;
}

/* social icons */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 26px 0;
}

.social-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #1b2432;
    transition: 0.25s ease;
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: 0.25s ease;
    filter: invert(92%) brightness(110%); /* makes black SVG become off-white */
}

/* Hover animations */
.social-link:hover {
    transform: translateY(-4px);
    background: #283244;
}

/* Brand hover tints using filter (no editing SVG needed) */

/* X brand blue */
.x-link:hover img {
    filter: invert(50%) sepia(90%) saturate(3000%) hue-rotate(180deg) brightness(1.2);
}

/* Instagram gradient-like tint */
.insta-link:hover img {
    filter: invert(36%) sepia(88%) saturate(3600%) hue-rotate(-10deg) brightness(1.1);
}

/* About Section Container */
#about-genz-compress {
  max-width: 900px;
  margin: 3.5rem auto 0;
  padding: 3.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Main Title */
#about-genz-compress h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

/* Section Headings */
#about-genz-compress h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

/* Body Text */
#about-genz-compress p {
  font-size: 1rem;
  line-height: 1.75;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Lists */
#about-genz-compress ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
}

#about-genz-compress li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 0.45rem;
}

/* Links */
#about-genz-compress a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

#about-genz-compress a:hover {
  text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 640px) {
  #about-genz-compress {
    padding: 2.5rem 1.5rem;
    margin-top: 2.5rem;
  }

  #about-genz-compress h1 {
    font-size: 2rem;
  }

  #about-genz-compress h2 {
    font-size: 1.25rem;
  }
}
/* ===== Kyoto Tool ===== */

.kyoto {
  min-height: 10vh;
  display: grid;
  place-items: center;
  background: #0b0f1a;
  padding: clamp(1rem, 2vw, 2rem);
  font-family: Inter, system-ui, sans-serif;
}

/* Container */

.kyoto-box {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, #111827, #0b0f1a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Header */

.kyoto-head {
  text-align: center;
  margin-bottom: 2rem;
}

.kyoto-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.kyoto-head p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #9aa0b5;
}

/* Upload area */

.kyoto-drop {
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 2.5rem);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 1.75rem;
  background: #12172a;
}

.kyoto-drop:hover {
  border-color: #6c7cff;
  background: rgba(108, 124, 255, 0.08);
}

.kyoto-drop.dragover {
  border-color: #00f2c3;
  background: rgba(0, 242, 195, 0.08);
}

.kyoto-drop input {
  display: none;
}

.kyoto-drop span {
  font-size: 0.95rem;
  color: #d1d5db;
}

.kyoto-drop em {
  font-style: normal;
  color: #6c7cff;
  font-weight: 600;
}

/* Preview grid */

.kyoto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* Preview item */

.preview-item {
  position: relative;
  background: #0e1326;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* Image */

.kyoto-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
  background: #0b1022;
}

/* Page badge */

.kyoto-page {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Remove button */

.kyoto-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.kyoto-remove:hover {
  background: #ef4444;
}

/* Move arrows */

.kyoto-move {
  position: absolute;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.kyoto-move.left {
  left: 6px;
}

.kyoto-move.right {
  right: 6px;
}

.kyoto-move:hover {
  background: #6c7cff;
}

/* Action button */

.kyoto-action {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6c7cff, #00f2c3);
  color: #000;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kyoto-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(108, 124, 255, 0.35);
}

.kyoto-action:active:not(:disabled) {
  transform: translateY(0);
}

.kyoto-action:disabled {
  background: #1f2933;
  color: #6b7280;
  cursor: not-allowed;
}

/* ===== Global drag overlay (upload only) ===== */

body.is-file-dragging::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 242, 195, 0.15);
  backdrop-filter: blur(6px);
  z-index: 9998;
  pointer-events: none;
}

/* =========================
   INLINE PROCESSING LOADER
========================= */
.processing-inline {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.processing-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #12172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* =========================
   SPINNER
========================= */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00f2c3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================
   TEXT
========================= */
.processing-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

/* =========================
   ANIMATION
========================= */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   KYOTO MODAL STYLES
========================= */
.kyoto-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* ✅ Fixed - now above all other overlays */
  padding: 20px;
  backdrop-filter: blur(8px);
}

.kyoto-modal-content {
  background: linear-gradient(180deg, #111827, #0b0f1a);
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.kyoto-modal-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #00f2c3;
  animation: bounce 1s infinite;
}

.kyoto-modal-title {
  margin: 0 0 12px 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.kyoto-modal-text {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #9aa0b5;
  line-height: 1.5;
}

.kyoto-modal-hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.kyoto-modal-button {
  margin-top: 24px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6c7cff, #00f2c3);
  color: #000;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kyoto-modal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 124, 255, 0.3);
}

/* Add bounce animation if not already present */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .kyoto {
    padding: 1rem;
  }
  
  .kyoto-box {
    padding: 1.5rem;
  }
  
  .kyoto-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .kyoto-grid img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .kyoto-modal-content {
    padding: 1.5rem;
  }
  
  .kyoto-modal-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }
  
  .kyoto-modal-title {
    font-size: 1.25rem;
  }
  
  .kyoto-modal-text {
    font-size: 0.9rem;
  }
}

/* ===== Image Converter Hero Refinements ===== */

.hero {
  padding-top: 90px;
  padding-bottom: 60px;
}

.hero-center .subheading {
  margin-bottom: 2.25rem;
  opacity: 0.9;
}

#convertList {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

/* Converter cards */
.convert-card {
  background: #0e1326;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.convert-card .info,
.convert-card .converted {
  font-size: 0.95rem;
  color: #d1d5db;
}

.convert-card .converted {
  opacity: 0.9;
}

.convert-card .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.download-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: #22c55e;
  color: #000;
  cursor: pointer;
}

.download-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.trash-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #141a33;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.trash-btn:hover {
  border-color: #ff4d4d;
}

.compress-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.unit-select {
  min-width: 160px;
}

.compress-btn {
  min-width: 200px;
}
