:root {
  --bg: #050b14;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #e9f2ff;
  --muted: #9eb2c7;
  --accent: #5af2c7;
  --accent-strong: #37d6a2;
  --danger: #ff7b7b;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  font-family: "Space Grotesk", "Sora", "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(90, 242, 199, 0.3);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg);
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px at 20% 20%, rgba(90, 242, 199, 0.12), transparent),
    radial-gradient(700px at 80% 10%, rgba(255, 196, 102, 0.12), transparent),
    radial-gradient(600px at 50% 80%, rgba(80, 150, 255, 0.14), transparent),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(120deg, rgba(90, 242, 199, 0.05), rgba(255, 255, 255, 0));
  filter: saturate(1.2);
}

.page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 56px;
  z-index: 1;
  flex: 1;
}

.auth-page {
  max-width: 960px;
}

.auth-page .hero.solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 18px auto 26px;
}

.auth-page .hero.solo .hero-copy {
  align-items: center;
}

.auth-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-shell {
  max-width: 540px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.auth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.auth-toggle .pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.auth-toggle .pill.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #012114;
  font-weight: 700;
}

.auth-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(5, 11, 20, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

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

.brand:hover {
  opacity: 0.9;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(90, 242, 199, 0.1);
}

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

.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-user[hidden] {
  display: none !important;
}

.nav-user:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(90, 242, 199, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-user .username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.nav-user .user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(0, 0, 0, 0.14) 100%);
  border: 1px solid rgba(90, 242, 199, 0.3);
  color: #c9d3e5;
  pointer-events: none;
}

.nav-user .user-pill .avatar-icon {
  width: 14px;
  height: 14px;
  display: block;
  color: rgba(226, 236, 255, 0.72);
}

.nav-user .dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 260px;
  background: #0a0f1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 8px;
  display: none;
  z-index: 100;
  overflow: hidden;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-user .dropdown.open {
  display: block;
}

