:root {
  --brand-blue: #1d4ed8;
  --brand-blue-dark: #1e3a8a;
  --brand-blue-light: #60a5fa;
  --brand-red: #ef4444;
  --brand-red-dark: #dc2626;
  --brand-red-light: #f87171;

  --primary: var(--brand-blue);
  --primary-dark: var(--brand-blue-dark);
  --primary-light: var(--brand-blue-light);
  --secondary: var(--brand-red);
  --secondary-dark: var(--brand-red-dark);

  --accent-success: #10b981;
  --accent-warning: #f59e0b;

  --dark: #0f172a;
  --heading: #1e293b;
  --text: #334155;
  --muted: #64748b;

  --background: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #fdfefe;
  --border: #e2e8f0;
  --border-soft: #dbeafe;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(29, 78, 216, 0.12);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --max-width: 1200px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 28%, #f8fbff 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-8px) scale(1.04);
    opacity: 1;
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.22);
  }
  50% {
    box-shadow: 0 20px 42px rgba(29, 78, 216, 0.18);
  }
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

.fade-up.delay-1 {
  animation-delay: 0.12s;
}

.fade-up.delay-2 {
  animation-delay: 0.24s;
}

.hero-glow {
  position: absolute;
  inset: auto auto 10% 6%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18), transparent 70%);
  filter: blur(2px);
  animation: floatGlow 4.8s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  color: var(--heading);
  min-width: fit-content;
}

.brand img,
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.nav-links > a {
  position: relative;
  transition: color var(--transition);
}

.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links > a:hover,
.nav-links > a[aria-current="page"] {
  color: var(--brand-blue);
}

.nav-links > a:hover::after,
.nav-links > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: color var(--transition);
}

.dropbtn:hover,
.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
  color: var(--brand-blue);
}

.dropdown-caret {
  font-size: 12px;
  line-height: 1;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: none;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  z-index: 1001;
}

.dropdown-content a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.dropdown-content a:hover {
  background: rgba(29, 78, 216, 0.06);
  color: var(--brand-blue);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

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

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.24);
  animation: pulseSoft 5s ease-in-out infinite;
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(220, 38, 38, 0.28);
}

.btn-secondary {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(239, 68, 68, 0.08));
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
}

/* Hero */
.hero {
  padding: 60px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 26px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(219, 234, 254, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 68%);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.16), transparent 68%);
}

.upload-box {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  padding: 28px;
  text-align: center;
  border-radius: 24px;
  border: 2px dashed #bfdcff;
  background: linear-gradient(180deg, #fafdff 0%, #ffffff 100%);
  transition: transform var(--transition), box-shadow var(--transition);
}

.upload-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.upload-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(239, 68, 68, 0.12));
  color: var(--brand-blue);
  font-size: 28px;
  font-weight: 800;
}

.upload-box h3,
.upload-box-title {
  color: var(--heading);
  font-size: 22px;
  margin: 0 0 6px;
}

.upload-box p {
  color: var(--muted);
  margin: 0 0 16px;
}

.tool-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-tab {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tool-tab:hover,
.tool-tab.active {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.tool-tab strong {
  display: block;
  color: var(--heading);
  margin-bottom: 4px;
  font-size: 14px;
}

.tool-tab span {
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section,
.tool-section,
.content-section,
.related-tools,
.faq-section {
  padding: 38px 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head h2,
.content-section h2,
.related-tools h2,
.faq-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
}

.section-head p,
.content-section p,
.faq-section p,
.section-text,
.hero-text {
  color: var(--muted);
  font-size: 17px;
}

.tool-hero {
  padding: 52px 0 22px;
}

.tool-hero .container {
  text-align: center;
}

.tool-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  color: var(--dark);
}

.content-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.feature-list {
  padding-left: 20px;
  color: var(--text);
}

.feature-list li {
  margin-bottom: 10px;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 72px;
}

.legal-content {
  max-width: 900px;
}

.legal-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.legal-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--heading);
  font-size: 24px;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  line-height: 1.8;
  color: var(--text);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Cards */
.tools-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card,
.blog-card,
.form-card,
.info-card,
.tool-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tool-card:hover,
.blog-card:hover,
.tool-box:hover,
.info-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.tool-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(239, 68, 68, 0.08));
  color: var(--brand-blue);
  font-weight: 800;
}

