*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3f5;
  --bg-input: #ffffff;
  --border: #dee2e6;
  --border-focus: #6366f1;
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --accent: #6366f1;
  --accent-light: #4f46e5;
  --accent-dark: #3730a3;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.04));
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(222, 226, 230, 0.8);
  padding: 0 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-icon { font-size: 26px; }

.logo-accent { color: var(--accent-light); }

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

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-container {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── URL Form ── */
.url-form {
  width: 100%;
  max-width: 720px;
  margin-bottom: 16px;
}

.url-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  transition: var(--transition);
}

.url-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.input-icon {
  color: var(--text-muted);
  font-size: 16px;
  margin-left: 12px;
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

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

.alias-input {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 160px;
  transition: var(--transition);
}

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

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

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

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

.url-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-top: 12px;
  transition: var(--transition);
}

.url-email-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.btn-shorten {
  padding: 12px 28px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.url-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
}

.copy-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  user-select: none;
}

.copy-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.url-counter {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Result Card ── */
.result-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
  animation: slideUp 0.4s ease;
}

.result-card.visible {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.result-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}

.result-body {
  padding: 20px;
}

.result-url-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  word-break: break-all;
}

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

.result-slug {
  color: var(--accent-light);
}

.result-actions {
  display: flex;
  gap: 10px;
}

.result-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Result Manage Link ── */
.result-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.01);
}

.result-manage i { color: var(--accent-light); font-size: 13px; }

.result-manage-link {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.result-manage-link:hover { color: var(--accent); text-decoration: underline; }

.result-manage-dot { color: var(--border); font-size: 8px; }

.result-manage-note { font-size: 12px; }

/* ── Result Account Prompt ── */
.result-account {
  border-top: 1px solid var(--border);
  padding: 16px 20px 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.03));
}

.result-account-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-account-inner > i {
  color: var(--accent-light);
  font-size: 14px;
}

.result-account-inner > .result-account-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.result-account-input {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 160px;
  min-width: 0;
  flex: 1;
  max-width: 200px;
  transition: var(--transition);
}

.result-account-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.result-account-input::placeholder { color: var(--text-muted); }

.result-account-note {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.result-account-success {
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

.result-account-success i { margin-right: 6px; }

/* ── Hero Marquee ── */
.hero-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(222, 226, 230, 0.8);
  border-bottom: 1px solid rgba(222, 226, 230, 0.8);
  background: rgba(248, 249, 250, 0.5);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: marquee 24s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.marquee-dot {
  color: var(--accent);
  font-size: 8px;
  opacity: 0.5;
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 60px 0;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stats-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stats-number {
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
}

.stats-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-light);
}

.stats-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.stats-container .stats-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Sections Shared ── */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Features ── */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  font-size: 20px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── How It Works ── */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 740px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  transition: var(--transition);
}

.step:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-glow);
}

.step-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  color: var(--text-muted);
  font-size: 20px;
  padding: 8px 0;
}

/* ── Pricing ── */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.03));
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 28px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
}

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

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(42, 42, 58, 0.4);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}

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

