/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0f;
  --bg-2: #0d0d16;
  --bg-3: #111120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.11);
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --primary-glow: rgba(249, 115, 22, 0.22);
  --primary-glow2: rgba(249, 115, 22, 0.10);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.10);
  --success-border: rgba(16, 185, 129, 0.22);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.10);
  --warning: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-h: 64px;
  --transition: 0.18s ease;
  --gradient-btn: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.25);
  border-radius: 99px;
  transition: background .2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.55);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.25) transparent;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes navIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

@keyframes bobFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.anim-up {
  animation: fadeUp .75s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--d, 0s);
}

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  animation: navIn .7s cubic-bezier(.22, 1, .36, 1) both;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo-img {
  width: auto;
  height: calc(var(--nav-h) * 0.3);
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 700;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: .9;
}

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

.nav-drawer-logo-img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  border-radius: 2px;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link-cta {
  background: var(--gradient-btn) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(249, 115, 22, .25);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  opacity: .9;
  color: #fff !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: #0f0f1a;
  border-left: 1px solid var(--border);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-inner {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.nav-drawer-close {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.nav-drawer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 28px;
  text-decoration: none;
}

.nav-drawer-logo span {
  color: var(--text-muted);
}

.nav-drawer-link {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

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

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(4px);
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 24px 0;
  background: var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .45;
}

.hero-glow.g1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, .18) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: bobFloat 8s ease-in-out infinite;
}

.hero-glow.g2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, .12) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: bobFloat 10s ease-in-out infinite reverse;
}

.hero-glow.g3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(249, 115, 22, .08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Hero text */
.hero-text {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(249, 115, 22, .08);
  border: 1px solid rgba(249, 115, 22, .2);
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s ease infinite;
}

.hero-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-accent {
  font-style: normal;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.br-desktop {
  display: none;
}

/* Hero card */
.hero-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 32px 80px rgba(0, 0, 0, .5);
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  animation: bobFloat 3s ease-in-out infinite;
  margin-top: -8px;
}

.scroll-hint svg {
  opacity: .6;
}

/* ── SEO Intro ──────────────────────────────────────────────────────────────── */
.seo-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 24px;
  text-align: center;
}

.seo-intro h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(18px, 5vw, 36px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
}

.seo-intro p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

/* ── Form Tabs ──────────────────────────────────────────────────────────────── */
.form-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tab-btn.active {
  background: rgba(249, 115, 22, .15);
  color: var(--primary-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* ── URL Input ──────────────────────────────────────────────────────────────── */
.url-field-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.url-field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color var(--transition);
}

.url-field-wrap:focus-within .url-field-icon {
  color: var(--primary);
}

.url-field-wrap input[type="url"] {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.url-field-wrap input[type="url"]::placeholder {
  color: var(--text-dim);
}

.url-field-wrap input[type="url"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
  background: rgba(255, 255, 255, 0.07);
}

/* ── Shorten Button ─────────────────────────────────────────────────────────── */
.btn-shorten {
  height: 52px;
  padding: 0 24px;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(249, 115, 22, .35);
  letter-spacing: .02em;
}

.btn-shorten:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 28px rgba(249, 115, 22, .50);
}

.btn-shorten:active {
  transform: translateY(0) scale(1);
}

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

#shorten-btn {
  width: 100%;
  justify-content: center;
  height: 54px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 13px;
  margin-bottom: 20px;
}

.btn-shorten.btn-paste-mode {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn-shorten.btn-paste-mode:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

/* ── Health Check ───────────────────────────────────────────────────────────── */
.health-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
}

.health-dot.health-checking {
  background: var(--warning);
  animation: pulse 1s ease infinite;
}

.health-dot.health-ok {
  background: var(--success);
}

.health-dot.health-warn {
  background: var(--error);
}

.health-dot.health-ok~.health-msg {
  color: var(--success);
}

.health-dot.health-warn~.health-msg {
  color: var(--error);
}

/* ── Alias Section ──────────────────────────────────────────────────────────── */
.alias-section {
  margin-bottom: 14px;
}