.tool-card h3,
.blog-card h3,
.tool-box-title {
  color: var(--heading);
  font-size: 18px;
  margin: 0 0 8px;
}

.tool-card p,
.blog-card p,
.tool-box-text,
.blog-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.tool-card a,
.tool-box-link {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 14px;
}

.tool-box {
  display: block;
}

/* Why / steps */
.why-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card,
.step {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover,
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mini-icon,
.step-number {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(239, 68, 68, 0.1));
  color: var(--brand-blue);
}

.why-card h3,
.step h3 {
  color: var(--heading);
  margin: 14px 0 8px;
  font-size: 20px;
}

.why-card p,
.step p {
  color: var(--muted);
}

.step-number {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #ffffff;
}

/* Forms */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-form label {
  font-weight: 700;
  color: var(--heading);
}

.tool-form input,
.tool-form select,
.tool-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  background: #ffffff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.status-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.status-box:empty {
  display: none;
}

.status-message.info {
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(96, 165, 250, 0.32);
  color: var(--brand-blue);
}

.status-message.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

.status-message.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.trust-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.06), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(191, 219, 254, 0.85);
  color: var(--text);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 20px;
}

/* Footer */
.site-footer {
  margin-top: 34px;
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 42px;
  width: auto;
}

.footer-description {
  margin: 12px 0 0;
  color: #64748b;
  max-width: 360px;
}

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

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--brand-red);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.cookie-text a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-actions button {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.cookie-actions button:hover {
  transform: translateY(-1px);
}

.cookie-actions #acceptAll,
.cookie-actions #savePreferences,
.cookie-actions button:not(.btn-outline) {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.2);
}

.cookie-actions .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.cookie-actions .btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.cookie-modal-content h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 28px;
  line-height: 1.15;
}

.cookie-modal-content p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.cookie-option-text strong {
  display: block;
  color: var(--heading);
  font-size: 15px;
  margin-bottom: 4px;
}

.cookie-option-text span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Utility */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* File list */
.file-list {
  margin-top: 4px;
}

.file-list-box {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
}

.file-list-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
}

.file-list-box ul {
  margin: 0;
  padding-left: 18px;
}

.file-list-box li {
  margin-bottom: 6px;
  color: var(--muted);
}

/* Auth */
.auth-hero {
  padding-bottom: 12px;
}

.auth-section {
  padding-top: 18px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}

.auth-info-panel {
  display: grid;
  gap: 18px;
}

.auth-panel {
  display: flex;
  align-items: stretch;
}

.auth-card-pro {
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.auth-card-pro h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 30px;
  line-height: 1.15;
}