/* ── CTA ── */
.cta {
  padding: 100px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.cta-container {
  position: relative;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.cta-input {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.cta-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  justify-content: center;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 16px;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-brand-full {
  grid-column: 1 / -1;
  text-align: center;
}

.footer-brand-full .logo {
  justify-content: center;
}

.footer-brand-full .footer-desc {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand-full .footer-social {
  justify-content: center;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-icon {
  color: var(--success);
  font-size: 18px;
}

/* ── Mobile Nav ── */
.nav-links.active {
  display: flex;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.login-back-link:hover { color: var(--accent-light); }

.login-auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero-title {
    font-size: 38px;
  }

  .url-input-wrapper {
    flex-direction: column;
    padding: 12px;
  }

  .input-icon {
    display: none;
  }

  .url-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
  }

  .alias-input {
    width: 100%;
  }

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

  .url-form-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

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

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

  .stats-container {
    flex-direction: column;
    gap: 24px;
  }

  .stats-container .stats-divider {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-input {
    width: 100%;
  }

  .result-url-wrapper {
    font-size: 18px;
  }

  .result-actions {
    flex-wrap: wrap;
  }

  .result-stats {
    gap: 16px;
  }

  .result-account-input {
    max-width: none;
    flex: 1 1 100%;
  }

  .result-account-inner > .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ml-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Page Shared (Contact, etc.) ── */
.page-body {
  padding-top: 72px;
}

.page-hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}

.page-hero-container {
  position: relative;
  z-index: 1;
}

/* ── Contact Page ── */
.contact-section {
  padding: 60px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-note {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 4px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-header {
  margin-bottom: 28px;
}

.contact-form-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

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

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-note {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  grid-column: 2;
}

.contact-success.visible {
  display: flex;
}

.success-icon {
  font-size: 56px;
  color: var(--success);
  margin-bottom: 20px;
}

.contact-success h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-success p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.nav-link-active {
  color: var(--accent-light) !important;
}

/* ── FAQ ── */
.contact-faq {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.faq-question i {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 14px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

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

  .contact-success {
    grid-column: 1;
  }

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

  .contact-form {
    padding: 24px;
  }

  .ml-signedin {
    flex-wrap: wrap;
  }

  .login-card {
    padding: 32px 20px 28px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 30px;
    letter-spacing: -1px;
  }

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

  .stats-number {
    font-size: 32px;
  }

  .ml-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════
   MY LINKS — AUTH TABS & TOKEN ROW (inside login-card)
   ══════════════════════════════════════════════════ */
.ml-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
}

.ml-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.ml-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ml-tab:hover:not(.active) { color: var(--text-secondary); }

.ml-register-note {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ml-register-note i { color: var(--accent-light); font-size: 13px; flex-shrink: 0; }

.ml-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 14px;
}

.ml-divider::before,
.ml-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ml-divider span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ml-token-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  transition: var(--transition);
}

.ml-token-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.ml-token-row i {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.ml-token-row input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.ml-token-row input::placeholder { color: var(--text-muted); }

.ml-token-go {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}

.ml-token-go:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }

/* ── My Links unique components ── */
.ml-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 14px;
}

.ml-or::before,
.ml-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ml-or span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ml-token {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  transition: var(--transition);
}

.ml-token:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.ml-token i {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.ml-token input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.ml-token input::placeholder { color: var(--text-muted); }

.ml-token-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}

.ml-token-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }

.ml-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ml-note i { color: var(--accent-light); font-size: 13px; flex-shrink: 0; }

/* ── My Links Dashboard (no sidebar) ── */
.dash-main-nosidebar {
  margin-left: 0;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.ml-signedin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ml-signedin strong { color: var(--text-primary); }

.ml-signedin .btn { margin-left: auto; }

.ml-pass-form-wrap {
  margin-bottom: 24px;
  animation: fadeIn 0.2s ease;
}
.ml-pass-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.ml-pass-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.ml-pass-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.ml-pass-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.ml-pass-field { margin-bottom: 14px; }
.ml-pass-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.ml-pass-form .login-btn { width: 100%; margin-top: 4px; }
.ml-pass-success {
  font-size: 13px;
  color: var(--success);
  margin-top: 12px;
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ml-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════
   ADMIN — LOGIN SCREEN
   ══════════════════════════════════════════════════ */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168,85,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236,72,153,0.04) 0%, transparent 50%);
  animation: loginBg 24s ease-in-out infinite alternate;
}

@keyframes loginBg {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, -1%) rotate(4deg); }
}

.login-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(99,102,241,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(168,85,247,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(99,102,241,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(236,72,153,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(168,85,247,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 50%, rgba(99,102,241,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 40%, rgba(236,72,153,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 90%, rgba(168,85,247,0.25) 0%, transparent 100%);
  animation: loginParticles 16s ease-in-out infinite alternate;
}

@keyframes loginParticles {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px 36px;
  width: 110%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}

.login-card-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
  pointer-events: none;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.login-brand-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 16px;
  font-size: 26px;
  box-shadow: 0 8px 32px rgba(99,102,241,0.3);
}

.login-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
}

.login-brand-name span { color: var(--accent-light); }

.login-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.3px;
}

.login-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  transition: var(--transition);
}

.login-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.login-input-wrap i {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.login-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.login-pass-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}

.login-pass-toggle:hover { color: var(--text-primary); }

.login-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.4);
}

.login-btn:active { transform: translateY(0); }

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

.login-btn .login-spinner { display: none; }

.login-btn.loading .login-btn-text,
.login-btn.loading .fa-arrow-right { visibility: hidden; }

.login-btn.loading .login-spinner { display: flex; position: absolute; }

.login-btn.shake { animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.login-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
  display: none;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   ADMIN — DASHBOARD HEADER
   ══════════════════════════════════════════════════ */
.dash-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.dash-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.dash-header-left { display: flex; align-items: center; gap: 16px; }

.dash-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.dash-page-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-header-right { display: flex; align-items: center; gap: 8px; }

.dash-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.dash-sidebar-toggle:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.dash-logo-icon { font-size: 22px; }

.dash-logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.dash-logo-text span { color: var(--accent-light); }

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

.dash-header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
  text-decoration: none;
}

.dash-header-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.dash-header .theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text-secondary);
  font-size: 15px;
}