.alias-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Optional Tag ───────────────────────────────────────────────────────────── */
.optional-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Field Row (alias + password) ───────────────────────────────────────────── */
.field-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

.field-prefix {
  padding: 0 13px;
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  min-height: 46px;
  flex-shrink: 0;
}

.field-prefix-icon {
  padding: 0 14px;
  color: var(--text-dim);
}

.field-row input[type="text"],
.field-row input[type="password"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.field-row input[type="text"] {
  font-family: 'Courier New', monospace;
}

.field-row input::placeholder {
  color: var(--text-dim);
}

.field-action-btn {
  height: 46px;
  padding: 0 16px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.field-action-btn:hover {
  background: rgba(249, 115, 22, .12);
  color: var(--primary-light);
}

.field-eye-btn {
  width: 46px;
  padding: 0;
  color: var(--text-dim);
}

.field-eye-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.field-hint {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 18px;
  padding-left: 2px;
  color: var(--text-dim);
}

.field-hint.ok {
  color: var(--success);
}

.field-hint.err {
  color: var(--error);
}

/* ── Form Error ─────────────────────────────────────────────────────────────── */
.form-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--error-bg);
  border: 1px solid rgba(248, 113, 113, .2);
  border-radius: var(--radius-xs);
  color: var(--error);
  font-size: 13.5px;
  font-weight: 500;
  display: none;
}

.form-error.visible {
  display: block;
  animation: fadeSlide .2s ease;
}

/* ── Options row ────────────────────────────────────────────────────────────── */
.options-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 13px 16px;
  background: var(--surface);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

.toggle-label:hover {
  color: var(--text);
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.toggle-label input:checked~.toggle-switch {
  background: var(--primary);
}

.toggle-label input:checked~.toggle-switch::after {
  transform: translateX(16px);
}

.toggle-label input:checked~.toggle-switch~.toggle-text {
  color: var(--text);
}

/* ── Collapsible wrapper ────────────────────────────────────────────────────── */
.alias-input-wrapper {
  margin-bottom: 14px;
  display: none;
}

.alias-input-wrapper.visible {
  display: block;
  animation: fadeSlide .2s ease;
}

/* ── Advanced Accordion ─────────────────────────────────────────────────────── */
.advanced-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 18px;
  overflow: hidden;
}

.advanced-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}

.advanced-toggle-btn:hover {
  background: var(--surface-2);
  color: var(--text-muted);
}

.advanced-toggle-btn.open {
  color: var(--primary-light);
  background: rgba(249, 115, 22, .06);
}

.advanced-chevron {
  flex-shrink: 0;
  transition: transform .22s ease;
  opacity: .5;
}

.advanced-chevron.open {
  transform: rotate(180deg);
  opacity: 1;
}

.advanced-body {
  padding: 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  animation: fadeSlide .2s ease;
}

.advanced-section {
  margin-bottom: 16px;
}

/* ── Settings Row ───────────────────────────────────────────────────────────── */
.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.setting-item input[type="date"],
.setting-item input[type="number"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  color-scheme: dark;
}

.setting-item input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

.setting-item input::placeholder {
  color: var(--text-dim);
}

/* ── Result Card ────────────────────────────────────────────────────────────── */
.result-card {
  margin-top: 20px;
  padding: 18px;
  background: rgba(16, 185, 129, .06);
  border: 1px solid rgba(16, 185, 129, .18);
  border-radius: var(--radius-sm);
  display: none;
}

.result-card.visible {
  display: block;
  animation: fadeSlide .25s ease;
}

.result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-main-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.result-main-row .result-url-text {
  flex: 1;
  min-width: 0;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, .15);
  border-radius: var(--radius-xs);
  padding: 10px 13px;
  word-break: break-all;
  cursor: pointer;
  display: block;
  transition: background var(--transition);
  text-decoration: none;
}

.result-main-row .result-url-text:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.result-btn-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.btn-result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
  min-width: 86px;
}

.btn-result-action:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(249, 115, 22, .08);
}

.btn-result-action.copied {
  background: rgba(16, 185, 129, .15);
  color: var(--success);
  border-color: rgba(16, 185, 129, .3);
}