.auth-subtext {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.auth-form-pro {
  gap: 12px;
}

.auth-submit-btn {
  margin-top: 8px;
}

.auth-switch-text {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.auth-switch-text a {
  color: var(--brand-blue);
  font-weight: 700;
}

.inline-action-btn {
  margin-left: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.inline-action-btn:hover {
  background: #1e3a8a;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .tools-grid,
  .tool-grid,
  .why-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    align-items: stretch;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links,
  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dropdown {
    width: 100%;
    justify-content: center;
  }

  .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    width: min(280px, 90vw);
  }

  .hero {
    padding-top: 36px;
  }

  .hero-grid,
  .tools-grid,
  .tool-grid,
  .why-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-copy,
  .hero-card,
  .footer-inner {
    width: 100%;
  }

  .hero-copy h1,
  .tool-hero h1,
  .section-head h2,
  .content-section h2,
  .faq-section h2,
  .related-tools h2,
  .legal-content h1 {
    text-align: left;
  }

  .section-head,
  .tool-hero .container {
    text-align: left;
  }

  .tool-tabs {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions,
  .cookie-modal-actions {
    width: 100%;
  }

  .cookie-actions button,
  .cookie-modal-actions button {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .auth-card-pro,
  .cookie-modal-content {
    padding: 22px;
    border-radius: 22px;
  }

  .auth-card-pro h2,
  .cookie-modal-content h2 {
    font-size: 26px;
  }

  .legal-content h2 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .brand img,
  .brand-logo {
    height: 42px;
  }

  .btn {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1 1 100%;
  }

  .inline-action-btn {
    display: inline-block;
    margin-left: 0;
    margin-top: 10px;
  }

  .legal-page {
    padding: 36px 0 56px;
  }
}
/* =========================
   Admin Dashboard Styles
   ========================= */

.gpn-admin-page {
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  min-height: 100vh;
  color: #24324a;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.site-logo {
  height: 44px;
  width: auto;
}

.site-logo-text {
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-blue);
}

.admin-top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-top-nav a,
.admin-top-nav button {
  white-space: nowrap;
}

.admin-main {
  padding: 32px 0 70px;
}

.admin-hero {
  padding: 12px 0 20px;
}

.admin-hero-card,
.admin-panel,
.admin-metric-card {
  background: #ffffff;
  border: 1px solid rgba(36, 50, 74, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.admin-hero-card {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.admin-kicker {
  margin: 0 0 8px;
  color: #6b7a90;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  color: #24324a;
}

.admin-subtext {
  margin: 0;
  color: #55637a;
}

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

.admin-section {
  padding: 14px 0;
}

.admin-section-head {
  margin-bottom: 18px;
}

.admin-section-head h2,
.admin-panel-head h3 {
  margin: 0 0 6px;
  color: #24324a;
}

.admin-section-head p,
.admin-panel-head p {
  margin: 0;
  color: #66758c;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-metric-card {
  padding: 22px;
}

.admin-metric-label {
  margin: 0 0 10px;
  color: #66758c;
}

.admin-metric-card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #24324a;
}

.admin-metric-note {
  color: #6d7b91;
  font-size: 0.92rem;
}

.admin-panel {
  padding: 24px;
}

.admin-panel-head {
  margin-bottom: 18px;
}

.admin-panel-head-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-list-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f7f9fc;
}

.admin-stat-title {
  color: #34425c;
  word-break: break-word;
}

.admin-stat-value {
  font-weight: 700;
  color: #111827;
}

.admin-empty-state {
  color: #6d7b91;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  text-align: left;
  padding: 14px 12px;
  color: #6b7a90;
  border-bottom: 1px solid #e5eaf1;
  font-size: 0.94rem;
}

.admin-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1f6;
  color: #2d3b53;
  vertical-align: top;
}

.admin-title-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-table-sub {
  color: #7a879a;
  font-size: 0.86rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3f9;
  color: #24324a;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.admin-badge.is-success {
  background: #e8f8ef;
  color: #177245;
}

.admin-badge.is-warning {
  background: #fff3dd;
  color: #a56b00;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-action-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 18px;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid #e7edf5;
  color: #24324a;
  transition: transform var(--transition), border-color var(--transition);
}

.admin-action-card:hover {
  transform: translateY(-2px);
  border-color: #bfdcff;
}

.admin-action-card span {
  color: #66758c;
  font-size: 0.94rem;
}

.admin-inline-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  display: none;
}

.admin-inline-message:not(:empty) {
  display: block;
}

.admin-inline-message.is-success {
  background: rgba(20, 160, 100, 0.12);
  color: #177245;
  border: 1px solid rgba(20, 160, 100, 0.2);
}

.admin-inline-message.is-error {
  background: rgba(210, 50, 50, 0.1);
  color: #b42318;
  border: 1px solid rgba(210, 50, 50, 0.18);
}

.admin-form-panel {
  padding: 28px;
}

.admin-form {
  width: 100%;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form-group-full {
  grid-column: 1 / -1;
}

.admin-form-group label,
.admin-report-filter label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #24324a;
}

.admin-select,
.admin-input,
.admin-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: #24324a;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-select:focus,
.admin-input:focus,
.admin-textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.admin-input::placeholder,
.admin-textarea::placeholder {
  color: #94a3b8;
}

.admin-textarea {
  resize: vertical;
  min-height: 140px;
}

.admin-textarea-sm {
  min-height: 110px;
}

.admin-textarea-lg {
  min-height: 300px;
}

.admin-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-top: 10px;
  cursor: pointer;
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn-outline {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.btn-xs {
  padding: 8px 12px;
  min-height: auto;
  font-size: 0.82rem;
}

.btn-sm {
  padding: 10px 14px;
  min-height: auto;
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-three-col,
  .admin-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-inner,
  .admin-two-col,
  .admin-metric-grid,
  .admin-three-col,
  .admin-actions-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 12px 0;
  }

  .admin-main {
    padding: 24px 0 60px;
  }

  .admin-panel,
  .admin-metric-card,
  .admin-hero-card {
    padding: 18px;
  }

  .admin-top-nav,
  .main-nav {
    gap: 10px;
  }
}
/* =========================
   Legal Page Compatibility
   Add this at the very end
   ========================= */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--heading);
  line-height: 1.2;
}