.dash-header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.dash-user-badge { display: flex; }

.dash-user-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.dash-logout-btn {
  color: var(--text-muted) !important;
}

.dash-logout-btn:hover { color: #ef4444 !important; background: rgba(239,68,68,0.1) !important; }

/* ══════════════════════════════════════════════════
   ADMIN — DASHBOARD LAYOUT
   ══════════════════════════════════════════════════ */
.dash-layout {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
}

/* ── Sidebar ── */
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  bottom: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 900;
  transition: transform 0.25s ease;
}

.dash-sidebar-nav { padding: 12px 8px; flex: 1; overflow-y: auto; }

.dash-sidebar-label {
  padding: 16px 20px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 2px 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
}

.dash-sidebar-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.dash-sidebar-item.active {
  color: var(--accent-light);
  background: rgba(99,102,241,0.10);
  font-weight: 600;
}

.dash-sidebar-icon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.dash-sidebar-text { flex: 1; }

.dash-sidebar-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.dash-sidebar-item.active .dash-sidebar-badge {
  color: var(--accent-light);
  background: rgba(99,102,241,0.15);
}

.dash-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.dash-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-sidebar-user .dash-user-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 8px;
}

.dash-sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-sidebar-user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
}

/* ── Main Content ── */
.dash-main {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  max-width: calc(1600px - 240px);
  min-height: calc(100vh - 60px);
}

/* ══════════════════════════════════════════════════
   ADMIN — COMMON COMPONENTS
   ══════════════════════════════════════════════════ */

/* ── View Header ── */
.dash-view { display: none; }
.dash-view.active { display: block; animation: dashFadeIn 0.3s ease; }

@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

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

.dash-page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.dash-page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Buttons ── */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.dash-btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.dash-btn-icon:hover { color: var(--accent-light); border-color: rgba(99,102,241,0.3); }

.dash-btn-icon:active i { transform: rotate(180deg); }

.dash-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.dash-btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.dash-btn-xs {
  padding: 6px 12px;
  font-size: 12px;
}

.dash-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  box-shadow: none;
  min-width: 100px;
  justify-content: center;
}

.dash-btn-danger:hover { box-shadow: 0 4px 20px rgba(239,68,68,0.35); transform: translateY(-1px); }

/* ── Search ── */
.dash-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  transition: var(--transition);
  width: 220px;
}

.dash-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); }

.dash-search i { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }

