/* ------------------------------
   GLOBAL COLORS & VARIABLES
--------------------------------*/
:root {
  --primary: #03A9F4;
  --primary-dark: #0284c7;
  --primary-soft: #eef2ff;
  --primary-strong: #25baff;
  --bg-page: #ffffff;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;
  --success: #10b981;
  --radius-lg: 16px;
}
#site-header,
.top-nav {
  position: relative;
  z-index: 10000;
}

/* Left group: logo + links */
.nav-left{
  display:flex;
  align-items:center;
  gap:18px;
}

/* Links beside logo */
.nav-links-left{
  margin-left: 6px;
}

/* Keep right side tight */
.auth-buttons{
  display:flex;
  align-items:center;
  gap:14px;
}

/* Make Sign up button look premium */
.signup-link{
  background: var(--primary);
  color:#fff;
  border:none;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(3,169,244,0.22);
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.signup-link:hover{
  opacity: 0.95;
  box-shadow: 0 14px 26px rgba(3,169,244,0.26);
}

.signup-link:active{
  transform: translateY(1px);
  box-shadow: 0 8px 16px rgba(3,169,244,0.20);
}

/* Auth modal: better inputs */
.auth-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Google Sign-in button (official look) */
.btn-google {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #3c4043;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 2px rgba(60,64,67,0.15);
}

.btn-google:active {
  background: #f1f3f4;
}

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

.google-text {
  line-height: 1;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #9ca3af;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-input:focus{
  border-color: rgba(3,169,244,0.75);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(3,169,244,0.15);
}

/* Better primary button in modal */
.btn-primary-wide{
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(3,169,244,0.22);
}

.btn-primary-wide:hover{
  opacity: 0.96;
}

/* Optional: hint links look cleaner */
.auth-hint{
  margin-top: 12px;
  color: #6b7280;
  font-size: 0.95rem;
}

.auth-hint a{
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-hint a:hover{
  text-decoration: underline;
}



/* Mobile menu toggle elements */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* Mobile dropdown container (hidden by default) */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;           /* place it BELOW the header */
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 2000;
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  display: block;
}

.mobile-nav a + a {
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a:hover {
  color: var(--primary);
}


/* Show hamburger and hide desktop links */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle-label {
    display: block;
  }

  /* When checkbox checked → open menu */
  #nav-toggle:checked ~ .mobile-nav {
    display: flex;
  }
}


/* ------------------------------
   RESET & LAYOUT
--------------------------------*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  max-width: none;
  margin: 32px auto 24px;
  padding: 0 16px;
}
.main {
  position: relative;
  z-index: 1;
}


/* ------------------------------
   HEADER / NAVBAR
--------------------------------*/

/* Reserve space so the JS header does not cause layout shifts */
#site-header {
  min-height: 72px;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 20px; /* adjust closer or wider */
}

/* Make "Log in" look like normal nav text */
.nav-link-action {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-link-action:hover {
  color: var(--primary);
}

/* Only Sign up stays as button */
#loginBtn {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}


.nav-cta{
  background: var(--primary);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.04);
}

.nav-cta:hover{
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px; /* closer spacing between Pricing / Help */
}

.top-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: relative; /* required for dropdown */
  z-index: 100;        /* ensures it stays above page */
}

.top-nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 160px;   /* adjust to your real logo width */
  height: 35px;   /* same as before */
  object-fit: contain;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: #6b7280;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Auth area in header */
#creditsBadge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: none;
}

/* Login = text link (always) */
#loginBtn{
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

#loginBtn:hover{
  color: var(--primary);
}

/* Logout keeps its own styling (desktop only) */
#logoutBtn{
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  display: none;
}

#logoutBtn {
  display: none;
}

/* Hide nav-links on very small screens */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

#payPopup ul li {
  margin-bottom: 4px;
}

/* ------------------------------
   AUTH MODAL
--------------------------------*/
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding-top: 60px;
}

.hidden {
  display: none !important;
}

.popup-card {
  background: #fff;
  padding: 26px 22px;
  border-radius: 14px;
  max-width: 340px;   /* reduced from 380 */
  width: 92%;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  position: relative;
  text-align: left;
}

.popup-title {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 600;
}

.popup-subtitle {
  color: #6b7280;
  margin-bottom: 16px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: #6b7280;
}