/* Keep legacy compatibility */
.result-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.result-url-text {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  word-break: break-all;
  cursor: pointer;
  display: block;
  transition: background var(--transition);
}

.result-url-text:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.btn-copy {
  flex-shrink: 0;
  height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-copy:hover,
.btn-copy.copied {
  background: rgba(16, 185, 129, .15);
  border-color: rgba(16, 185, 129, .3);
}

/* ── Result Actions ─────────────────────────────────────────────────────────── */
.result-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-action {
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-action:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.btn-action-ghost {
  background: transparent;
}

/* ── Copy format buttons ────────────────────────────────────────────────────── */
.btn-copy-fmt {
  flex-shrink: 0;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .02em;
}

.btn-copy-fmt:hover {
  border-color: var(--border-hover);
  color: var(--text-muted);
}

.btn-copy-fmt.copied {
  background: rgba(16, 185, 129, .15);
  color: var(--success);
  border-color: rgba(16, 185, 129, .3);
}

/* ── QR Container ───────────────────────────────────────────────────────────── */
.qr-container {
  margin-bottom: 12px;
  display: none;
}

.qr-container.visible {
  display: flex;
  justify-content: center;
  animation: fadeSlide .2s ease;
}

.qr-container img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

/* ── Social Share ───────────────────────────────────────────────────────────── */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.share-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  margin-right: 4px;
}

.share-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: #fff;
  transition: transform var(--transition), opacity var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: .85;
  text-decoration: none;
}

.share-whatsapp {
  background: #25d366;
}

.share-twitter {
  background: #18181b;
}

.share-telegram {
  background: #2aabee;
}

.share-facebook {
  background: #1877f2;
}

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
}

/* ── Recent Links (below hero) ──────────────────────────────────────────────── */
#desktop-grid {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#desktop-grid.no-links {
  display: none;
}

.recent-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 28px;
}

.recent-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.recent-section-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.3px;
}

.my-links-count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 9px;
  font-family: 'DM Sans', sans-serif;
}

.btn-clear-links {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-clear-links:hover {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-bg);
}

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

.recent-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.recent-item:hover {
  border-color: rgba(249, 115, 22, .25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.recent-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.recent-item-body {
  flex: 1;
  min-width: 0;
}

.recent-item-short {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}

.recent-item-short:hover {
  text-decoration: underline;
}

.recent-item-orig {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.recent-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-copy-mini,
.btn-stats-mini {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-copy-mini:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-stats-mini {
  background: transparent;
  border: 1px solid rgba(16, 185, 129, .2);
  color: var(--success);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-stats-mini:hover {
  background: rgba(16, 185, 129, .08);
  text-decoration: none;
}

/* ── Bulk Panel ─────────────────────────────────────────────────────────────── */
.bulk-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.55;
}

#bulk-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  color-scheme: dark;
}

#bulk-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

#bulk-textarea::placeholder {
  color: var(--text-dim);
}

.bulk-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 4px;
  gap: 12px;
}

.bulk-counter {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.bulk-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.bulk-export-btns {
  display: flex;
  gap: 8px;
}

.bulk-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bulk-table thead tr {
  background: rgba(255, 255, 255, 0.03);
}

.bulk-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.bulk-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.bulk-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.bulk-table td:first-child {
  max-width: 200px;
}

.bulk-orig {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  font-family: 'Courier New', monospace;
  color: var(--text-dim);
}

.bulk-table td a {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--primary-light);
}

.bulk-row-error td {
  background: var(--error-bg);
}

.bulk-error-msg {
  color: var(--error);
  font-size: 12px;
  font-weight: 500;
}

/* ── Features Section ───────────────────────────────────────────────────────── */
.features-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 100px 28px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  text-align: center;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, .06), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, .2);
  background: rgba(255, 255, 255, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: var(--icon-bg, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--icon-border, rgba(255, 255, 255, 0.08));
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── Explainer Section ──────────────────────────────────────────────────────── */
.explainer-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 96px 24px;
}

.explainer-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.explainer-main p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.explainer-main strong {
  color: var(--text);
}

.explainer-url-demo {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explainer-url {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  position: relative;
}

.explainer-url.short {
  border-color: rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.04);
}