.logo span {
  color: var(--brand-blue);
}

.hero-small {
  padding: 54px 0 22px;
}

.hero-small .container {
  max-width: 900px;
}

.hero-small h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--dark);
}

.last-updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.legal-content a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--brand-red);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer .footer-grid h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 18px;
}

.site-footer .footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-grid li {
  margin-bottom: 10px;
}

.site-footer .footer-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

  .hero-small,
  .legal-page {
    padding-top: 36px;
  }
}
/* =========================
   Mobile Header Fix
   Keeps mobile menu hidden until user taps Menu
   ========================= */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--heading, #0f172a);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.mobile-menu-toggle .menu-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.mobile-menu-toggle .menu-icon::before,
.mobile-menu-toggle .menu-icon::after,
.mobile-menu-toggle .menu-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-toggle .menu-icon::before { top: 0; }
.mobile-menu-toggle .menu-icon span { top: 6px; }
.mobile-menu-toggle .menu-icon::after { top: 12px; }

@media (max-width: 860px) {
  .site-header {
    position: relative !important;
    top: auto !important;
  }

  .nav {
    min-height: 72px;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 12px 0 !important;
  }

  .brand {
    max-width: calc(100% - 104px);
    gap: 8px;
  }

  .brand img,
  .brand-logo {
    height: 42px;
  }

  .brand span {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .site-header {
    position: fixed !important;
    inset: 0 0 auto 0;
    z-index: 3000;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  }

  body.mobile-nav-open .site-header .nav {
    flex-wrap: wrap !important;
    align-items: flex-start;
  }

  body.mobile-nav-open .nav-links,
  body.mobile-nav-open .nav-actions {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 0 0;
  }

  body.mobile-nav-open .nav-links a,
  body.mobile-nav-open .dropbtn,
  body.mobile-nav-open .nav-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
  }

  body.mobile-nav-open .dropdown {
    width: 100%;
    display: block;
  }

  body.mobile-nav-open .dropdown-content {
    position: static !important;
    display: none;
    transform: none !important;
    width: 100% !important;
    margin-top: 8px;
    box-shadow: none;
  }

  body.mobile-nav-open .dropdown.active .dropdown-content {
    display: grid;
  }
}