.btn-primary-wide {
  background: var(--primary);
  padding: 10px;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

/* Forgot password link */
.auth-forgot{
  display:flex;
  align-items:center;
  gap:8px;
  margin: 6px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-forgot:hover{
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.auth-forgot:active{
  background: rgba(37, 99, 235, 0.14);
}

.auth-forgot-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 18px;
  height: 18px;
  font-size: 14px;
}

/* Auth message styling (success + error) */
.auth-message{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.auth-message:empty{
  display:none;
}

.auth-message.auth-success{
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}

.auth-message.auth-error{
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.35);
  color: #991b1b;
}


/* ------------------------------
   PAGE HEADINGS
--------------------------------*/
.page-heading {
  text-align: center;
  margin: 40px 0 24px;
}

.page-heading h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #70c59e;
}

.page-heading p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0;
}

/* ------------------------------
   CONVERTER CARD (index.html)
--------------------------------*/
.converter-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid #d3d3d3;
  box-shadow: 0 4px 8px rgb(15 23 42 / 20%);
  padding: 38px 42px 42px;
  width: 100%;
  max-width: 900px;
  min-height: 380px;
  margin: 0 auto 40px;
}

.converter-header {
  margin-bottom: 18px;
}

.title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  font-size: 1em;
  color: var(--text-muted);
}

.upload-text-sub {
  font-size: 12px;
  color: #6b7280;
}

/* Upload grid */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.upload-dropzone {
  position: relative;
  border-radius: 18px;
  border: 2px dashed var(--border-strong);
  background: #f9fafb;
  height: 180px;
  width: 100%;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: #f9fafb;
  box-shadow: none;
}

.upload-dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4);
}

/* when a file is selected */

.upload-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.upload-text-main {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

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

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

/* File meta row + summary */
.file-meta-row {
  font-size: 1rem;
  color: var(--text-muted);
  background: #f9fafb;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  margin-bottom: 6px;
  text-align: center;
  margin-top: 30px;
}

.file-summary {
  font-size: 1em;
  text-align: center;
  margin: 25px 0;
  min-height: 20px;
  font-weight: 500;
}

/* Status & button */
.status {
  margin-top: 10px;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

#submitBtn {
  margin: 12px auto 0;
  width: 25%;
  min-width: 140px;
  padding: 20px 20px;
  border-radius: 30px;
  border: none;
  background: #03A9F4;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

#submitBtn:hover:not(:disabled) {
  background: var(--primary-strong);
  box-shadow: 0 2px 10px #03A9F4;
}

#submitBtn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 10px 26px rgba(22, 224, 207, 0.377);
}

#submitBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: #a5a5a5 !important;
  transform: none !important;
  color: #eeeeee;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid #d3d3d3;
  padding: 20px 20px 35px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 4px 8px rgb(15 23 42 / 20%);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Grey checkmarks for pricing features */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #9ca3af;
  font-weight: 700;
}
.pricing-card.popular {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(3,169,244,0.18);
}


/* Spinner under button */
.spinner-wrapper {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.spinner-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid #e5e7eb;
  border-top-color: #03A9F4;
  animation: spin 0.7s linear infinite;
}

.spinner-label {
  font-size: 14px;
  color: #4b5563;
}

/* ------------------------------
   PRICING CARDS (pricing.html)
--------------------------------*/
.pricing-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  position: relative;
}

.pricing-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0 20px;
  color: var(--primary);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.buy-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.2s;
}

.buy-btn:hover {
  opacity: 0.9;
}

.pricing-card.popular {
  border-color: var(--primary);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Savings badges */
.saving-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--success);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.saving-blue {
  background: #0284c7 !important;
}

.saving-green {
  background: #059669 !important;
}

/* ------------------------------
   FAQ SECTION
--------------------------------*/
.faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.faq-heading {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.faq-item {
  width: 100%;
  margin: 0 auto 12px auto;
  text-align: left;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  font-family: "Montserrat";
}

.faq-question:hover {
  border-color: #bae6fd;
  background-color: #f8fdff;
}

.faq-arrow {
  transition: transform 0.25s ease;
  font-size: 0.9rem;
  opacity: 0.7;
}

.faq-answer {
  display: none;
  padding: 14px 5px 10px 5px;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

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

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* ------------------------------
   DOWNLOAD POPUP (pay/download)
--------------------------------*/
.download-pill {
  display: inline-block;
  padding: 3px 10px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Center price + badge */
.download-price-row {
  display: block !important;
  text-align: center !important;
  margin: 18px auto 12px !important;
}

.download-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  display: block;
  margin-bottom: 4px;
}

.download-tag {
  display: inline-block;
  margin: 0 auto;
}


.download-file,
.download-expiry {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 4px 0;
}

/* Remove bullet dots in popup features */
#payPopup ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

#payPopup ul li {
  padding-left: 0;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}


/* ------------------------------
   FOOTER
--------------------------------*/
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px 76px 58px;
  font-size: 0.9rem;
  color: #bbbbbb;
  margin-top: 100px;
  background: #292929;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #bbbbbb;
  text-decoration: none;
}

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