.url-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.explainer-url.short .url-label {
  color: var(--primary);
}

.explainer-url code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.5;
}

.explainer-url.short code {
  color: var(--primary-light);
  font-weight: 700;
}

.explainer-arrow {
  display: flex;
  justify-content: center;
  color: var(--primary);
  opacity: .5;
}

.explainer-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explainer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .2s, background .2s;
}

.explainer-card:hover {
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.explainer-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.explainer-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.explainer-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .explainer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── FAQ Section ────────────────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 96px 24px;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: rgba(249, 115, 22, 0.3);
}

.faq-q {
  list-style: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: color .2s;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.faq-item[open] .faq-q {
  color: var(--primary);
}

.faq-item[open] .faq-q::after {
  transform: rotate(180deg);
  filter: brightness(0) saturate(100%) invert(58%) sepia(76%) saturate(1200%) hue-rotate(1deg) brightness(101%) contrast(97%);
}

.faq-a {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-a strong {
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #060608;
  border-top: 1px solid var(--border);
  padding: 40px 28px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy {
  font-size: 12.5px;
  color: #2d3748;
}

/* ── Bottom Nav (mobile only) ────────────────────────────────────────────────── */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    align-items: center;
    justify-content: space-around;
    z-index: 800;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body {
    padding-bottom: 64px;
  }
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: color var(--transition);
  font-family: inherit;
  padding: 0;
}

.bnav-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}

.bnav-item:hover {
  color: rgba(255, 255, 255, .6);
}

.bnav-item.active {
  color: var(--primary);
}

/* ── Policy / Error pages ────────────────────────────────────────────────────── */
.policy-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 24px 52px;
}

.policy-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.5px;
  color: var(--text);
}

.policy-meta {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}

.policy-page p,
.policy-page li {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}

.policy-page ul,
.policy-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 36px;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 40px;
}

.error-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 88px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  letter-spacing: -4px;
}

.error-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--gradient-btn);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 4px 20px rgba(249, 115, 22, .35);
  transition: opacity var(--transition), transform var(--transition);
}

.btn-home:hover {
  opacity: .9;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Prevent iOS zoom ────────────────────────────────────────────────────────── */
@media (hover:none) and (pointer:coarse) {

  input[type="url"],
  input[type="text"],
  input[type="password"],
  input[type="date"],
  input[type="number"],
  textarea {
    font-size: 16px !important;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .nav-hamburger {
    display: none;
  }

  .br-desktop {
    display: inline;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-h) + 32px) 20px 96px;
  }

  .hero-headline {
    letter-spacing: -1.5px;
  }

  .hero-card {
    padding: 20px;
  }

  .features-section {
    padding: 72px 20px;
  }

  .section-sub {
    margin-bottom: 40px;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .bulk-actions-top {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-actions-top .btn-shorten {
    justify-content: center;
    width: 100%;
  }

  .result-actions {
    gap: 6px;
  }

  .result-actions .btn-action {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 34px;
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-card {
    padding: 16px;
  }

  .result-main-row {
    flex-direction: column;
  }

  .result-btn-group {
    flex-direction: row;
    width: 100%;
  }

  .btn-result-action {
    flex: 1;
  }

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

  .feature-card {
    padding: 20px 14px;
  }

  .bulk-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bulk-export-btns {
    width: 100%;
  }

  .bulk-export-btns .btn-action {
    flex: 1;
    justify-content: center;
  }
}

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

  .hero-headline {
    font-size: 30px;
  }
}

/* ── Ad placeholders (hidden) ────────────────────────────────────────────────── */
.ad-top,
.ad-mid {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   REFINED UI SYSTEM — clean, calm, professional
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Additional keyframes (minimal) ──────────────────────────────────────── */
@keyframes successPop {
  0% {
    opacity: 0;
    transform: translateY(6px)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ── Refined tokens ───────────────────────────────────────────────────────── */
:root {
  --shadow-card: 0 2px 16px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --focus-ring: 0 0 0 3px rgba(249, 115, 22, .18);
  --transition-smooth: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ── Nav refinements ──────────────────────────────────────────────────────── */
.site-nav.scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 4px 24px rgba(0, 0, 0, .4);
}

.nav-logo {
  transition: opacity var(--transition-smooth);
}

.nav-logo:hover {
  opacity: .85;
}

.nav-hamburger {
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-hamburger:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
}

.nav-drawer {
  background: rgba(10, 10, 18, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -12px 0 48px rgba(0, 0, 0, .55);
}

.nav-drawer-link {
  border-left: 2px solid transparent;
  padding-left: 16px;
  transition: background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth), padding-left var(--transition-smooth);
}

.nav-drawer-link:hover {
  background: var(--surface-2);
  color: var(--text);
  border-left-color: var(--primary);
  padding-left: 20px;
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* Keep natural float, no pulse */
.hero-glow.g1 {
  animation: bobFloat 9s ease-in-out infinite;
}

.hero-glow.g2 {
  animation: bobFloat 12s ease-in-out infinite reverse;
}

/* Hero badge — static, no shimmer */
.hero-badge {
  background: rgba(249, 115, 22, .07);
  box-shadow: none;
}

.badge-dot {
  animation: pulse 2.4s ease-in-out infinite;
}

/* Hero card — clean glass, entrance animation only */
.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  animation: cardIn .7s cubic-bezier(.4, 0, .2, 1) .15s both;
}

/* ── Inputs — clean focus ring, no animation ─────────────────────────────── */
.url-field-wrap input[type="url"]:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--focus-ring);
}

.field-row:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.setting-item input:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

#bulk-textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

/* ── Shorten button — clean gradient, gentle lift ────────────────────────── */
#shorten-btn {
  background: linear-gradient(160deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 2px 12px rgba(249, 115, 22, .28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), opacity var(--transition-smooth);
}

#shorten-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(249, 115, 22, .38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#shorten-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(249, 115, 22, .22);
}

.btn-shorten:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, .35);
}

