/*
 * smlurl Design System - Dark, Data-Driven, Modern
 *
 * Ported from the Lovable rebuild's Tailwind theme. Written as plain CSS on
 * purpose: this project builds with Laravel Mix 5 / webpack 4 and Bootstrap
 * 4, and introducing a Tailwind pipeline there would put the existing admin
 * bundle at risk. The tokens and component classes below are the same ones
 * the original design used, so the look carries over unchanged.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --background: 222 47% 11%;
  --foreground: 210 40% 98%;

  --card: 222 47% 13%;
  --card-foreground: 210 40% 98%;

  --popover: 222 47% 15%;
  --popover-foreground: 210 40% 98%;

  --primary: 25 100% 50%;
  --primary-foreground: 0 0% 100%;
  --primary-dark: 25 100% 45%;

  --secondary: 222 47% 18%;
  --secondary-foreground: 210 40% 98%;

  --muted: 222 30% 20%;
  --muted-foreground: 215 20% 65%;

  --accent: 25 100% 50%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 72% 51%;
  --destructive-foreground: 210 40% 98%;

  --success: 142 72% 50%;
  --success-foreground: 222 47% 11%;

  --warning: 38 92% 50%;
  --warning-foreground: 222 47% 11%;

  --border: 214 32% 25%;
  --input: 222 30% 18%;
  --ring: 25 100% 50%;

  --radius: 0.75rem;

  --gradient-primary: linear-gradient(135deg, hsl(25 100% 50%) 0%, hsl(35 100% 55%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(222 47% 13%) 0%, hsl(222 47% 11%) 100%);
  --gradient-card: linear-gradient(135deg, hsl(222 47% 15%) 0%, hsl(222 47% 13%) 100%);

  --shadow-glow: 0 0 40px hsl(25 100% 50% / 0.2);
  --shadow-card: 0 4px 24px hsl(222 47% 5% / 0.5);
  --shadow-elevated: 0 8px 32px hsl(222 47% 5% / 0.7);

  --sidebar-background: 222 47% 11%;
  --sidebar-accent: 222 47% 16%;
}

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

body.smlurl {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  background-image: var(--gradient-hero);
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

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

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

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

/* ------------------------------------------------------------- layout */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid hsl(var(--border));
  background: hsl(var(--sidebar-background));
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.sidebar-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

.sidebar-link.is-active {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.main {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------- cards */

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.stat-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0.375rem 0 0;
}

.text-primary { color: hsl(var(--primary)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-warning { color: hsl(var(--warning)); }
.text-success { color: hsl(var(--success)); }
.text-muted { color: hsl(var(--muted-foreground)); }

/* -------------------------------------------------------------- grid */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; }
  .main { padding: 1rem; }
}

.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ----------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn:hover { filter: brightness(1.15); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-danger {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.3);
}

.btn-sm { padding: 0.3125rem 0.625rem; font-size: 0.8125rem; }

.chip {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  transition: all 0.2s;
}

.chip:hover { filter: brightness(1.15); }

.chip.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.field { display: flex; flex-direction: column; gap: 0.375rem; }

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.input,
.select,
select.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-family: inherit;
}

.input:focus,
.select:focus {
  outline: 2px solid hsl(var(--ring) / 0.5);
  outline-offset: 1px;
}

.input::placeholder { color: hsl(var(--muted-foreground)); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.badge-primary { background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }
.badge-danger { background: hsl(var(--destructive) / 0.15); color: hsl(var(--destructive)); }
.badge-warning { background: hsl(var(--warning) / 0.15); color: hsl(var(--warning)); }
.badge-success { background: hsl(var(--success) / 0.15); color: hsl(var(--success)); }

/* --------------------------------------------------------------- tabs */

.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.5);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.4375rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.tab:hover { color: hsl(var(--foreground)); }

.tab.is-active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

/* -------------------------------------------------------------- table */

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

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

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

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  vertical-align: middle;
}

.table tbody tr:hover { background: hsl(var(--secondary) / 0.4); }
.table tbody tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------- charts */

.bars { display: flex; flex-direction: column; gap: 0.875rem; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 0.75rem; }

.bar-name {
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: hsl(var(--muted) / 0.6);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-primary);
}

.bar-value {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
  color: hsl(var(--muted-foreground));
}

.timeseries { display: flex; align-items: flex-end; gap: 3px; height: 220px; }

.timeseries-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  height: 100%;
}

.timeseries-seg { border-radius: 2px 2px 0 0; width: 100%; }
.timeseries-seg.legit { background: hsl(var(--primary)); }
.timeseries-seg.bots { background: hsl(var(--destructive) / 0.8); }

.timeseries-axis {
  display: flex;
  gap: 3px;
  margin-top: 0.5rem;
}

.timeseries-tick {
  flex: 1;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.legend { display: flex; gap: 1rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 0.375rem; }

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  text-align: center;
}