/* ------------------------------
   ANIMATIONS
--------------------------------*/
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 720px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .converter-card {
    padding: 20px 16px 18px;
  }

  #submitBtn {
    width: 60%;
  }
}

/* ------------------------------
   TOOL TABS (converter switcher)
--------------------------------*/
/* TOOL TABS (clean pill switcher) */
.tool-tabs{
  display:flex;
  justify-content:center;
  gap:8px;
  padding: 0;
  margin: 0 0 18px;
  flex-wrap:wrap;
}

.tool-tab{
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  padding:10px 14px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  color:#374151;
  background:#f8fafc;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tool-tab:hover{
  background:#f1f5f9;
  border-color:#d1d5db;
}

.tool-tab.active{
  background: rgba(3,169,244,0.14);
  border-color: rgba(3,169,244,0.55);
  color:#0b4a62;
}

/* single upload grid helper */
.upload-grid--single{
  grid-template-columns: 1fr !important;
}

/* ========= DROPZONE STATES (FINAL) ========= */

/* file selected (neutral base) */
.upload-dropzone.has-file{
  border-color: var(--border-strong);
  background: #f8fafc;
}

/* valid */
.upload-dropzone.has-file.valid{
  border-color:#22c55e;
  background:#f0fdf4;
}
.upload-dropzone.has-file.valid .upload-icon{
  background:#dcfce7;
  color:#16a34a;
}
.upload-dropzone.has-file.valid .upload-text-main{
  color:#16a34a;
}

/* invalid */
.upload-dropzone.has-file.invalid{
  border-color:#ef4444;
  background:#fef2f2;
}
.upload-dropzone.has-file.invalid .upload-icon{
  background:#fee2e2;
  color:#b91c1c;
}
.upload-dropzone.has-file.invalid .upload-text-main{
  color:#b91c1c;
}
.upload-dropzone.has-file.invalid .upload-text-sub{
  color:#991b1b;
}
.upload-dropzone.invalid.drag-over {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  box-shadow: none !important;
}

/* ------------------------------
   SIZE COMPARISON BOX
--------------------------------*/
.size-compare{
  max-width: 900px;
  margin: 18px auto 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgb(15 23 42 / 10%);
  padding: 16px;
  text-align: left;
}

.size-compare-title{
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  margin-bottom: 12px;
}

.size-compare-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.size-compare-item{
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}

.size-compare-label{
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.size-compare-value{
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 720px){
  .size-compare-grid{
    grid-template-columns: 1fr;
  }
}

.upload-dropzone.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
/* ==============================
   FIX: HEADER CLICKS ON HOMEPAGE
   ============================== */

#site-header {
  position: relative;
  z-index: 100000;
}

#site-header .top-nav {
  position: relative;
  z-index: 100000 !important;
}

/* keep main content below header */
.main {
  position: relative;
  z-index: 1;
}
/* ==============================
   MOBILE HEADER
   ============================== */
@media (max-width: 720px) {
  #logoutBtn { display: none !important; }    /* hide logout on mobile */


  /* Reduce header height */
  .top-nav-inner {
    padding: 12px 14px;
  }

  /* Auth buttons container */
  .auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Log in = text button */
  #loginBtn {
    font-size: 13px !important;
    font-weight: 500;
    padding: 0 !important;
    white-space: nowrap;
    line-height: 1;
    color: #6b7280;
  }

  /* Sign up = compact pill */
  #signupBtn,
  .signup-link {
    font-size: 13px !important;
    padding: 6px 10px !important;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none !important;
  }

  /* Prevent wrapping anywhere */
  #signupBtn span,
  #loginBtn span {
    white-space: nowrap;
  }
}
@media (max-width: 720px){
  .auth-buttons{
    gap: 10px;
  }
}
/* Remove Sign up from mobile hamburger menu */
@media (max-width: 720px) {
  .mobile-nav a.signup-link,
  .mobile-nav #signupBtn {
    display: none !important;
  }
}