/* ── Tab buttons — refined active state ──────────────────────────────────── */
.tab-btn {
  transition: background var(--transition-smooth), color var(--transition-smooth), transform var(--transition-smooth);
}

.tab-btn:hover:not(.active) {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: rgba(249, 115, 22, .14);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* ── Advanced accordion ───────────────────────────────────────────────────── */
.advanced-toggle-btn.open {
  background: rgba(249, 115, 22, .05);
}

/* ── Result card — simple fade in ────────────────────────────────────────── */
.result-card.visible {
  animation: successPop .3s ease;
}

.btn-result-action {
  transition: all var(--transition-smooth);
}

.btn-result-action:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ── Share buttons — gentle lift ─────────────────────────────────────────── */
.share-btn {
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: .9;
  text-decoration: none;
}

/* ── Feature cards — clean elevation ─────────────────────────────────────── */
.feature-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, .18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.feature-icon-wrap {
  transition: transform var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.05);
}

/* ── Recent items — horizontal slide ─────────────────────────────────────── */
.recent-item {
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.recent-item:hover {
  transform: translateX(3px);
  border-color: rgba(249, 115, 22, .22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.btn-copy-mini,
.btn-stats-mini {
  transition: all var(--transition-smooth);
}

.btn-copy-mini:hover {
  transform: translateY(-1px);
}

.btn-stats-mini:hover {
  transform: translateY(-1px);
}

/* ── QR code ──────────────────────────────────────────────────────────────── */
.qr-container img {
  border: 2px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
  transition: transform var(--transition-smooth);
}

.qr-container img:hover {
  transform: scale(1.02);
}

/* ── Footer subtle divider ────────────────────────────────────────────────── */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ── btn-home — clean elevation ───────────────────────────────────────────── */
.btn-home {
  box-shadow: 0 2px 14px rgba(249, 115, 22, .28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all var(--transition-smooth);
}

.btn-home:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, .38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

/* ── Bottom nav ───────────────────────────────────────────────────────────── */
.bnav-item {
  transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.bnav-item:hover {
  transform: translateY(-1px);
}

/* ── Scroll hint ──────────────────────────────────────────────────────────── */
.scroll-hint {
  animation: bobFloat 3s ease-in-out infinite;
}

/* ── Accessibility: respect reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}