/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-2: #1a1a25;
  --border: #2a2a3a;
  --accent: #7c6bff;
  --accent-hover: #6b5ce7;
  --success: #00d4aa;
  --error: #ff4d6a;
  --text: #e8e8f0;
  --text-muted: #5a5a7a;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-success {
  background: var(--success);
  color: #000;
}

.btn-success:hover {
  background: #00b894;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-img {
  display: block;
  width: 200px;
  height: auto;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.caret {
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
}

.dropdown-item:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-email {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dashboard-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.dashboard-btn:hover {
  background: rgba(124, 107, 255, 0.1);
  border-color: var(--accent-hover);
}

.badge-pro {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* ===== Body Scroll Lock ===== */
body.scroll-locked {
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Tools Grid ===== */
.tools-grid-section {
  padding: 3rem 0;
}

.tools-grid-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
  color: var(--text);
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 107, 255, 0.1);
  text-decoration: none;
}

.tool-card-icon {
  margin-bottom: 1rem;
}

.format-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.format-badge.avif {
  background: rgba(124, 107, 255, 0.15);
  color: var(--accent);
}

.format-badge.jpg {
  background: rgba(255, 179, 71, 0.15);
  color: #ffb347;
}

.format-badge.png {
  background: rgba(0, 212, 170, 0.15);
  color: var(--success);
}

.format-badge.webp {
  background: rgba(77, 171, 247, 0.15);
  color: #4dabf7;
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Features ===== */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature svg {
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Tool Page ===== */
.tool-page {
  flex: 1;
}

.tool-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.tool-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.tool-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== Drop Zone ===== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: var(--surface);
}

.drop-zone:hover {
  border-color: var(--accent);
}

.drop-zone.drag-active {
  border-color: var(--accent);
  background: rgba(124, 107, 255, 0.05);
  box-shadow: 0 0 30px rgba(124, 107, 255, 0.15);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.drop-icon {
  color: var(--text-muted);
}

.drop-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.drop-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Quality Slider ===== */
.quality-control {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.quality-control label {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 120px;
}

.quality-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  outline: none;
}

.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.quality-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ===== File List ===== */
.file-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.file-name {
  font-weight: 500;
  font-size: 0.9rem;
}

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

/* ===== Progress Bar ===== */
.file-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 0.3s;
  animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 36px;
}

/* ===== File Done / Error ===== */
.file-done {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-savings {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 500;
}

.file-error {
  font-size: 0.85rem;
  color: var(--error);
}

/* ===== Limit Notice ===== */
.limit-notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
}

.limit-notice p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== Tool Content ===== */
.tool-content {
  padding: 3rem 0 4rem;
}

.tool-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Privacy Callout ===== */
.privacy-callout {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.privacy-callout svg {
  flex-shrink: 0;
  color: var(--success);
}

.privacy-callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.privacy-callout p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-section {
  margin-top: 2rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-chevron.rotated {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-enter {
  transition: all 0.2s;
}

.faq-enter-start {
  opacity: 0;
  transform: translateY(-4px);
}

.faq-enter-end {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Pricing ===== */
.pricing-page {
  flex: 1;
  padding: 4rem 0;
  text-align: center;
}

.pricing-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  position: relative;
}

.pricing-card-pro {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(124, 107, 255, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
  content: "\2713";
  color: var(--success);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ===== Auth Form ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.auth-form input[type="email"]:focus {
  border-color: var(--accent);
}

.auth-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.auth-message.success {
  color: var(--success);
}

.auth-message.error {
  color: var(--error);
}

/* ===== Legal Pages ===== */
.legal-page {
  flex: 1;
  padding: 3rem 0 4rem;
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-page li {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

.legal-page a {
  color: var(--accent);
}

/* ===== Dashboard ===== */
.dashboard-page {
  flex: 1;
  padding: 3rem 0 4rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 0;
}

/* Plan badges */
.badge-free {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Account info */
.account-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.account-row:last-child {
  border-bottom: none;
}

.account-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.account-value {
  font-size: 0.9rem;
}

.plan-pro {
  color: var(--accent);
  font-weight: 600;
}

.plan-free {
  color: var(--text-muted);
}

/* Upgrade section */
.upgrade-section .upgrade-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.upgrade-feature {
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.upgrade-icon {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.upgrade-feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.upgrade-feature p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.upgrade-cta {
  text-align: center;
  padding-top: 0.5rem;
}

/* Usage card */
.usage-card {
  max-width: 320px;
}

.usage-numbers {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.usage-count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.usage-separator {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.usage-limit {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.usage-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 4px;
  transition: width 0.5s ease;
}

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

/* Create key form */
.create-key-form {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

/* New key display */
.new-key-display {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(124, 107, 255, 0.08);
  border: 1px solid rgba(124, 107, 255, 0.25);
  border-radius: var(--radius-sm);
}

.new-key-warning {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.new-key-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.new-key-value code {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--success);
}

/* Keys table */
.keys-table-wrapper {
  overflow-x: auto;
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.keys-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.keys-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.keys-table tr:last-child td {
  border-bottom: none;
}

.key-prefix {
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(124, 107, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.keys-empty,
.keys-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0.75rem;
}

.revoke-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--error);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.revoke-btn:hover {
  background: rgba(255, 77, 106, 0.1);
  border-color: var(--error);
}

.text-muted {
  color: var(--text-muted);
}

/* Quick Start */
.quickstart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quickstart-card pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin: 0;
}

.quickstart-card code {
  font-size: 0.8rem;
  color: var(--success);
  line-height: 1.7;
}

.quickstart-info {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.quickstart-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quickstart-info strong {
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .footer-col {
    align-items: center;
  }

  .nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .tool-hero h1 {
    font-size: 1.75rem;
  }

  .form-row {
    flex-wrap: wrap;
  }

  .form-input {
    min-width: 0;
  }

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

  .quickstart-info {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
