*,
*::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: #C1272D;
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --accent: #C1272D;
  --accent-light: #9E1F24;
  --accent-dark: #006233;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --gradient: #C1272D;
  --gradient-subtle: rgba(193, 39, 45, 0.08);
  --success: #006233;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px rgba(193, 39, 45, 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;
  justify-content: 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: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(193, 39, 45, 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(193, 39, 45, 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; }
.logo-light { display: block !important; }
.logo-dark { display: none !important; }
.dark .logo-light { display: none !important; }
.dark .logo-dark { display: block !important; }
.dash-logo-light { display: block !important; }
.dash-logo-dark { display: none !important; }
.dark .dash-logo-light { display: none !important; }
.dark .dash-logo-dark { display: block !important; }

.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: none;
  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(193, 39, 45, 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: none; color: #C1272D; -webkit-text-fill-color: #C1272D; }

.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(193, 39, 45, 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(193, 39, 45, 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-actions-row {
  flex-wrap: nowrap;
  gap: 8px;
}
@media (max-width: 520px) {
  .result-actions-row { flex-wrap: wrap; }
  .result-actions-row .btn { flex: 1 1 40%; justify-content: center; }
}

.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: rgba(193, 39, 45, 0.08);
}

.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(193, 39, 45,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-premium { color: var(--accent-light); font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.marquee-premium:hover { color: var(--accent); transform: translateY(-1px); }
.marquee-price { font-size: 10px; background: rgba(193,39,45,0.10); color: var(--accent-light); padding: 2px 7px; border-radius: 20px; border: 1px solid rgba(193,39,45,0.18); font-weight: 700; }
.marquee-premium.sold { opacity: 0.5; pointer-events: none; }
.marquee-premium.sold .marquee-price { background: var(--bg-secondary); color: var(--text-muted); border-color: var(--border); }

.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: none; color: #C1272D;
  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(193, 39, 45, 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(193, 39, 45, 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(193, 39, 45, 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(193, 39, 45, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-featured {
  border-color: var(--accent);
  background: rgba(193, 39, 45, 0.08);
}

.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: none;
  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(193, 39, 45, 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-muted);
  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: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }

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

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

  .stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 24px;
    text-align: center;
  }

  .stats-container .stats-divider {
    display: none;
  }

  .stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .stats-number {
    font-size: 30px;
  }

  .stats-suffix {
    font-size: 18px;
  }

  .stats-label {
    margin-left: 0;
    font-size: 12px;
  }

  .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: 24px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.contact-grid--no-info {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
}

.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(193, 39, 45, 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(193, 39, 45, 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);
  text-align: center;
}

.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: 1 / -1;
}

.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(193, 39, 45, 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(193, 39, 45,0.06);
  border: 1px solid rgba(193, 39, 45,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(193, 39, 45,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(193, 39, 45,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(193, 39, 45,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(193, 39, 45,0.35); }

.ml-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(193, 39, 45,0.06);
  border: 1px solid rgba(193, 39, 45,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 {
  flex: none !important;
  width: 100%;
  max-width: 780px;
  margin: 0 auto !important;
}

.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:
    none;
  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 { display: none; }

@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: 32px 40px 24px;
  width: 100%;
  max-width: 400px;
  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: none;
  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(193, 39, 45,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(193, 39, 45,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(193, 39, 45,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 {
  border-radius: 999px;
}

.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(193, 39, 45,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(193, 39, 45,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(193, 39, 45,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: #B91C1C;
  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(193, 39, 45,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(193, 39, 45,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: #006233; }
.dash-stat-card:nth-child(2) .dash-stat-bg { background: #E14B50; }
.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: #006233; }
.dash-stat-icon-box.purple { background: rgba(193, 39, 45,0.12); color: #E14B50; }
.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: #006233; }
.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(193, 39, 45,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(193, 39, 45,0.03); }

.dash-panel-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(193, 39, 45,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(193, 39, 45,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(193, 39, 45,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(193, 39, 45,0.03); }

.col-center { text-align: center !important; }

.col-actions { text-align: right !important; width: 100px; white-space: nowrap; }
/* ── My-links compact (less row height, horizontal actions) ── */
.dash-main-nosidebar .dash-table th { padding: 10px 14px; font-size: 11px; }
.dash-main-nosidebar .dash-table td { padding: 9px 12px; }
.dash-main-nosidebar .col-actions { width: auto; white-space: nowrap; display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.dash-main-nosidebar .dash-action { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.dash-main-nosidebar .dash-url { max-width: 220px; }
/* ── Admin links compact ── */
.dash-main .dash-table th { padding: 10px 14px; font-size: 11px; }
.dash-main .dash-table td { padding: 9px 14px; }
.dash-main .col-actions { width: auto; white-space: nowrap; display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.dash-main .dash-action { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.dash-main .dash-url { max-width: 220px; }

.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(193, 39, 45,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: #006233;
}

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

.dash-action.toggle:hover { color: var(--accent-light); background: rgba(193, 39, 45,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: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  color: var(--text-secondary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
}

.dash-action:hover { transform: translateY(-1.5px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--border); background: var(--bg-card-hover); color: var(--text-primary); }
.dash-action:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

.dash-action.action-stats { color: #6366f1; background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.18); }
.dash-action.action-stats:hover { background: rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.28); color: #4f46e5; box-shadow: 0 4px 14px rgba(99,102,241,0.22); }

.dash-action.action-qr { color: #8b5cf6; background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.18); }
.dash-action.action-qr:hover { background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.28); color: #7c3aed; box-shadow: 0 4px 14px rgba(139,92,246,0.22); }

.dash-action.copy, .dash-action.action-copy { color: #059669; background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.18); }
.dash-action.copy:hover, .dash-action.action-copy:hover { background: rgba(16,185,129,0.14); border-color: rgba(16,185,129,0.28); color: #047857; box-shadow: 0 4px 14px rgba(16,185,129,0.22); }

.dash-action.action-download { color: #0ea5e9; background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.18); }
.dash-action.action-download:hover { background: rgba(14,165,233,0.14); border-color: rgba(14,165,233,0.28); color: #0284c7; box-shadow: 0 4px 14px rgba(14,165,233,0.22); }

.dash-action.delete, .dash-action.action-delete { color: #ef4444; background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.18); }
.dash-action.delete:hover, .dash-action.action-delete:hover { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.28); color: #dc2626; box-shadow: 0 4px 14px rgba(239,68,68,0.22); }

.col-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.col-actions form { display: inline-flex; }

@media (max-width: 820px) {
  .dash-action { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
}

.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(193, 39, 45,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(193, 39, 45,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: #006233; 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(193, 39, 45,0.10); }
.modal-icon-wrap.danger { color: #ef4444; background: rgba(239, 68, 68, 0.10); }
.modal-icon-wrap.warning { color: #f59e0b; background: rgba(245, 158, 11, 0.10); }
.modal-icon-wrap.success { color: #10b981; background: rgba(16, 185, 129, 0.10); }
.modal-icon-wrap.danger { color: #ef4444; background: rgba(239, 68, 68, 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; }
}

/* ── User dashboard dash-card responsive ── */
@media (max-width: 900px) {
  .dash-main-nosidebar { padding: 16px 12px !important; max-width: 100% !important; }
  .ml-signedin { flex-direction: column; align-items: stretch; gap: 12px; }
  .ml-signedin .btn { margin-left: 0; width: 100%; justify-content: center; }
  .ml-stats-grid { gap: 12px; }
  .dash-card { overflow: hidden; }
  .dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .dash-table { min-width: 560px; }
  .dash-table-wrap::-webkit-scrollbar { height: 6px; }
  .dash-table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
}

@media (max-width: 820px) {
  .dash-table thead { display: none; }
  .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
  .dash-table { min-width: 0; }
  .dash-table tr { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 10px 14px; }
  .dash-table tbody tr:hover td { background: transparent !important; }
  .dash-table td { padding: 10px 0 !important; border: none !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right !important; border-bottom: 1px solid rgba(42,42,58,0.12) !important; }
  .dash-table td:last-child { border-bottom: none !important; }
  .dash-table td::before { content: attr(data-label); font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; flex-shrink: 0; }
  .dash-table td.col-actions::before { display: none; }
  .dash-table td.col-actions { justify-content: flex-end; gap: 6px; padding-top: 12px !important; }
  .dash-table td.col-center { justify-content: space-between; }
  .dash-url { max-width: 180px; }
  .dash-empty-row td { display: block !important; border: none !important; padding: 0 !important; }
  .dash-empty-row td::before { display: none !important; }
  .dash-main-nosidebar .dash-table tr { padding: 8px 12px; margin-bottom: 8px; }
  .dash-main-nosidebar .dash-table td { padding: 6px 0 !important; }
  .dash-main-nosidebar .dash-table td.col-actions { padding-top: 8px !important; }
}

/* ── Stats Super Layout ── */
.stats-back { margin-bottom:16px; display:inline-flex; align-items:center; gap:8px; }
.stats-hero { display:flex; align-items:center; gap:16px; padding:18px 20px; background:var(--bg-card); border:1px solid var(--border); border-radius:16px; margin-bottom:18px; flex-wrap:wrap; }
.stats-hero-icon { width:52px; height:52px; border-radius:14px; background:var(--gradient); display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; flex-shrink:0; box-shadow:0 8px 24px rgba(193,39,45,0.22); }
.stats-hero-info { flex:1; min-width:200px; }
.stats-hero-slug { font-family:var(--font-mono); font-weight:800; font-size:18px; color:var(--accent-light); letter-spacing:-0.3px; }
.stats-hero-url { font-size:12px; color:var(--text-muted); word-break:break-all; margin-top:2px; display:block; }
.stats-hero-url span { color:var(--text-secondary); }
.stats-hero-meta { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; }
.stats-hero-meta span { font-size:11px; color:var(--text-muted); display:inline-flex; align-items:center; gap:6px; background:var(--bg-secondary); padding:4px 10px; border-radius:20px; border:1px solid var(--border); }
.stats-hero-actions { display:flex; gap:8px; flex-wrap:wrap; }
.stats-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.stats-kpi-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:18px; position:relative; overflow:hidden; transition:var(--transition); }
.stats-kpi-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); border-color:rgba(193,39,45,0.14); }
.stats-kpi-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.stats-kpi-icon { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:15px; }
.stats-kpi-icon.total { background:rgba(193,39,45,0.10); color:var(--accent-light); }
.stats-kpi-icon.unique { background:rgba(99,102,241,0.10); color:#6366f1; }
.stats-kpi-icon.week { background:rgba(16,185,129,0.10); color:#059669; }
.stats-kpi-icon.top { background:rgba(245,158,11,0.10); color:#d97706; }
.stats-kpi-value { font-size:26px; font-weight:900; letter-spacing:-1px; line-height:1; }
.stats-kpi-label { font-size:11px; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:0.6px; margin-top:4px; }
.stats-kpi-sub { font-size:11px; color:var(--text-muted); margin-top:6px; }
.stats-chart-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:20px; margin-bottom:18px; overflow:hidden; }
.stats-chart-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
.stats-chart-title { font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; }
.stats-chart-title i { color:var(--accent-light); }
.stats-chart-bars { display:flex; align-items:end; gap:6px; height:140px; padding:12px 0 0; border-bottom:1px solid var(--border); border-left:1px solid var(--border); padding-left:8px; }
.stats-bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; }
.stats-chart-bar { width:100%; background:linear-gradient(180deg, var(--accent-light) 0%, #9E1F24 100%); border-radius:6px 6px 0 0; min-height:3px; transition:all 0.3s; position:relative; cursor:pointer; }
.stats-chart-bar:hover { opacity:0.9; filter:brightness(1.08); }
.stats-bar-label { font-size:9px; color:var(--text-muted); white-space:nowrap; }
.stats-bar-tip { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); background:#1a1a2e; color:#fff; font-size:10px; padding:4px 6px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity 0.2s; margin-bottom:6px; }
.stats-chart-bar:hover .stats-bar-tip { opacity:1; }
.stats-breakdown-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
.stats-breakdown-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:18px; }
.stats-breakdown-title { font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.stats-breakdown-title i { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:12px; }
.stats-breakdown-title i.country { background:rgba(245,158,11,0.12); color:#d97706; }
.stats-breakdown-title i.browser { background:rgba(99,102,241,0.12); color:#6366f1; }
.stats-breakdown-title i.device { background:rgba(16,185,129,0.12); color:#059669; }
.stats-breakdown-title i.referer { background:rgba(14,165,233,0.12); color:#0ea5e9; }
.stats-progress-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.stats-progress-row:last-child { margin-bottom:0; }
.stats-progress-label { font-size:12px; font-weight:600; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stats-progress-track { flex:1; height:6px; background:var(--bg-secondary); border-radius:999px; overflow:hidden; min-width:60px; }
.stats-progress-fill { height:100%; background:var(--accent-light); border-radius:999px; transition:width 0.4s; }
.stats-progress-fill.browser { background:#6366f1; }
.stats-progress-fill.device { background:#059669; }
.stats-progress-fill.referer { background:#0ea5e9; }
.stats-progress-count { font-size:11px; font-weight:700; color:var(--text-secondary); min-width:24px; text-align:right; }
.stats-recent-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.stats-recent-head { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.stats-recent-title { font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; }
.stats-recent-table { width:100%; border-collapse:collapse; font-size:12px; }
.stats-recent-table th { padding:10px 16px; font-size:10px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; background:rgba(255,255,255,0.02); }
.stats-recent-table td { padding:10px 16px; border-bottom:1px solid rgba(42,42,58,0.10); color:var(--text-secondary); }
.stats-recent-table tbody tr:hover td { background:rgba(193,39,45,0.03); }
.stats-export-btn { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; padding:7px 14px; border-radius:999px; border:1px solid var(--border); background:var(--bg-card); color:var(--text-primary); cursor:pointer; transition:var(--transition); }
.stats-export-btn i { color:var(--accent-light); font-size:11px; transition:var(--transition); }
.stats-export-btn:hover { background:var(--accent-light); border-color:var(--accent-light); color:#fff; box-shadow:0 4px 12px rgba(193,39,45,.35); }
.stats-export-btn:hover i { color:#fff; }
.stats-pager { display:flex; align-items:center; gap:10px; margin:18px 4px 0; padding:0; font-size:12px; color:var(--text-muted); flex-wrap:wrap; }
.stats-pager-info { margin-right:auto; font-variant-numeric:tabular-nums; }
.stats-pager-info b { color:var(--text-primary); }
.stats-pager-per { font-weight:600; }
.stats-pager-select { font-size:12px; font-weight:600; padding:6px 12px; border-radius:999px; border:1px solid var(--border); background:var(--bg-card); color:var(--text-primary); cursor:pointer; transition:var(--transition); }
.stats-pager-select:hover, .stats-pager-select:focus { border-color:var(--accent-light); outline:none; }
.stats-pager-btn { min-width:36px; height:36px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid var(--border); background:var(--bg-card); color:var(--text-secondary); font-size:13px; font-weight:500; cursor:pointer; transition:var(--transition); font-variant-numeric:tabular-nums; }
.stats-pager-btn:hover:not(:disabled):not(.active) { background:var(--bg-secondary); border-color:var(--accent-light); color:var(--accent-light); }
.stats-pager-btn.active { background:linear-gradient(135deg, var(--accent), var(--accent-light)); border-color:transparent; color:#fff; box-shadow:0 4px 12px rgba(193,39,45,.35); }
.stats-pager-btn:disabled { opacity:.4; cursor:default; }
.pg-nav { display:flex; align-items:center; gap:4px; }
.pg-ellipsis { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; color:var(--text-muted); user-select:none; }
.pg-ellipsis svg { width:16px; height:16px; }
.stats-period { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.stats-period-btn { padding:4px 10px; border-radius:20px; border:1px solid var(--border); background:var(--bg-secondary); color:var(--text-muted); font-size:11px; font-weight:600; cursor:pointer; transition:var(--transition); }
.stats-period-btn.active { background:var(--accent-light); color:#fff; border-color:var(--accent-light); }
.stats-period-btn:hover { border-color:var(--accent-light); color:var(--accent-light); }
.stats-period-btn.active:hover { color:#fff; }
@media (max-width: 900px) { .stats-kpi-grid { grid-template-columns:repeat(2,1fr); } .stats-breakdown-grid { grid-template-columns:1fr; } .stats-hero { flex-direction:column; align-items:flex-start; } }
@media (max-width: 520px) { .stats-kpi-grid { grid-template-columns:1fr; } .stats-chart-bars { gap:3px; } }

/* Evolution quotidienne chart (gradient bars) */
.stats-chart-side { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.uts-wrap { position:relative; }
.uts-svg { width:100%; height:auto; display:block; }
.uts-grid { stroke:var(--border); stroke-width:1; }
.uts-tick { fill:var(--text-muted); font-size:9px; font-family:var(--font-sans); }
.uts-tick-x { font-size:8px; }
.ev-bar { cursor:pointer; transition:opacity .15s; }
.ev-bar:hover { opacity:.82; }
@media (max-width: 650px) { .stats-chart-side { align-items:flex-start; } }

/* ── 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(193, 39, 45,0.2);
  border-color: var(--accent);
}
.dash-toggle input:checked + .dash-toggle-slider::before {
  background: var(--accent);
  transform: translateX(20px);
}

/* ── Theme Toggle (sliding pill, like lang-toggle) ── */
.theme-toggle {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  direction: ltr;
  flex-shrink: 0;
}
.theme-toggle-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: opacity .25s ease;
}
.theme-toggle-btn:hover { opacity: .85; }
.theme-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-card-hover);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .25s ease;
}
.theme-toggle-slider--right { transform: translateX(36px); }
.theme-toggle:hover .theme-toggle-slider { box-shadow: 0 2px 8px rgba(0,0,0,.22); }

/* ── Dark Mode ── */
.dark {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222230;
  --bg-input: #14141e;
  --border: #2a2a3a;
  --border-focus: #C1272D;
  --text-primary: #f1f1f7;
  --text-secondary: #9494a8;
  --text-muted: #6b6b80;
  --accent: #C1272D;
  --accent-light: #E14B50;
  --accent-dark: #9E1F24;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(193, 39, 45, 0.15);
  --gradient-subtle: rgba(193, 39, 45, 0.08);
}

.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: none;
}

.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(193, 39, 45, 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;
}

.splash {
  position: absolute;
  left: 58%;
  right: auto;
  top: 100px;
  transform: none;
  width: 440px;
  height: 440px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
  filter: drop-shadow(0 0 30px rgba(0,166,81,0.8)) contrast(1.3);
}

.dark .splash {
  filter: drop-shadow(0 0 30px rgba(193,39,45,0.8)) contrast(1.3);
}

@media (max-width: 680px) {
  .splash {
    width: 260px;
    height: 260px;
    right: 8px;
    opacity: 0.4;
  }
}