.dash-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.dash-search input::placeholder { color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   ADMIN — STATS CARDS (DASHBOARD VIEW)
   ══════════════════════════════════════════════════ */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.dash-stat-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.dash-stat-bg {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.dash-stat-card:nth-child(1) .dash-stat-bg { background: #22c55e; }
.dash-stat-card:nth-child(2) .dash-stat-bg { background: #818cf8; }
.dash-stat-card:nth-child(3) .dash-stat-bg { background: #fb923c; }
.dash-stat-card:nth-child(4) .dash-stat-bg { background: #22d3ee; }

.dash-stat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
}

.dash-stat-icon-box.green { background: rgba(34,197,94,0.12); color: #22c55e; }
.dash-stat-icon-box.purple { background: rgba(99,102,241,0.12); color: #818cf8; }
.dash-stat-icon-box.orange { background: rgba(251,146,60,0.12); color: #fb923c; }
.dash-stat-icon-box.cyan { background: rgba(34,211,238,0.12); color: #22d3ee; }

.dash-stat-info { flex: 1; min-width: 0; }

.dash-stat-value {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.dash-stat-trend {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dash-stat-trend.up { color: #22c55e; }
.dash-stat-trend.down { color: #ef4444; }

.dash-stat-trend i { font-size: 10px; }

/* ══════════════════════════════════════════════════
   ADMIN — PANELS (DASHBOARD VIEW)
   ══════════════════════════════════════════════════ */
.dash-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.dash-panel:hover { border-color: rgba(99,102,241,0.15); }

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.dash-panel-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-panel-title i { font-size: 13px; color: var(--accent-light); }

.dash-panel-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-panel-body { padding: 4px 0; }

.dash-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.dash-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.dash-panel-empty i { font-size: 28px; margin-bottom: 12px; opacity: 0.35; }

.dash-panel-empty p { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }

.dash-panel-empty span { font-size: 12px; }

/* ── Recent Links in Panel ── */
.dash-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(42,42,58,0.3);
  transition: background 0.15s;
}

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

.dash-panel-item:hover { background: rgba(99,102,241,0.03); }

.dash-panel-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.08);
  border-radius: 8px;
  font-size: 13px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.dash-panel-item-info { flex: 1; min-width: 0; }

.dash-panel-item-slug {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  display: block;
}

.dash-panel-item-url {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.dash-panel-item-right {
  text-align: right;
  flex-shrink: 0;
}

.dash-panel-item-clicks {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.dash-panel-item-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   ADMIN — CARD / TABLE
   ══════════════════════════════════════════════════ */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.dash-card:hover { border-color: rgba(99,102,241,0.12); }

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.dash-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-card-title {
  font-size: 14px;
  font-weight: 700;
}

.dash-card-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(99,102,241,0.10);
  padding: 2px 10px;
  border-radius: 20px;
}

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

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

.dash-table thead { background: rgba(255,255,255,0.015); }

.dash-table th {
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
  user-select: none;
}

.dash-table td {
  padding: 13px 24px;
  border-bottom: 1px solid rgba(42,42,58,0.3);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background 0.15s;
}

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

.dash-table tbody tr:hover td { background: rgba(99,102,241,0.03); }

.col-center { text-align: center !important; }

.col-actions { text-align: right !important; width: 100px; white-space: nowrap; }

.dash-slug {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-light);
  font-size: 13px;
  letter-spacing: -0.2px;
}

.dash-url {
  display: block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 12px;
}

.dash-click-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(99,102,241,0.08);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
}

.dash-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.dash-email {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.dash-email:hover { text-decoration: underline; }

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.dash-status.active {
  background: rgba(34,197,94,0.10);
  color: #22c55e;
}

.dash-status.disabled {
  background: rgba(239,68,68,0.10);
  color: #ef4444;
}

.dash-action.toggle:hover { color: var(--accent-light); background: rgba(99,102,241,0.10); }
.dash-action.reset-pass:hover { color: #fb923c; background: rgba(251,146,60,0.10); }

.dash-subject { font-weight: 500; color: var(--text-primary); font-size: 13px; }

.dash-msg {
  display: block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  color: var(--text-muted);
}

.dash-action:hover { background: rgba(255,255,255,0.04); }

.dash-action.copy:hover { color: var(--accent-light); background: rgba(99,102,241,0.10); }
.dash-action.delete:hover { color: #ef4444; background: rgba(239,68,68,0.10); }

.dash-table-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Empty state ── */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px;
  color: var(--text-muted);
}

.dash-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.dash-empty-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }

.dash-empty-desc { font-size: 13px; }

/* ── Textarea ── */
.dash-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: var(--transition);
  line-height: 1.6;
}
.dash-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); }

.dash-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.dash-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); }

/* ══════════════════════════════════════════════════
   ADMIN — TOAST
   ══════════════════════════════════════════════════ */
.dash-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  pointer-events: none;
}

.dash-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dash-toast i { color: #22c55e; font-size: 16px; }

.dash-toast-msg { color: var(--text-primary); }

/* ══════════════════════════════════════════════════
   ADMIN — MODAL
   ══════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  padding: 24px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 14px;
  font-size: 22px;
  color: #ef4444;
  background: rgba(239,68,68,0.10);
}

.modal-icon-wrap.info { color: var(--accent); background: rgba(99,102,241,0.10); }

.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.modal-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

.modal-actions { display: flex; gap: 10px; justify-content: center; }

.modal-actions .dash-btn { min-width: 90px; justify-content: center; padding: 10px 16px; }

.modal-actions .dash-btn-ghost { border: 1.5px solid var(--border); }

.modal-actions .dash-btn-ghost:hover { border-color: rgba(255,255,255,0.1); }

/* ══════════════════════════════════════════════════
   ADMIN — RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .dash-main { padding: 24px 20px; }
  .dash-view-header { flex-direction: column; }
  .dash-view-header-actions { width: 100%; }
  .dash-search { width: 100%; }
  .dash-page-title { font-size: 22px; }
}

@media (max-width: 768px) {
  .dash-header-center { display: none; }

  .dash-sidebar-toggle { display: flex; }

  .dash-sidebar {
    transform: translateX(-100%);
  }

  .dash-sidebar.open { transform: translateX(0); }

  .dash-overlay.open { display: block; }

  .dash-main { margin-left: 0; }

  .dash-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .login-card { padding: 32px 20px 28px; }
  .dash-main { padding: 20px 14px; }
  .dash-table th, .dash-table td { padding: 10px 14px; }
  .dash-card-header { padding: 14px 16px; }
}

/* ── Settings ── */
.dash-card-body { padding: 20px; }
.dash-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.dash-setting-row + .dash-setting-row { border-top: 1px solid var(--border); }
.dash-setting-info { display: flex; flex-direction: column; gap: 4px; }
.dash-setting-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.dash-setting-desc { font-size: 12px; color: var(--text-muted); }

.dash-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.dash-toggle input { opacity: 0; width: 0; height: 0; }
.dash-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}
.dash-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.dash-toggle input:checked + .dash-toggle-slider {
  background: rgba(99,102,241,0.2);
  border-color: var(--accent);
}
.dash-toggle input:checked + .dash-toggle-slider::before {
  background: var(--accent);
  transform: translateX(20px);
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--gradient-subtle);
}

/* ── Dark Mode ── */
.dark {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222230;
  --bg-input: #14141e;
  --border: #2a2a3a;
  --border-focus: #6366f1;
  --text-primary: #f1f1f7;
  --text-secondary: #9494a8;
  --text-muted: #6b6b80;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.10));
}

.dark .navbar {
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

@media (max-width: 768px) {
  .dark .nav-links {
    background: rgba(10, 10, 15, 0.98);
  }
}

.dark .hero-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
}

.dark .login-card {
  background: var(--bg-card);
  border-color: var(--border);
}

.dark .dash-header {
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

.dark .dash-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.dark .dash-sidebar-item:hover {
  background: var(--bg-card-hover);
}

.dark .dash-sidebar-item.active {
  background: rgba(99, 102, 241, 0.08);
}

.dark .dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .dash-table thead {
  background: var(--bg-secondary);
}

.dark .dash-table th {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.dark .dash-table td {
  border-bottom: 1px solid var(--border);
}

.dark .dash-table tbody tr:hover {
  background: var(--bg-secondary);
}

.dark .dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .dash-panel-item {
  border-bottom: 1px solid var(--border);
}

.dark .dash-panel-item:hover {
  background: var(--bg-secondary);
}

.dark .dash-setting-row {
  border-bottom: 1px solid var(--border);
}

.dark .modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

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

.dark .footer {
  background: rgba(10, 10, 15, 0.85);
  border-top: 1px solid rgba(42, 42, 58, 0.5);
}

.dark .footer-bottom {
  border-top: 1px solid rgba(42, 42, 58, 0.5);
}

.dark .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .faq-item:hover {
  border-color: var(--border);
}

.dark .hero-marquee {
  border-top: 1px solid rgba(42, 42, 58, 0.4);
  border-bottom: 1px solid rgba(42, 42, 58, 0.4);
}

.dark .stats-bar {
  background: transparent;
}

.dark .how-it-works {
  background: var(--bg-secondary);
}

.dark .features {
  background: var(--bg-primary);
}

.dark .pricing {
  background: var(--bg-secondary);
}

.dark .pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .pricing-featured {
  border-color: var(--accent);
}

.dark .cta {
  background: var(--bg-secondary);
}

.dark .dash-empty {
  background: var(--bg-secondary);
}

.dark .dash-slug {
  color: var(--accent-dark);
}

.dark .dash-url {
  color: var(--text-secondary);
}

.dark .ml-pass-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .login-error {
  color: #dc2626;
}

.dark .dash-toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dark .feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.dark .step {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dark .step-number {
  color: var(--accent-dark);
}

.dark .pricing-card:hover {
  border-color: var(--accent);
}

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

.dark .login-bg {
  opacity: 0.3;
}