.nav-user .dropdown .user-section {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-user .dropdown .email-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.nav-user .dropdown .email {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  word-break: break-all;
  text-align: left;
}

.nav-user .dropdown .plan-section {
  background: rgba(255, 255, 255, 0.03);
  margin: 0 4px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-user .dropdown .plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-user .dropdown .plan-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.nav-user .dropdown .plan-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-user .dropdown .plan-name.pro {
  color: #a855f7;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.nav-user .dropdown .plan-name.max {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.nav-user .dropdown .plan-name.free {
  color: #fff;
}

.nav-user .dropdown .actions-section {
  padding: 8px 4px 4px;
}

.nav-user .dropdown .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.nav-user .dropdown .status-dot.pro {
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.nav-user .dropdown .status-dot.max {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.nav-user .dropdown .logout-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #ff7b7b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-user .dropdown .logout-btn:hover {
  background: rgba(255, 123, 123, 0.08);
  color: #ff5f5f;
}

.nav-user .dropdown .logout-btn svg {
  width: 16px;
  height: 16px;
}

.nav-user .dropdown button:active {
  transform: translateY(1px);
}

.nav-user .dropdown button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 123, 123, 0.14), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin: 28px 0 36px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.hero .lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-container {
  max-width: 980px;
  margin: 0 auto;
}

.page > .hero.solo {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.hero-card {
  background: linear-gradient(140deg, rgba(90, 242, 199, 0.12), rgba(5, 11, 20, 0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.pricing-page .nav {
  margin-bottom: 18px;
}

.pricing-page .hero.solo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.pricing-page .hero.solo .hero-copy {
  align-items: center;
}

.pricing-page .currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 12px;
}

.pricing-page .currency-toggle .pill {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pricing-page .currency-toggle .pill.active {
  color: #05291b;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border-color: rgba(90, 242, 199, 0.8);
  box-shadow: 0 10px 26px rgba(90, 242, 199, 0.25);
}

.pricing-page .hero.solo h1 {
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.pricing-page .hero.solo h1::after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(90, 242, 199, 0.8), rgba(255, 255, 255, 0));
}

.pricing-page .hero.solo .lede {
  color: #b8c7d8;
  max-width: 720px;
  margin-top: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin: 22px auto 50px;
  max-width: 1080px;
  position: relative;
  align-items: stretch;
}

.pricing-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 68%;
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(90, 242, 199, 0.18), rgba(5, 11, 20, 0));
  filter: blur(22px);
  pointer-events: none;
  z-index: -1;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(175deg, rgba(22, 35, 48, 0.95), rgba(6, 16, 27, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(110% 120% at 24% 18%, rgba(90, 242, 199, 0.12), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  border-color: rgba(90, 242, 199, 0.25);
}

.pricing-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pricing-card .price {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
}

.pricing-card .per {
  color: var(--muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.feature-list li::before {
  content: '•';
  color: var(--accent);
  margin-right: 8px;
}

.feature-list li {
  line-height: 1.6;
}

.pricing-card.highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.pricing-card.highlight::after {
  background: radial-gradient(140% 140% at 50% 0%, rgba(90, 242, 199, 0.18), transparent 60%);
  opacity: 1;
}

.pricing-card .btn,
.pricing-card .btn.ghost {
  width: 100%;
  margin-top: 14px;
}

.pricing-card .card-head h2 {
  font-size: 22px;
}

.pricing-card .card-head p {
  font-size: 13px;
  line-height: 1.5;
}

.pricing-card .pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.pricing-card .pill-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pill-label.primary {
  background: rgba(90, 242, 199, 0.15);
  color: #9eb2c7;
  border-color: rgba(90, 242, 199, 0.5);
}

.pill-label.primary .dot {
  background: #5af2c7;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: rgba(90, 242, 199, 0.6);
  box-shadow: 0 10px 26px rgba(90, 242, 199, 0.15);
}

.btn.ghost:active,
.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.faq-list details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 242, 199, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq summary::marker {
  color: var(--accent);
}

.faq details p {
  margin: 10px 0 6px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .pricing-page .hero.solo {
    text-align: left;
    align-items: flex-start;
  }

  .pricing-page .hero.solo .hero-copy {
    align-items: flex-start;
  }

  .pricing-card {
    padding: 18px;
  }

  .pricing-grid {
    margin: 12px auto 36px;
    gap: 16px;
  }
}

.faq {
  max-width: 1040px;
  margin: 20px auto 56px;
  width: 100%;
}

.faq h3 {
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: #00ffb3;
  margin: 10px 0 8px;
}

.status-tile {
  display: grid;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.status-tile.status-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-tile.status-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.status-sub {
  margin: 2px 0 0;
  color: var(--muted);
}

.status-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(90, 242, 199, 0.16);
  border: 1px solid rgba(90, 242, 199, 0.5);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.meta-grid.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: center;
}

.hero.compact {
  margin-bottom: 10px;
}

.meta-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-value {
  margin: 4px 0 0;
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #9eead1;
  margin: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb86c;
  box-shadow: 0 0 0 4px rgba(255, 184, 108, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status.online .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(90, 242, 199, 0.18);
}

.status.offline .dot {
  background: #ff7b7b;
  box-shadow: 0 0 0 4px rgba(255, 123, 123, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.auth-grid {
  max-width: 900px;
  margin: 0 auto;
}

.auth-hero.solo {
  max-width: 720px;
  margin: 0 auto 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  color: #071b12;
  border-color: #5af2c7;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.hidden {
  display: none !important;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

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

.card-head p {
  margin: 0;
  color: var(--muted);
}

.comparison-card {
  margin-top: 28px;
}

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

.plan-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  color: var(--text);
}

.plan-compare th,
.plan-compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.plan-compare th {
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.plan-compare tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.plan-compare td:first-child {
  font-weight: 600;
  color: var(--text);
}

.plan-compare .yes {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 720px) {
  .plan-compare th,
  .plan-compare td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .plan-compare {
    min-width: 520px;
  }
}

.code-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.input-group input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 14px;
  height: 48px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(90, 242, 199, 0.18);
}

.input-group .btn {
  border-radius: 12px;
  width: 100%;
  min-width: unset;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  box-shadow: 0 8px 18px rgba(90, 242, 199, 0.25);
}

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

.legal-copy {
  color: var(--muted);
  line-height: 1.6;
}

.legal-copy p {
  margin: 0 0 12px;
}

.legal-copy h3 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 15px;
}

.legal-copy ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-copy a {
  color: #fff;
  text-decoration: underline;
}

.legal-container {
  max-width: 980px;
  margin: 0 auto;
}

.legal-intro {
  margin: 0 0 22px;
  border-color: rgba(90, 242, 199, 0.22);
  background: linear-gradient(180deg, rgba(90, 242, 199, 0.08), rgba(255, 255, 255, 0.02));
}

.legal-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.legal-card .card-head {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}

.legal-card .card-head h2 {
  font-size: 16px;
  margin: 0;
}

.legal-card .card-head p {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 11, 20, 0.8);
}

.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(233, 242, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
}

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

.footer-copyright {
  color: rgba(233, 242, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.download-history {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.history-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
}

.history-item .name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.history-item .time {
  color: var(--muted);
  font-size: 11px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.footer-actions .pill {
  padding: 8px 12px;
  font-size: 12px;
}

.footer-actions .language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(90, 242, 199, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.footer-actions .language-btn:hover {
  border-color: rgba(90, 242, 199, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.footer-actions .language-btn:focus {
  outline: none;
  border-color: rgba(90, 242, 199, 0.8);
  box-shadow: 0 0 0 3px rgba(90, 242, 199, 0.14);
}

.footer-actions .language-btn svg {
  width: 18px;
  height: 18px;
}

.footer-actions .language-wrap {
  position: relative;
  display: inline-flex;
  pointer-events: auto;
}

.footer-actions .language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(90, 242, 199, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
}

.footer-actions .language-dropdown {
  position: absolute;
  bottom: 50px;
  right: 0;
  min-width: 120px;
  background: #0a1222;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  display: none;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.footer-actions .language-dropdown.open {
  display: flex;
}

.footer-actions .language-dropdown button {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease;
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}

.footer-actions .language-dropdown button:hover {
  background: rgba(90, 242, 199, 0.1);
}

.footer-actions .language-dropdown button.active {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 900px) {
  .legal-container {
    max-width: 720px;
  }
}

@media (max-width: 600px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-inner {
    justify-content: center;
  }
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-controls {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  gap: 10px;
}

.pro-controls.visible {
  display: flex;
}

.pro-controls .field-row label {
  margin-bottom: 4px;
  display: inline-block;
  color: var(--muted);
}

.pro-controls .field-row input,
.pro-controls .field-row select,
.pro-controls .field-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.pro-controls .field-row input:focus,
.pro-controls .field-row select:focus,
.pro-controls .field-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(90, 242, 199, 0.18);
  outline: none;
}



.dropzone {
  display: block;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--panel-strong);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dropzone.active {
  border-color: var(--accent);
  background: rgba(90, 242, 199, 0.08);
  box-shadow: 0 10px 30px rgba(90, 242, 199, 0.15);
}

.drop-inner {
  text-align: center;
  color: var(--muted);
}

.drop-inner .icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.drop-inner .title {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.drop-inner .hint {
  margin: 4px 0 0;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #012114;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 12px 30px rgba(90, 242, 199, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.progress {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: width 0.15s ease;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form input {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(90, 242, 199, 0.18);
}

.auth-form input::placeholder {
  color: #8aa1b5;
}

.google-btn {
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #dfe9f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #5af2c7;
}

.google-btn .google-icon {
  flex: 0 0 auto;
  display: block;
}

.features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-title {
  margin: 0;
  font-weight: 700;
}

.feature-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dot.small {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px rgba(90, 242, 199, 0.18);
}

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

.log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.log-row .name {
  margin: 0;
  font-weight: 600;
}

.log-row .sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.log-row .status-pill {
  pointer-events: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--danger);
  color: #ffc4c4;
  background: rgba(255, 123, 123, 0.08);
}

.footer-actions > .icon-btn[href="/contact"]:hover {
  border-color: #fbbf24;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
} 

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

.log-empty {
  color: var(--muted);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.meta .name {
  margin: 0 0 6px;
  font-weight: 600;
}

.meta .sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pill {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

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

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

.pill.danger {
  border-color: rgba(255, 123, 123, 0.5);
  color: #ffc4c4;
}

.pill.danger:hover {
  border-color: var(--danger);
  color: #ffe0e0;
  background: rgba(255, 123, 123, 0.08);
}

@media (max-width: 640px) {
  .nav {
    position: sticky;
    top: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .file-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    width: 100%;
  }

  .actions a,
  .actions button {
    flex: 1;
    text-align: center;
  }
}