/* Growth UX additions */
.growth-usage-pill{position:fixed;right:18px;bottom:18px;z-index:999;background:#fff;border:1px solid rgba(29,78,216,.18);box-shadow:0 18px 45px rgba(15,23,42,.16);border-radius:18px;padding:12px 14px;display:grid;gap:2px;max-width:260px;color:#0f172a;font-size:.9rem}.growth-usage-pill strong{color:#1d4ed8;font-size:1.2rem}.growth-usage-pill span{color:#64748b;font-size:.78rem}.growth-usage-pill a{color:#1d4ed8;font-weight:800;text-decoration:none}.personal-welcome{background:rgba(29,78,216,.08);border:1px solid rgba(29,78,216,.16);border-radius:18px;padding:12px 14px;margin-bottom:16px;display:grid;gap:4px;color:#0f172a}.personal-welcome span{color:#475569}.mode-switch{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:22px 0}.mode-switch button{border:1px solid rgba(29,78,216,.2);background:#fff;border-radius:999px;padding:11px 18px;font-weight:800;cursor:pointer}.mode-switch button.active{background:#1d4ed8;color:#fff}.tool-card[data-mode]{transition:.2s ease}.all-in-one-panel,.pricing-panel,.seo-card{background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 18px 45px rgba(15,23,42,.06);border-radius:24px;padding:26px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field-grid label{display:grid;gap:7px;font-weight:700;color:#0f172a}.field-grid input,.field-grid select{border:1px solid rgba(15,23,42,.15);border-radius:14px;padding:12px 14px}.checkbox-row{display:flex;align-items:center;gap:10px;font-weight:700}.is-processing{opacity:.8;pointer-events:none}@media(max-width:700px){.growth-usage-pill{left:12px;right:12px;bottom:12px;max-width:none}.field-grid{grid-template-columns:1fr}.all-in-one-panel,.pricing-panel{padding:20px}}
.ai-form textarea{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:18px;padding:16px;font:inherit;resize:vertical;margin:14px 0}.ai-output{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:18px;padding:18px;min-height:120px;overflow:auto;line-height:1.6}


/* Phase 1 Conversion Upgrade - Trust, CTA, Usage Counter, Testimonials */
.phase1-hero .hero-copy h1 {
  max-width: 760px;
}

.phase1-usage-counter {
  width: min(420px, 100%);
  margin: 22px 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,246,255,0.92));
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 4px;
}

.phase1-usage-counter .usage-label,
.phase1-usage-counter small {
  color: var(--muted);
  font-weight: 700;
}

.phase1-usage-counter strong {
  color: var(--brand-blue);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.phase1-usage-counter.is-low {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, #fff, #fff7f7);
}

.phase1-hero-points span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
}

.phase1-trust-strip {
  padding-top: 26px;
  padding-bottom: 8px;
}

.trust-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: grid;
  gap: 4px;
}

.trust-badge strong {
  color: var(--heading);
  font-size: 1rem;
}

.trust-badge span {
  color: var(--muted);
  font-size: 0.92rem;
}

.phase1-two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.phase1-security-card,
.testimonial-card {
  background: var(--surface);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.phase1-check-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.phase1-check-row:last-child {
  border-bottom: 0;
}

.phase1-check-row > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-success);
  font-weight: 900;
}

.phase1-check-row strong {
  color: var(--heading);
}

.phase1-check-row p,
.testimonial-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.phase1-inline-actions {
  margin-top: 22px;
}

.phase1-center-actions {
  justify-content: center;
}

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

.testimonial-card p {
  font-size: 1.02rem;
  color: var(--text);
}

.testimonial-card strong {
  display: block;
  margin-top: 16px;
  color: var(--brand-blue);
}

.pricing-trust {
  margin-top: 22px;
  margin-bottom: 22px;
}

@media (max-width: 920px) {
  .trust-badge-grid,
  .testimonial-grid,
  .phase1-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trust-badge-grid,
  .testimonial-grid,
  .phase1-two-column {
    grid-template-columns: 1fr;
  }

  .phase1-usage-counter {
    padding: 14px;
  }

  .phase1-center-actions,
  .phase1-inline-actions {
    justify-content: stretch;
  }

  .phase1-center-actions .btn,
  .phase1-inline-actions .btn {
    width: 100%;
  }
}
