* {
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --panel: #111827;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #6ea8ff;
  --accent-hover: #82b6ff;
  --accent-active: #5b96f2;
  --accent-2: #62d39a;
  --danger: #f87171;
  --success: #22c55e;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1120 0%, #111827 100%);
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

code {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 2px 6px;
}

/* PAGE LAYOUT */
.layout-shell {
  width: min(1500px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 36px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: start;
  overflow: visible;
}

.page-main {
  min-width: 0;
  overflow: visible;
}

.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  overflow: visible;
}

/* HERO */
.hero {
  position: relative;
  margin-bottom: 18px;
  overflow: visible;
}

.site-hero-card {
  position: relative;
  width: 100%;
  padding: 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 35%),
    linear-gradient(
      135deg,
      rgba(96, 165, 250, 0.10),
      rgba(17, 24, 39, 0.96) 45%,
      rgba(52, 211, 153, 0.05)
    );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.site-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.035),
    transparent 35%,
    transparent 65%,
    rgba(255, 255, 255, 0.025)
  );
  pointer-events: none;
}

.hero-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 86px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.02;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.site-tagline {
  margin: 6px 0 0;
  color: #bfdbfe;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* FIXED TOP NAV */
.site-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 420px));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(10, 18, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #08111f;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-active) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 10px 22px rgba(59, 130, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  transform: translateY(-2px);
  color: #08111f;
  background: linear-gradient(180deg, var(--accent-hover) 0%, #70a7ff 100%);
  box-shadow:
    0 14px 28px rgba(59, 130, 246, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.nav-btn:active,
.nav-btn.active {
  color: #08111f;
  background: linear-gradient(180deg, #5f95ea 0%, #4d84dc 100%);
  box-shadow:
    0 8px 18px rgba(59, 130, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-description {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* MIDDLE AD */
.hero-mid-ad {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mid-ad-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-mid-ad-inner {
  width: 468px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mid-ad-inner iframe,
.hero-mid-ad-inner ins,
.hero-mid-ad-inner > div {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.subtext {
  color: var(--muted);
  max-width: 860px;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* PANELS */
.panel {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
}

.upload-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-btn,
button,
.button-link,
.result-link {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-btn:hover,
button:hover,
.button-link:hover,
.result-link:hover {
  transform: translateY(-1px);
}

.upload-btn.primary {
  background: var(--accent);
  color: #08111f;
  font-weight: 700;
}

.upload-btn.secondary {
  background: var(--accent-2);
  color: #052016;
  font-weight: 700;
}

.button-link {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.result-link {
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
}

.copy-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.drop-zone {
  min-height: 180px;
  border: 2px dashed rgba(96, 165, 250, 0.45);
  border-radius: 18px;
  background: rgba(96, 165, 250, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.drop-zone.dragover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.85);
  transform: scale(1.01);
}

.drop-zone-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drop-zone-inner strong {
  font-size: 20px;
}

.drop-zone-inner span,
.section-note,
.status,
.meta,
.empty-state,
.path-line,
.share-url {
  color: var(--muted);
}

.status {
  margin: 0;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head.compact {
  align-items: baseline;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.empty-state {
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.list {
  display: grid;
  gap: 12px;
}

.retention-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.retention-row select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
}

.hidden {
  display: none;
}

.progress-wrap {
  margin-top: 14px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #2563eb;
  transition: width 0.15s ease;
}

.progress-text {
  margin-top: 8px;
  font-size: 14px;
  color: #9ca3af;
  word-break: break-word;
}

.result-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 12px;
  background: #fff;
  min-width: 0;
}

.result-top strong {
  color: #111827;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.result-link,
.copy-btn,
.upload-btn span {
  display: inline-block;
}

.share-input {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
}

.copy-btn,
.result-link {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  text-decoration: none;
  color: #111827;
}

.copy-btn:hover,
.result-link:hover {
  background: #f3f4f6;
}

.result-meta {
  color: #6b7280;
  font-size: 14px;
  margin-top: 6px;
  word-break: break-word;
}

.upload-jobs {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.upload-job-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}

.upload-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-job-title {
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.upload-job-state {
  font-size: 13px;
  color: #6b7280;
  white-space: normal;
}

.upload-job-count {
  margin-top: 8px;
  font-size: 14px;
  color: #374151;
  word-break: break-word;
}

.upload-job-progress {
  width: 100%;
  height: 10px;
  margin-top: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.upload-job-progress-fill {
  width: 0%;
  height: 100%;
  background: #2563eb;
  transition: width 0.15s ease;
}

.upload-job-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  word-break: break-word;
}

.upload-job-card.is-done .upload-job-progress-fill {
  background: #16a34a;
}

.upload-job-card.is-error .upload-job-progress-fill {
  background: #dc2626;
}

.upload-job-extra {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}

.upload-job-speed,
.upload-job-eta {
  display: inline-block;
  word-break: break-word;
}

.upload-job-controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pause-btn,
.resume-btn {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
}

.pause-btn:hover,
.resume-btn:hover {
  background: #f3f4f6;
}

.pause-btn:disabled,
.resume-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* INFO PAGES */
.info-page h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 28px;
}

.info-page p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.inline-link {
  color: #93c5fd;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

/* FIXED SIDE ADS */
.upload-side-ad {
  position: relative;
  align-self: start;
}

.upload-side-ad-card {
  position: fixed;
  top: 24px;
  width: 180px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 10;
}

.upload-side-ad--left .upload-side-ad-card {
  left: max(12px, calc((100vw - 1500px) / 2));
}

.upload-side-ad--right .upload-side-ad-card {
  right: max(12px, calc((100vw - 1500px) / 2));
}

.upload-side-ad-slot {
  width: 160px;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.upload-side-ad-slot iframe,
.upload-side-ad-slot ins,
.upload-side-ad-slot > div {
  display: block;
  max-width: 160px;
  margin: 0 auto;
}

/* LARGE LAPTOP / SMALL DESKTOP */
@media (max-width: 1460px) {
  .layout-shell {
    width: min(1120px, calc(100% - 24px));
    grid-template-columns: 1fr;
  }

  .upload-side-ad {
    display: none;
  }

  .site-nav {
    width: calc(100vw - 32px);
  }
}

/* TABLET */
@media (max-width: 900px) {
  .layout-shell {
    width: calc(100% - 20px);
    padding: 16px 0 28px;
  }

  .site-nav {
    top: 10px;
    width: calc(100vw - 20px);
    padding: 10px;
    gap: 10px;
  }

  .hero-topbar {
    padding-top: 82px;
  }

  .site-hero-card {
    padding: 16px;
    border-radius: 16px;
  }

  .panel {
    padding: 16px;
    border-radius: 16px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    font-size: 17px;
    border-radius: 14px;
  }

  .site-title {
    font-size: 26px;
  }

  .site-tagline {
    font-size: 12px;
  }

  .site-description {
    font-size: 14px;
  }

  .nav-btn {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 14px;
  }

  .hero-mid-ad-shell {
    height: 44px;
  }

  .hero-mid-ad-inner {
    transform: scale(0.74);
    transform-origin: center top;
  }

  .drop-zone {
    min-height: 160px;
    padding: 18px;
  }

  .drop-zone-inner strong {
    font-size: 18px;
  }

  .info-page h2 {
    font-size: 24px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .layout-shell {
    width: calc(100% - 16px);
    padding: 12px 0 24px;
  }

  .container {
    width: 100%;
  }

  .site-nav {
    top: 8px;
    width: calc(100vw - 16px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-topbar {
    padding-top: 140px;
  }

  .site-hero-card {
    padding: 14px;
    border-radius: 14px;
  }

  .brand-block {
    align-items: flex-start;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }

  .site-title {
    font-size: 24px;
  }

  .site-description,
  .subtext {
    font-size: 14px;
  }

  .nav-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
  }

  .hero-mid-ad-shell {
    height: 40px;
  }

  .hero-mid-ad-inner {
    transform: scale(0.68);
    transform-origin: center top;
  }

  .actions {
    flex-direction: column;
  }

  .upload-btn,
  .result-link,
  .copy-btn,
  .pause-btn,
  .resume-btn,
  .button-link {
    width: 100%;
  }

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

  .retention-row select {
    width: 100%;
  }

  .drop-zone {
    min-height: 150px;
    padding: 16px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .result-actions,
  .upload-job-controls {
    flex-direction: column;
  }

  .info-page h2 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .site-nav {
    grid-template-columns: 1fr;
  }

  .hero-topbar {
    padding-top: 250px;
  }

  .hero-mid-ad-shell {
    height: 37px;
  }

  .hero-mid-ad-inner {
    transform: scale(0.62);
    transform-origin: center top;
  }
}

.site-footer {
  margin-top: 30px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(10, 20, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  color: #c9d8f0;
  font-size: 14px;
}

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

.footer-links a {
  color: #8fc2ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

.footer-copy {
  color: #c9d8f0;
  font-size: 14px;
}

.info-page h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.info-page p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.inline-link {
  color: #8fc2ff;
  text-decoration: none;
}

.inline-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


body { padding-top: 12px; }
.site-header { position: relative; margin-bottom: 18px; }
.nav-shell { position: sticky; top: 12px; z-index: 90; margin-bottom: 14px; }
.nav-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; background: rgba(10, 18, 34, 0.92); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28); backdrop-filter: blur(10px); }
.site-header .site-hero-card { margin-bottom: 0; }
.hero-topbar { padding-top: 0; gap: 0; }
.hero-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-banner-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: center; }
.hero-inline-ad { min-height: 74px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.035); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-inline-ad-shell { width: 320px; height: 50px; display: flex; align-items: center; justify-content: center; }
.hero-inline-ad-shell iframe, .hero-inline-ad-shell > div, .hero-inline-ad-shell ins { display:block; max-width:100%; }
.site-title { font-size: clamp(30px, 4vw, 54px); }
.site-description { max-width: none; color: #c4d3ef; font-size: 15px; }
.nav-shell .nav-btn, .nav-shell .tools-toggle { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; border-radius:16px; text-decoration:none; font-size:15px; font-weight:700; line-height:1; color:#f1f5ff; background:linear-gradient(180deg,#3357b6 0%,#274aa4 100%); border:1px solid rgba(255,255,255,.10); box-shadow:0 10px 22px rgba(40,80,185,.24), inset 0 1px 0 rgba(255,255,255,.16); white-space:nowrap; cursor:pointer; }
.nav-shell .nav-btn:hover, .nav-shell .tools-toggle:hover { transform:translateY(-1px); background:linear-gradient(180deg,#3b63ca 0%,#2c53b3 100%); }
.nav-shell .nav-btn.active { background:linear-gradient(180deg,#4f78e0 0%,#3c62c8 100%); }
.tools-dropdown { position:relative; }
.nav-caret { font-size:12px; margin-left:8px; }
.tools-menu { position:absolute; top:calc(100% + 10px); left:0; min-width:290px; padding:10px; border-radius:16px; background:rgba(10,18,34,.98); border:1px solid rgba(255,255,255,.08); box-shadow:0 18px 40px rgba(0,0,0,.34); display:none; flex-direction:column; gap:8px; z-index:110; }
.tools-dropdown.is-open .tools-menu { display:flex; }
.tools-menu-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border-radius:12px; text-decoration:none; color:#dbe7ff; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.05); font-weight:600; }
.tools-menu-item:hover { background:rgba(96,165,250,.16); }
.tools-menu-item span { font-size:12px; color:#9fb4da; }
.tools-menu-item.is-disabled { opacity:.68; cursor:default; }
.tools-menu-item.is-disabled:hover { background:rgba(255,255,255,.05); }
.page-kicker { margin:0 0 14px; font-size:14px; color:#d6e4ff; }
.page-heading { margin:0 0 16px; font-size:clamp(30px,4vw,50px); line-height:1.08; color:#fff; }
.page-lead { margin:0; color:#d8e1f2; font-size:17px; line-height:1.6; max-width:980px; }
.cta-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.tool-grid { display:grid; gap:16px; }
.tool-card, .tool-feature-card { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:16px; padding:18px; }
.tool-card h3, .tool-feature-card strong { margin:0 0 12px; font-size:20px; color:#fff; }
.tool-card p, .tool-feature-card p { margin:0; line-height:1.7; color:var(--muted); }
.tool-status { margin-bottom:12px; font-size:14px; font-weight:700; color:#9dd6b3; }
.tool-feature-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; margin-top:20px; }
.tool-link-button, .tool-link-disabled, .button-link { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px; border-radius:14px; text-decoration:none; font-size:15px; font-weight:700; }
.tool-link-button { color:#f1f5ff; background:linear-gradient(180deg,#3560d0 0%,#2b53be 100%); border:1px solid rgba(255,255,255,.1); }
.tool-link-disabled { color:#aab3c3; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); }
.button-link { color:#dbe7ff; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); }
.site-footer { margin-top:22px; padding:22px; border-radius:18px; background:rgba(17,24,39,.92); border:1px solid var(--line); box-shadow:0 20px 50px rgba(0,0,0,.25); }
.site-footer-inner { display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; }
.footer-brand strong { display:block; font-size:18px; color:#fff; margin-bottom:6px; }
.footer-brand p, .footer-copy { margin:0; color:#c9d8f0; font-size:14px; }
.footer-links { display:flex; gap:10px; flex-wrap:wrap; }
.footer-links a { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 14px; border-radius:12px; text-decoration:none; color:#d6e4ff; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); font-size:14px; font-weight:600; }
.footer-links a:hover { background:rgba(96,165,250,.14); }
@media (max-width: 1460px) { .layout-shell { width:min(1120px, calc(100% - 24px)); grid-template-columns:1fr; } .upload-side-ad { display:none; } }
@media (max-width: 1120px) { .hero-banner-row { grid-template-columns:1fr; } .hero-inline-ad { justify-content:flex-start; } .tool-feature-grid { grid-template-columns:1fr; } }
@media (max-width: 980px) { .nav-shell { top:8px; } .nav-inner { gap:10px; padding:12px; } .nav-shell .nav-btn, .nav-shell .tools-toggle { min-height:44px; padding:0 16px; } .tools-menu { width:min(320px, calc(100vw - 40px)); min-width:0; } .upload-side-ad-card { position:relative; top:auto; left:auto; right:auto; width:100%; } }
@media (max-width: 768px) { .layout-shell { width:calc(100% - 16px); padding:12px 0 24px; } .site-hero-card, .panel, .site-footer { padding:16px; } .page-heading { font-size:34px; } }


/* Final header/dropdown fix */
.nav-shell { position: sticky; top: 12px; z-index: 200; margin-bottom: 14px; }
.nav-inner { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; overflow-x:auto; overflow-y:visible; white-space:nowrap; padding:14px 16px; border-radius:20px; background:rgba(10,18,34,.92); border:1px solid rgba(255,255,255,.08); box-shadow:0 16px 35px rgba(0,0,0,.28); backdrop-filter:blur(10px); }
.nav-inner::-webkit-scrollbar { height:6px; }
.nav-inner::-webkit-scrollbar-thumb { background:rgba(96,165,250,.35); border-radius:999px; }
.nav-inner > * { flex:0 0 auto; }
.tools-dropdown { position:relative; }
.tools-menu { position:absolute; top:calc(100% + 10px); left:0; min-width:320px; display:none; flex-direction:column; gap:8px; padding:12px; border-radius:16px; background:rgba(10,18,34,.98); border:1px solid rgba(255,255,255,.08); box-shadow:0 18px 40px rgba(0,0,0,.34); z-index:300; }
.tools-dropdown.is-open .tools-menu { display:flex; }
.tools-menu-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border-radius:12px; text-decoration:none; color:#dbe7ff; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.05); font-weight:600; }
.tools-menu-item:hover { background:rgba(96,165,250,.16); }
.tool-name { font-size:15px; color:#e5ecff; }
.tool-badge { font-size:12px; color:#9fb4da; white-space:nowrap; }
.tools-menu-item.is-disabled { opacity:.68; cursor:default; }
.tools-menu-item.is-disabled:hover { background:rgba(255,255,255,.05); }
.tools-menu-item.is-disabled .tool-name, .tools-menu-item.is-disabled .tool-badge { color:#9fb4da; }
.hero-brand-row { display:flex; align-items:center; justify-content:flex-start; gap:18px; margin-bottom:18px; }
.hero-banner-row--ads-only { display:grid; grid-template-columns:repeat(2, minmax(0, 320px)); justify-content:flex-end; gap:16px; }
.hero-inline-ad { min-height:74px; border-radius:16px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.035); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero-inline-ad-shell { width:320px; height:50px; display:flex; align-items:center; justify-content:center; }
@media (max-width:1120px) { .hero-banner-row--ads-only { grid-template-columns:1fr; justify-content:stretch; } .hero-inline-ad { justify-content:flex-start; } }
@media (max-width:768px) { .nav-shell { top:8px; } .nav-inner { gap:10px; padding:12px; } .nav-shell .nav-btn, .nav-shell .tools-toggle { min-height:44px; padding:0 16px; } .tools-menu { min-width:270px; width:min(320px, calc(100vw - 40px)); } }