.empty-block {
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
}

/* -------------------------------------------------------------- rules */

.rule-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  overflow: hidden;
}

.rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.3);
}

.rule-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.rule-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.25rem;
  max-height: 230px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.check:hover { background: hsl(var(--secondary) / 0.6); }
.check input { accent-color: hsl(var(--primary)); }

.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--background) / 0.5);
}

.card-danger {
  border-color: hsl(var(--destructive) / 0.4);
  background: hsl(var(--destructive) / 0.05);
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--success) / 0.12);
  color: hsl(var(--success));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.notice-error {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  align-items: end;
}

.pagination { display: flex; gap: 0.25rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.375rem 0.6875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}
.pagination .active span { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.pagination .disabled span { opacity: 0.4; }

.truncate {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }

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

.animate-fade-up { animation: fadeUp 0.5s ease-out forwards; }

/* ============================================================ landing */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(20px);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.landing-nav-links a:hover { color: hsl(var(--foreground)); }

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

.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-narrow { max-width: 900px; }

.hero {
  position: relative;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

/* The warm bloom behind the headline. */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  max-width: 100vw;
  background: hsl(var(--primary) / 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head { text-align: center; max-width: 700px; margin: 0 auto 4rem; }

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.625rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; }
.feature-card p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin: 0; }

/* The shortener, front and centre in the hero. */
.shortener {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: left;
}

.shortener-row { display: flex; gap: 0.625rem; }

.shortener-row .input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  background: hsl(var(--card));
}

.shortener .btn { padding: 0.875rem 1.5rem; white-space: nowrap; }

.shortener-result {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--primary) / 0.4);
}

.shortener-result .value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: hsl(var(--primary));
}

.shortener-note {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0.75rem 0 0;
  text-align: center;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.hero-highlights span { display: inline-flex; align-items: center; gap: 0.5rem; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  border-radius: var(--radius);
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-card.is-featured {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-glow);
}

.price-name { font-size: 1.125rem; font-weight: 600; margin: 0; }

.price-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }

.price-list li {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding-left: 1.5rem;
  position: relative;
}

.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
  font-weight: 700;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 3.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.16), hsl(var(--card)) 60%);
  border: 1px solid hsl(var(--border));
}

.cta-panel h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}

.cta-panel p { color: hsl(var(--muted-foreground)); max-width: 520px; margin: 0 auto 2rem; }

.landing-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 1.5rem;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-col strong { color: hsl(var(--foreground)); font-weight: 600; margin-bottom: 0.25rem; }
.footer-col a { color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.footer-col a:hover { color: hsl(var(--foreground)); }

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.contact-grid .field-wide { grid-column: 1 / -1; }
.contact-grid textarea.input { min-height: 130px; resize: vertical; font-family: inherit; }

.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: hsl(var(--destructive) / 0.5); color: hsl(var(--destructive)); }
.toast.is-success { border-color: hsl(var(--success) / 0.5); color: hsl(var(--success)); }

@media (max-width: 640px) {
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 8rem 1.25rem 4rem; }
  .shortener-row { flex-direction: column; }
}

/* =============================================================== auth */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.auth-shell::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  max-width: 100vw;
  background: hsl(var(--primary) / 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.auth-box { position: relative; z-index: 1; width: 100%; max-width: 420px; }

.auth-head { text-align: center; margin-bottom: 2rem; }

.auth-head .brand { font-size: 1.75rem; display: inline-block; margin-bottom: 1.25rem; }

.auth-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.auth-head p { color: hsl(var(--muted-foreground)); margin: 0; font-size: 0.9375rem; }

.auth-card {
  border-radius: 1rem;
  padding: 2rem;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-card);
}

.auth-card .field + .field { margin-top: 1.25rem; }
.auth-card .btn { width: 100%; padding: 0.75rem 1rem; margin-top: 1.5rem; }

.auth-foot {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.auth-foot a { color: hsl(var(--primary)); }
.auth-foot a:hover { text-decoration: underline; }

.field-error {
  font-size: 0.8125rem;
  color: hsl(var(--destructive));
  margin-top: 0.25rem;
}

.input.is-invalid { border-color: hsl(var(--destructive)); }

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.auth-links a { color: hsl(var(--muted-foreground)); }
.auth-links a:hover { color: hsl(var(--primary)); }

/* --------------------------------------------------- dashboard extras */

.quick-create { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.quick-create .input { flex: 1; min-width: 220px; }

.recent-list { display: flex; flex-direction: column; gap: 0.5rem; }

.recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid transparent;
  transition: all 0.2s;
}

.recent-row:hover { background: hsl(var(--secondary)); border-color: hsl(var(--border)); }
.recent-row .meta { min-width: 0; }
.recent-row .dest {
  display: block;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}
