/* Premium URL Shortener - Custom Styles */
@import "./tokens.css";

:root {
  /* Overrides Bootstrap Reboot's `:root { scroll-behavior: smooth }`
     (see assets/css/dashboard.css for the full explanation) - global smooth
     scrolling fights normal wheel/trackpad input on every public-facing
     page that uses this layout (home, login, register, pricing, bio
     pages, ...), making scrolling feel stuck/jittery. */
  scroll-behavior: auto;
  --primary-color: var(--color-primary);
  --primary-strong: var(--color-primary-hover);
  --primary-weak: var(--color-primary-light);
  --secondary-color: var(--color-text-secondary);
  --success-color: var(--color-success);
  --danger-color: var(--color-danger);
  --warning-color: #ff8f00;
  --info-color: var(--color-accent);
  --light-color: var(--color-surface);
  --dark-color: #0f1111;
  --bg-color: var(--color-bg);
  --text-color: var(--color-text-primary);
  --card-bg: var(--color-surface);
  --border-color: var(--color-border);
  --shadow-soft: var(--shadow-soft);
  --home-surface-radius: var(--radius-card);
}

.dark {
  --bg-color: #0f172a;
  --text-color: #e5e7eb;
  --card-bg: #1e293b;
  --border-color: #334155;
  --secondary-color: #cbd5e1;
}

.dark body {
  background: var(--bg-color);
  color: var(--text-color);
}

.dark .navbar,
.dark footer,
.dark .hero-section,
.dark .auth-card,
.dark .dashboard-body {
  background: var(--bg-color);
}

.dark footer,
.dark footer a,
.dark .text-muted {
  color: #e3e6ed !important;
}

.dark footer a:hover {
  color: var(--primary-color) !important;
}

.dark .table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
}

.dark .modal-header,
.dark .modal-footer {
  border-color: var(--border-color);
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--text-color);
}

.site-header,
.glass-nav,
.navbar {
  background-color: var(--color-header-bg) !important;
  border-bottom: 1px solid #232F3E;
}

.site-header .nav-link,
.glass-nav .nav-link,
.navbar-nav .nav-link,
.brand-text {
  color: #FFFFFF !important;
}

.site-header .nav-link:hover,
.glass-nav .nav-link:hover,
.navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

/* Amazon CTA buttons */
.btn.primary,
.btn-primary,
.overview-submit-btn,
.shorten-form .btn.primary,
.shorten-form .btn-primary {
  background: var(--color-cta) !important;
  color: #0F1111 !important;
  border: 1px solid var(--color-cta-border) !important;
  border-radius: var(--radius-button);
  font-weight: 700;
  box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
}

.btn.primary:hover,
.btn-primary:hover,
.overview-submit-btn:hover,
.shorten-form .btn.primary:hover {
  background: var(--color-cta-hover) !important;
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Base surfaces use theme variables for light/dark */
.card,
.modal-content,
.list-group-item,
.feature-card,
.pricing-card {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  background: rgba(255, 153, 0, 0.12) !important;
  color: var(--color-primary) !important;
}

.table {
  color: var(--text-color);
  background: var(--card-bg);
}

.dark .card-header,
.dark .table thead th {
  background: #1c1f26;
  color: #e3e6ed;
  border-color: #2a2e38;
}

.dark .table tbody tr {
  background: #171a1f;
  border-color: #2a2e38;
}

.dark .table tbody tr td {
  background: #171a1f !important;
}

.dark .table tbody tr:nth-of-type(odd) td {
  background: #1b1f25 !important;
}

.dark .table-hover > tbody > tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark .table td,
.dark .table th {
  color: #e3e6ed;
}

.dark .table a {
  color: #9ec5ff;
}

.dark .table a:hover {
  color: #c7ddff;
}

.form-control,
.form-select,
.input-group-text,
textarea {
  background: var(--bg-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

.form-control:focus,
.form-select:focus {
  background: var(--bg-color);
  color: var(--text-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.15);
}

.form-control::placeholder {
  color: var(--secondary-color);
}

a {
  color: var(--primary-color);
}

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

.navbar {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.hero-section {
  background: var(--bg-color);
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-section .container {
  max-width: 960px;
}

.hero-section .lead {
  color: var(--secondary-color);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text-color) !important;
}

/* Navigation Active States */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: transparent;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  background-color: transparent;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

footer {
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn {
  border-radius: var(--radius-button);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn.primary,
.btn-primary {
  border: none;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  color: #ffffff;
  border-radius: var(--radius-button);
  transition: var(--transition-smooth);
}

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

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card {
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.blog-post {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-post h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.tags {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.blog-post .meta {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Feature grid */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border-color: rgba(26, 115, 232, 0.25);
}

.feature-meta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.feature-card h4 {
  color: var(--text-color);
  margin: 0;
}

.feature-card p {
  color: var(--secondary-color);
  margin: 0;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--primary-color);
  background: rgba(26, 115, 232, 0.08);
  width: fit-content;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 115, 232, 0.12);
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Admin navbar overrides */
.admin-wrapper .navbar {
  color: #fff;
}

.admin-wrapper .navbar .navbar-brand,
.admin-wrapper .navbar .nav-link,
.admin-wrapper .navbar .dropdown-toggle {
  color: #fff !important;
}

.admin-wrapper .navbar .nav-link:hover,
.admin-wrapper .navbar .dropdown-toggle:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.form-control {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  padding: 12px 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

.form-control::placeholder {
  color: var(--secondary-color);
}

.alert {
  border-radius: 8px;
  border: none;
  margin: 20px auto;
  max-width: 1200px;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.badge {
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Quick Shorten Form */
#quick-shorten {
  max-width: 600px;
  margin: 0 auto;
}

#quick-shorten .form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
}

#quick-shorten .form-control:focus {
  background: white;
  border-color: var(--success-color);
}

/* Dashboard Styles */
.dashboard-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.dashboard-card .card-body {
  padding: 2rem;
}

.dashboard-card h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0;
}

.dashboard-card .card-title {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Link Cards */
.link-card {
  margin-bottom: 1rem;
}

.link-card .card-header {
  background: var(--light-color);
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 1.5rem;
}

.short-url {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.short-url:hover {
  text-decoration: underline;
}

.original-url {
  color: var(--secondary-color);
  font-size: 0.9rem;
  word-break: break-all;
}

/* Bio Page Styles */
.bio-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
}

.bio-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.bio-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: 0 auto 1rem;
}

.bio-link {
  display: block;
  padding: 15px 20px;
  margin: 10px 0;
  background: white;
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.bio-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  border-color: var(--primary-color);
  text-decoration: none;
}

/* Auth Experience */
.auth-page {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0;
  min-height: calc(100vh - var(--navbar-height));
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 32%),
    linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.dark .auth-page {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1120 0%, #111827 100%);
}

.auth-page__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.8;
  pointer-events: none;
}

.auth-page__glow--one {
  width: 280px;
  height: 280px;
  top: 72px;
  left: -70px;
  background: rgba(79, 70, 229, 0.22);
}

.auth-page__glow--two {
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: 32px;
  background: rgba(14, 165, 233, 0.18);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 480px);
  gap: 32px;
  align-items: stretch;
}

.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 24px 12px 24px 0;
}

.auth-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-showcase__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--text-color);
}

.auth-showcase__copy {
  max-width: 620px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secondary-color);
}

.auth-showcase__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.auth-metric-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.dark .auth-metric-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.12);
}

.auth-metric-card__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-color);
}

.auth-metric-card__value {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--text-color);
}

.auth-proof {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.auth-proof__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.dark .auth-proof__item {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(148, 163, 184, 0.1);
}

.auth-proof__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(14, 165, 233, 0.16));
  color: var(--primary-color);
  font-size: 1.1rem;
}

.auth-proof__item h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text-color);
}

.auth-proof__item p {
  margin: 0;
  line-height: 1.65;
  color: var(--secondary-color);
}

.auth-panel {
  display: flex;
  align-items: stretch;
}

.auth-panel__inner {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.dark .auth-panel__inner {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.1);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand__logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 4px;
  object-fit: cover;
}

.auth-brand__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.auth-header {
  margin-bottom: 24px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 2vw, 2.3rem);
  line-height: 1.05;
  color: var(--text-color);
}

.auth-header p {
  margin: 0;
  line-height: 1.7;
  color: var(--secondary-color);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field .form-label {
  margin: 0;
  font-weight: 600;
  color: var(--text-color);
}

.auth-field__split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-inline-link:hover {
  text-decoration: none;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}

.auth-input-wrap .form-control {
  min-height: 58px;
  padding-left: 46px;
  border-radius: 18px;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.76);
}

.dark .auth-input-wrap .form-control {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.16);
}

.auth-input-wrap .form-control:focus {
  border-color: rgba(79, 70, 229, 0.48);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.auth-form .form-text {
  margin-top: 0;
  color: var(--secondary-color);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  min-height: 0;
}

.auth-check--stacked {
  align-items: flex-start;
}

.auth-check .form-check-input {
  float: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border-radius: 6px;
  border-color: rgba(148, 163, 184, 0.6);
}

.auth-check .form-check-label {
  color: var(--secondary-color);
  line-height: 1.55;
}

.auth-submit {
  min-height: 58px;
  margin-top: 4px;
  border-radius: 18px;
  font-weight: 700;
}

.auth-divider {
  position: relative;
  margin: 22px 0 18px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.24);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: inherit;
  color: var(--secondary-color);
}

.auth-panel__inner .auth-divider span {
  background: rgba(255, 255, 255, 0.82);
}

.dark .auth-panel__inner .auth-divider span {
  background: rgba(15, 23, 42, 0.82);
}

.auth-footer {
  display: grid;
  gap: 14px;
}

.auth-secondary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dark .auth-secondary-cta {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.12);
}

.auth-secondary-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  color: var(--text-color);
  text-decoration: none;
}

.auth-demo-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.auth-demo-note__label {
  color: var(--text-color);
  font-weight: 700;
}

/* Pricing Experience */
.pricing-page {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 40px;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.14), transparent 28%);
}

.dark .pricing-page {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.16), transparent 28%);
}

.pricing-page__glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.pricing-page__glow--one {
  top: -100px;
  left: 10%;
  background: var(--color-primary);
}

.pricing-page__glow--two {
  top: 150px;
  right: 5%;
  background: var(--color-gradient-end);
}

.pricing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
}

.pricing-hero__content {
  display: grid;
  gap: 18px;
}

.pricing-eyebrow,
.pricing-section-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-hero__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-color);
}

.pricing-hero__copy {
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--secondary-color);
}

.pricing-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-color);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.dark .pricing-pill {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.12);
}

.pricing-overview {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.dark .pricing-overview {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.1);
}

.pricing-overview__badge {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-overview h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--text-color);
}

.pricing-overview p {
  margin: 0;
  line-height: 1.7;
  color: var(--secondary-color);
}

.pricing-overview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.pricing-overview__stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dark .pricing-overview__stat {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.12);
}

.pricing-overview__stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary-color);
  font-size: 0.85rem;
}

.pricing-overview__stat strong {
  color: var(--text-color);
  font-size: 1.1rem;
}

.pricing-overview__current {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.14);
}

.pricing-overview__current-label {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary-color);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-overview__current strong {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
}

.pricing-highlight-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.pricing-highlight {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.dark .pricing-highlight {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.1);
}

.pricing-highlight__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(14, 165, 233, 0.16));
  color: var(--primary-color);
  font-size: 1.1rem;
}

.pricing-highlight h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text-color);
}

.pricing-highlight p {
  margin: 0;
  line-height: 1.7;
  color: var(--secondary-color);
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.dark .pricing-card {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.1);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.65), rgba(148, 163, 184, 0.2));
}

.pricing-card--premium::before {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.pricing-card--business::before {
  background: linear-gradient(90deg, #0f766e, #06b6d4);
}

.pricing-card--enterprise::before {
  background: linear-gradient(90deg, #0f172a, #475569);
}

.pricing-card--popular {
  border: 2px solid var(--color-primary);
  box-shadow: 0 20px 46px -18px rgba(79, 70, 229, 0.3);
  transform: translateY(-8px);
}

.pricing-card--current {
  border-color: rgba(79, 70, 229, 0.28);
}

.pricing-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pricing-card__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--text-color);
}

.pricing-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-flag--popular {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.pricing-flag--current {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.12);
}

.pricing-card__copy {
  margin: 0;
  line-height: 1.7;
  color: var(--secondary-color);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-color);
}

.pricing-card__currency {
  font-size: 1.2rem;
  font-weight: 700;
}

.pricing-card__amount {
  font-size: 2.8rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pricing-card__amount--free {
  font-size: 2.4rem;
}

.pricing-card__period {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 600;
}

.pricing-card__caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.pricing-cap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
}

.dark .pricing-cap {
  background: rgba(15, 23, 42, 0.32);
  border-color: rgba(148, 163, 184, 0.08);
}

.pricing-cap span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.pricing-cap strong {
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Pricing page polish: stable Cloudscape-style cards and capacity cells. */
.pricing-page {
  position: relative;
  overflow: visible;
  padding: 48px 0 60px !important;
  background-color: var(--color-bg) !important;
  background-image: none !important;
}

.pricing-page__glow {
  display: none !important;
}

.pricing-hero {
  max-width: 800px;
  margin: 0 auto 40px !important;
  text-align: center;
}

.pricing-hero__content {
  justify-items: center;
}

.pricing-hero__title {
  max-width: 28ch;
  margin: 12px auto !important;
  color: var(--color-text) !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.pricing-hero__copy {
  max-width: 680px;
  color: var(--color-text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.pricing-hero__pills {
  gap: 8px;
  justify-content: center;
}

.pricing-pill {
  padding: 6px 10px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  box-shadow: none;
  color: #565959;
  font-size: 0.78rem;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.pricing-card {
  gap: 16px;
  padding: 24px !important;
  overflow: visible;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  background: var(--color-surface) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.pricing-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.pricing-card--popular {
  border: 2px solid var(--color-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transform: none;
}

.pricing-card--popular:hover {
  transform: translateY(-3px) !important;
}

.pricing-card__top {
  min-height: 62px;
}

.pricing-card__eyebrow {
  margin-bottom: 6px;
  color: var(--color-text-secondary) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.05em !important;
}

.pricing-card h2 {
  margin: 4px 0 10px !important;
  color: var(--color-text) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
}

.pricing-flag {
  flex: 0 0 auto;
  max-width: 132px;
  padding: 4px 8px !important;
  overflow: hidden;
  border: 1px solid #D5D9D9;
  border-radius: 4px !important;
  background: #FFD814 !important;
  color: #0F1111 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-flag--current {
  background: #EAEDED !important;
  color: #565959 !important;
  border-color: var(--color-border) !important;
}

.pricing-card__copy {
  min-height: 48px;
  color: var(--color-text-secondary) !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

.pricing-card__price {
  gap: 2px !important;
  margin: 0;
}

.pricing-card__amount {
  color: var(--color-text) !important;
  font-size: 2.2rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.pricing-card__period {
  color: var(--color-text-secondary) !important;
  font-size: 0.85rem !important;
}

.pricing-card__caps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-width: 0;
  padding: 10px 6px !important;
  margin-bottom: 4px;
  border: 1px solid var(--color-border) !important;
  border-radius: 6px !important;
  background: var(--color-bg) !important;
}

.pricing-cap {
  display: flex !important;
  min-width: 0;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 4px 2px !important;
  border-radius: 4px !important;
  text-align: center !important;
}

.pricing-cap span,
.pricing-cap strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

.pricing-cap span {
  color: var(--color-text-secondary) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

.pricing-cap strong {
  color: var(--color-text) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.pricing-feature-list {
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.pricing-feature-list li {
  gap: 8px !important;
  color: var(--color-text) !important;
  font-size: 0.84rem !important;
}

.pricing-feature-list i,
.pricing-feature-list__icon {
  color: var(--color-success) !important;
}

.pricing-card__footer {
  gap: 8px !important;
}

.pricing-card__footer .btn-primary {
  background: #FFD814 !important;
  background-image: none !important;
  border: 1px solid #FCD200 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #0F1111 !important;
  font-weight: 700 !important;
}

.pricing-card__footer .btn-primary:hover {
  background: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.pricing-card__note {
  margin: 0 !important;
  color: var(--color-text-secondary) !important;
  font-size: 0.75rem !important;
}

@media (max-width: 1199.98px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .pricing-hero__title {
    font-size: 1.9rem !important;
  }
}

.pricing-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pricing-feature-list__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card__footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.pricing-form {
  width: 100%;
}

.pricing-action {
  min-height: 56px;
  border-radius: 18px;
  font-weight: 700;
}

.pricing-card__note {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.93rem;
  line-height: 1.6;
}

.pricing-enterprise {
  padding: 18px 0 32px;
}

.pricing-enterprise__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.08));
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.dark .pricing-enterprise__card {
  border-color: rgba(148, 163, 184, 0.1);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(14, 165, 233, 0.1));
}

.pricing-enterprise__content h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  color: var(--text-color);
}

.pricing-enterprise__content p {
  margin: 0;
  max-width: 760px;
  line-height: 1.75;
  color: var(--secondary-color);
}

.pricing-enterprise__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-faq {
  padding: 24px 0 88px;
}

.pricing-section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text-color);
}

.pricing-section-heading p {
  margin: 0;
  max-width: 620px;
  line-height: 1.75;
  color: var(--secondary-color);
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-faq-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.dark .pricing-faq-card {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.1);
}

.pricing-faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text-color);
}

.pricing-faq-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--secondary-color);
}

@media (max-width: 1199.98px) {
  .pricing-hero {
    grid-template-columns: 1fr;
  }

  .pricing-hero__title {
    max-width: 14ch;
  }

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

  .pricing-card--popular {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .pricing-highlight-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .pricing-page {
    padding-top: 44px;
  }

  .pricing-hero__title {
    max-width: none;
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .pricing-overview,
  .pricing-card,
  .pricing-enterprise__card,
  .pricing-faq-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

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

  .pricing-enterprise__actions {
    flex-direction: column;
  }

  .pricing-enterprise__actions .pricing-action {
    width: 100%;
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  #quick-shorten {
    flex-direction: column;
  }

  #quick-shorten .btn {
    margin-top: 1rem;
  }

  .bio-card {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .auth-showcase {
    padding: 0;
  }

  .auth-showcase__title {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .auth-showcase__metrics,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel__inner {
    max-width: none;
    margin-left: 0;
    padding: 24px 20px;
    border-radius: 24px;
  }
}

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    padding-right: 0;
  }

  .auth-panel__inner {
    max-width: none;
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .auth-panel__inner {
    min-height: 100%;
  }
}

/* Enhanced Responsive Design */

/* Mobile-first approach - Base styles for all devices */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero section mobile */
  .hero-section {
    min-height: 40vh;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-section p {
    font-size: 1rem;
  }

  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Cards mobile */
  .card {
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  .card-body {
    padding: 1rem;
  }

  /* Forms mobile */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Dashboard mobile */
  .dashboard-card h3 {
    font-size: 2rem;
  }

  .dashboard-card .card-body {
    padding: 1.5rem;
  }

  /* Tables mobile */
  .table-responsive {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    white-space: nowrap;
  }

  /* Bio page mobile */
  .bio-card {
    margin: 0 0.5rem;
    padding: 1rem;
    border-radius: 15px;
  }

  .bio-avatar {
    width: 80px;
    height: 80px;
  }

  .bio-link {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  /* Quick shorten mobile */
  #quick-shorten .input-group {
    flex-direction: column;
  }

  #quick-shorten .form-control {
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
  }

  #quick-shorten .btn {
    border-radius: 8px !important;
    width: 100%;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }

  .btn {
    width: auto;
    display: inline-block;
  }

  .dashboard-card h3 {
    font-size: 2.25rem;
  }

  .bio-avatar {
    width: 100px;
    height: 100px;
  }

  #quick-shorten .input-group {
    flex-direction: row;
  }

  #quick-shorten .form-control {
    margin-bottom: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  #quick-shorten .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    width: auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 55vh;
  }

  .hero-section h1 {
    font-size: 2.75rem;
  }

  .container {
    max-width: 720px;
  }

  /* Two-column layout for dashboard cards */
  .dashboard-card {
    margin-bottom: 1rem;
  }

  /* Optimize bio page for tablets */
  .bio-card {
    max-width: 400px;
    padding: 2rem;
  }

  .bio-avatar {
    width: 110px;
    height: 110px;
  }

  /* Table improvements */
  .table th,
  .table td {
    padding: 0.75rem;
  }

  /* Form improvements */
  .form-control {
    padding: 0.75rem 1rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 60vh;
  }

  .hero-section h1 {
    font-size: 3.25rem;
  }

  .container {
    max-width: 960px;
  }

  /* Enhanced hover effects for desktop */
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .bio-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  }

  /* Dashboard optimizations */
  .dashboard-card .card-body {
    padding: 2.5rem;
  }

  .dashboard-card h3 {
    font-size: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-section h1 {
    font-size: 3.75rem;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  .container {
    max-width: 1140px;
  }

  /* Enhanced spacing */
  .card-body {
    padding: 2rem;
  }

  .bio-card {
    max-width: 500px;
    padding: 3rem;
  }

  .bio-avatar {
    width: 140px;
    height: 140px;
  }

  .bio-link {
    padding: 18px 25px;
    margin: 12px 0;
  }

  /* Enhanced dashboard */
  .dashboard-card h3 {
    font-size: 3.5rem;
  }
}

/* iPad specific optimizations */
@media (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  /* Portrait iPad */
  @media (orientation: portrait) {
    .hero-section {
      min-height: 50vh;
    }

    .hero-section h1 {
      font-size: 2.5rem;
    }

    .navbar-collapse {
      justify-content: center;
    }

    .bio-card {
      max-width: 450px;
    }

    /* Touch-friendly buttons */
    .btn {
      padding: 0.75rem 1.5rem;
      font-size: 1.1rem;
    }

    .bio-link {
      padding: 16px 20px;
      margin: 12px 0;
      font-size: 1rem;
    }
  }

  /* Landscape iPad */
  @media (orientation: landscape) {
    .hero-section {
      min-height: 60vh;
    }

    .hero-section h1 {
      font-size: 3rem;
    }

    .dashboard-card {
      height: 100%;
    }

    /* Multi-column layout for bio links */
    .bio-links {
      columns: 2;
      column-gap: 1rem;
    }

    .bio-link {
      break-inside: avoid;
      margin-bottom: 1rem;
    }
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .bio-avatar {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .card {
    border: 0.5px solid rgba(0, 0, 0, 0.1);
  }
}

/* Accessibility improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    padding: 1rem;
  }

  .bio-link {
    min-height: 44px;
    padding: 15px 20px;
  }

  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .alert,
  footer {
    display: none !important;
  }

  .hero-section {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .bio-page {
    background: white !important;
  }

  .bio-card {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .card {
    background-color: #2d3748;
    color: white;
  }

  .table {
    color: white;
  }

  .form-control {
    background-color: #4a5568;
    color: white;
    border-color: #2d3748;
  }
}

/* Dashboard Layout Styles */
.dashboard-body {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.dark .dashboard-body {
  background-color: #0f1115;
}

.dashboard-container {
  min-height: calc(100vh - 60px); /* Account for footer */
  position: relative;
}

.dashboard-main {
  margin-left: 250px; /* Width of sidebar */
  padding: 1rem 2rem;
  min-height: calc(100vh - 120px);
  width: calc(100% - 250px);
}

.dark #sidebar {
  background: #1a1d24 !important;
  border-right: 1px solid #2a2e38;
}

.dark #sidebar .nav-link {
  color: #e3e6ed;
}

.dark #sidebar .nav-link.active,
.dark #sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.dark #sidebar .sidebar-header {
  border-bottom: 1px solid #2a2e38;
}

.dark #sidebar .nav-link.text-danger {
  color: #f28b82;
}

.dark .dashboard-main {
  background: var(--bg-color);
}

.dark .footer,
.dark .footer a,
.dark .footer .text-muted {
  background: #0f1115;
  color: #e3e6ed !important;
}

.dark .footer a:hover {
  color: var(--primary-color) !important;
}

.dashboard-footer-content {
  margin-left: 250px; /* Width of sidebar */
  padding: 0 2rem;
}

/* Mobile dashboard adjustments */
@media (max-width: 767.98px) {
  .dashboard-main {
    margin-left: 0;
    padding: 1rem;
    width: 100%;
    padding-top: 1rem;
  }

  .dashboard-footer-content {
    margin-left: 0;
    padding: 0 1rem;
  }

  .dashboard-container {
    padding-top: 0;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .dashboard-main {
    margin-left: 200px; /* Smaller sidebar width for tablets */
    width: calc(100% - 200px);
  }

  .dashboard-footer-content {
    margin-left: 200px;
  }
}

/* Footer positioning for dashboard */
.footer {
  margin-top: auto;
}

/* Bio Page Dashboard Styles */
.bio-preview {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
}

.bio-preview .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #6c757d;
}

.bio-preview h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bio-preview .text-muted {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.bio-preview .btn {
  margin: 0.25rem 0;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.bio-preview .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Bio Link Cards */
.bio-link-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: move;
  user-select: none;
}

.bio-link-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.bio-link-card .drag-handle {
  cursor: grab !important;
  opacity: 0.6;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-size: 1.2rem !important;
  padding: 0.25rem;
  border-radius: 4px;
}

.bio-link-card .drag-handle:hover {
  opacity: 1;
  color: #007bff !important;
  background-color: rgba(0, 123, 255, 0.1);
  transform: scale(1.1);
}

.bio-link-card .drag-handle:active {
  cursor: grabbing !important;
  transform: scale(1.05);
}

.bio-link-card.sortable-chosen {
  opacity: 0.8;
  transform: scale(1.02);
  z-index: 1000;
}

.bio-link-card.sortable-ghost {
  opacity: 0.3;
  background: #f8f9fa !important;
  border: 2px dashed #007bff !important;
}

.sortable-list {
  min-height: 50px;
}

.sortable-list .bio-link-card {
  margin-bottom: 1rem;
}

/* Drag and Drop Styles */
.sortable-ghost {
  opacity: 0.4 !important;
  background: #e9ecef !important;
  border: 2px dashed #007bff !important;
}

.sortable-chosen {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transform: rotate(2deg) !important;
  z-index: 1000;
}

.sortable-drag {
  opacity: 1 !important;
  transform: rotate(2deg) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Fix for nested buttons in sortable items */
.bio-link-card .btn-group {
  pointer-events: auto;
}

.bio-link-card .btn-group .btn {
  pointer-events: auto;
}

/* --- New Homepage + Global Enhancements --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(16px);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.dark .glass-nav {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #a5b4fc, #4f46e5);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
}

.brand {
  gap: 8px;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.glass-nav .nav-link,
.site-header .nav-link {
  color: #FFFFFF !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px;
  padding: 6px 10px;
  transition: color 0.15s ease;
}

.glass-nav .nav-link:hover,
.site-header .nav-link:hover {
  color: #FF9900 !important;
  background: transparent !important;
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  transition: all 0.2s ease;
}

.dark .icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.icon-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.icon-btn .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 2px 0;
  border-radius: 999px;
}

.icon-btn.mobile-toggle {
  display: none;
}

.site-header .btn.ghost {
  color: #FFFFFF !important;
  background: transparent !important;
  border: 1px solid #37475A !important;
  border-radius: 9999px !important;
  padding: 6px 14px;
  font-weight: 600 !important;
}

.site-header .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #D5D9D9 !important;
  color: #FFFFFF !important;
}

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

.btn.ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Primary Action Buttons (Amazon Buy/CTA Style) */
.site-header .btn.primary,
.hero-actions .btn.primary,
.shorten-form .btn.primary,
.cta-actions .btn.primary,
.btn.primary,
.shorten-form .btn.primary,
.overview-submit-btn {
  background: #FFD814 !important;
  background-image: none !important;
  color: #0F1111 !important;
  border: 1px solid #FCD200 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.site-header .btn.primary:hover,
.hero-actions .btn.primary:hover,
.shorten-form .btn.primary:hover,
.cta-actions .btn.primary:hover,
.site-header .btn.primary:focus,
.hero-actions .btn.primary:focus,
.shorten-form .btn.primary:focus,
.cta-actions .btn.primary:focus,
.btn.primary:hover,
.btn.primary:focus,
.shorten-form .btn.primary:hover,
.shorten-form .btn.primary:focus,
.overview-submit-btn:hover,
.overview-submit-btn:focus {
  background: #F7CA00 !important;
  background-image: none !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.8) !important;
  transform: none !important;
}

.site-header .btn.primary:active,
.hero-actions .btn.primary:active,
.shorten-form .btn.primary:active,
.cta-actions .btn.primary:active,
.btn.primary:active,
.shorten-form .btn.primary:active,
.overview-submit-btn:active {
  background: #F0B800 !important;
  border-color: #008296 !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.25) !important;
}

.btn.primary.anim {
  position: relative;
  overflow: hidden;
}

.btn.primary.anim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: none !important;
}

.btn.primary.anim .btn-label,
.btn.primary.anim .btn-spinner {
  position: relative;
  z-index: 1;
}

.btn.primary.anim:hover::before {
  opacity: 0;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.loading .btn-label {
  opacity: 0;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Without this, a flex item's default min-width is its content's
     min-content size - a long unbroken URL pasted into the shorten form
     result card can force this column (and the grid track under it) wider
     than the viewport even though nothing else here needs it to. */
  min-width: 0;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  word-spacing: normal;
  margin: 0;
}

.hero-sub {
  color: var(--secondary-color);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.hero-actions {
  margin: 28px 0 20px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shorten-form {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  border-radius: var(--home-surface-radius);
  backdrop-filter: blur(6px);
}

.dark .shorten-form {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

.shorten-form .input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #D5D9D9;
  border-radius: 9999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
}

.shorten-form .input-wrap:focus-within {
  border-color: #E77600 !important;
  box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.25) !important;
}

.shorten-form input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  color: #0F1111;
}

.shorten-form .btn.primary {
  border-radius: 9999px !important;
  padding: 10px 22px !important;
  font-weight: 700;
}

.form-hint {
  margin: 8px 0 0;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.success-card {
  border: 1px solid var(--border-color);
  border-radius: var(--home-surface-radius);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  align-items: center;
}

.dark .success-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.success-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.success-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  word-break: break-all;
}

.success-link .icon-btn {
  width: 34px;
  height: 34px;
}

.success-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
}

.success-actions .divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.stat-label {
  color: var(--secondary-color);
  margin: 0;
}

.stat-value {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  filter: blur(100px);
  opacity: 0.7;
  border-radius: 50%;
}

.blob-a {
  background: rgba(147, 197, 253, 0.55);
  top: -40px;
  left: -60px;
}

.blob-b {
  background: rgba(244, 114, 182, 0.45);
  bottom: -80px;
  right: -50px;
}

.glass-card {
  position: relative;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--home-surface-radius);
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.mini-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.dark .mini-card {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
}

.mini-title {
  margin: 4px 0;
  font-weight: 700;
}

.mini-meta {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.badge.subtle {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
}

.badge.success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--card-bg);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1200px;
}

.section-sub {
  color: var(--secondary-color);
  max-width: 560px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #E77600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card__content {
  margin-top: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--secondary-color);
  line-height: 1.6;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.15);
}

.feature-icon--blue { background: rgba(0, 113, 133, 0.12); color: var(--color-link); border-color: rgba(0, 113, 133, 0.18); }
.feature-icon--purple { background: rgba(178, 86, 5, 0.1); color: var(--color-warning); border-color: rgba(178, 86, 5, 0.16); }
.feature-icon--amber { background: rgba(255, 153, 0, 0.12); color: var(--color-primary); border-color: rgba(255, 153, 0, 0.2); }
.feature-icon--cyan { background: rgba(0, 130, 150, 0.12); color: var(--color-accent); border-color: rgba(0, 130, 150, 0.2); }

.dark .feature-icon {
  background: rgba(148, 163, 184, 0.12);
}

.feature-card__preview {
  margin-top: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.feature-card__preview--link {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.28), rgba(79, 70, 229, 0.7));
}

.preview-bar--long { width: 100%; }
.preview-bar--short { width: 60%; }

.feature-card__preview--chart {
  position: relative;
  height: 72px;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 12px 8px 12px 8px;
  display: block;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.7));
  clip-path: polygon(0 72%, 18% 54%, 34% 60%, 48% 28%, 64% 42%, 80% 18%, 100% 22%, 100% 100%, 0 100%);
  border-radius: 8px;
}

.feature-card__preview--bio {
  display: grid;
  gap: 8px;
}

.bio-pill {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.2);
}

.bio-pill--sm { width: 70%; }
.bio-pill--lg { width: 90%; }

.feature-card__preview--qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
}

.qr-block {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.hero-preview-window {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.hero-preview-window__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.window-dots span:nth-child(1) { background: #f87171; }
.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #4ade80; }

.window-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.hero-preview-window__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.preview-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
}

.preview-panel--wide {
  min-height: 180px;
}

.preview-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.preview-number {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -0.06em;
}

.preview-trend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.trend-pill.success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.trend-copy {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 22px;
  height: 58px;
}

.chart-bars span {
  display: block;
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.25), rgba(79, 70, 229, 0.8));
}

.preview-stack {
  display: grid;
  gap: 14px;
}

.preview-link {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--color-link);
  word-break: break-all;
  line-height: 1.3;
  font-weight: 600;
}

.preview-panel--compact {
  min-height: 110px;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.68);
}

.preview-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.18);
}

.preview-line--short { width: 35%; }
.preview-line--mid { width: 55%; }
.preview-line--full { width: 80%; }

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

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

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

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

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

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

  .cta-metrics {
    grid-template-columns: 1fr;
  }
}

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cta-metrics {
  display: grid;
  gap: 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--home-surface-radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.metric {
  display: grid;
  gap: 4px;
}

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
}

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

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

.footer-social a {
  margin-right: 10px;
  color: var(--text-color);
}
.footer-social a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  color: #fff;
  display: none;
  z-index: 1200;
}

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

.mobile-overlay__inner {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 20px;
}

.mobile-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-nav {
  display: grid;
  gap: 12px;
}
.mobile-nav .nav-link {
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 0;
}
.mobile-nav__actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.filter-bar .form-group {
  min-width: 160px;
}
.filter-bar .form-control-sm,
.filter-bar .form-select-sm {
  min-width: 150px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero/CTA entrance states */
.shorten-form,
.cta-actions .btn {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s ease;
}

.shorten-form.visible,
.cta-actions .btn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Docs page */
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  padding: 32px 0 12px;
  align-items: center;
}

.docs-hero__text {
  display: grid;
  gap: 12px;
}
.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.docs-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.docs-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.meta-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: var(--bg-color);
  box-shadow: var(--shadow-soft);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 8px 0 56px;
}

.api-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg-color);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.api-card__header {
  display: grid;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  line-height: 1;
  width: auto;
  height: auto;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.api-card__header .pill {
  justify-self: flex-start;
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
}

.pill.success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.22);
}
.pill.info {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.2);
}
.pill.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.22);
}
.pill.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.22);
}
.pill.subtle {
  background: rgba(255, 255, 255, 0.5);
}

.code-block {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  overflow-x: auto;
}

.code-block.light {
  background: var(--card-bg);
  color: var(--text-color);
}
.code-block.dark {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

.api-table th {
  color: var(--secondary-color);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.api-table td {
  border-bottom: 1px solid var(--border-color);
}

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

.limit-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  background: var(--bg-color);
  box-shadow: var(--shadow-soft);
}

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

.sdk-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  background: var(--bg-color);
  box-shadow: var(--shadow-soft);
}

.sdk-card i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .docs-hero {
    grid-template-columns: 1fr;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@media (max-width: 991.98px) {
  .nav-links {
    display: none;
  }
  /* .nav-links normally carries margin-left:auto to push itself + nav-actions
     to the right edge; once it's hidden here, nav-actions needs that push
     itself, but only at this breakpoint - unconditionally would fight the
     desktop nav-links auto-margin and split the header's free space between
     both, opening a gap in the middle of the desktop nav. */
  .nav-actions {
    margin-left: auto;
  }
  .icon-btn.mobile-toggle {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 260px;
  }
  .input-wrap {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .nav-container {
    padding: 10px 16px;
  }
  /* The "Log in"/"Get started" buttons are duplicated inside the mobile
     overlay menu already - keeping them in the compact header row too, with
     no wrap, pushed the row (and the hamburger button with it) wider than
     narrow phone screens, causing the whole page to scroll horizontally. */
  .nav-actions .btn.ghost,
  .nav-actions .btn.primary {
    display: none;
  }
  .hero {
    padding: 72px 0 56px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-bar .form-group {
    min-width: 100%;
  }
}

/* Keep the public hero on one clean top baseline. */
.hero-grid {
  align-items: start !important;
}

.hero-visual {
  padding-top: 24px;
}

@media (max-width: 767.98px) {
  .hero-visual {
    padding-top: 0;
  }
}

/* Amazon Retail / AWS public landing shell. */
:root {
  --amz-dark-navy: #131921;
  --amz-sub-navy: #232F3E;
  --amz-accent-orange: #FF9900;
  --amz-accent-hover: #E88B00;
  --amz-btn-yellow: #FFD814;
  --amz-btn-yellow-hover: #F7CA00;
  --amz-link-blue: #007185;
  --amz-link-hover: #C7511F;
  --amz-bg-gray: #EAEDED;
  --amz-border-subtle: #D5D9D9;
  --amz-text-dark: #0F1111;
  --amz-text-muted: #565959;
}

body {
  background: var(--amz-bg-gray) !important;
  color: var(--amz-text-dark) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: none;
}

.glass-nav {
  background: var(--amz-dark-navy) !important;
  border-bottom: 1px solid #37475A !important;
  backdrop-filter: none;
}

.nav-container {
  max-width: 1440px;
  min-height: 56px;
  padding: 8px 20px !important;
}

.brand {
  gap: 8px !important;
  color: #FFFFFF !important;
}

.brand-text {
  color: #FFFFFF !important;
  font-size: 1.05rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.nav-links {
  gap: 4px;
}

.glass-nav .nav-link,
.site-header .nav-link {
  padding: 6px 10px;
  border: 1px solid transparent !important;
  border-radius: 2px;
  color: #FFFFFF !important;
  font-size: 0.86rem;
}

.glass-nav .nav-link:hover,
.site-header .nav-link:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.site-header .btn.ghost,
.site-header .btn.primary {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.site-header .btn.ghost {
  background: transparent !important;
  border: 1px solid #879596 !important;
  color: #FFFFFF !important;
}

.site-header .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #FFFFFF !important;
}

.site-header .btn.primary {
  background: var(--amz-btn-yellow) !important;
  border: 1px solid #FCD200 !important;
  color: var(--amz-text-dark) !important;
}

.site-header .btn.primary:hover {
  background: var(--amz-btn-yellow-hover) !important;
  color: var(--amz-text-dark) !important;
}

.amz-header-sub {
  background: var(--amz-sub-navy);
  border-bottom: 1px solid #37475A;
}

.amz-header-sub__inner {
  display: flex;
  gap: 4px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 20px;
}

.amz-nav-link {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #FFFFFF;
  font-size: 0.82rem;
  text-decoration: none;
}

.amz-nav-link:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.hero {
  padding: 56px 0 48px;
  background: var(--amz-sub-navy);
  color: #FFFFFF;
}

.hero-grid {
  max-width: 1200px;
  gap: 32px;
}

.hero-headline {
  max-width: 18ch;
  color: #FFFFFF !important;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  letter-spacing: 0 !important;
}

.hero-sub,
.form-hint,
.stat-label {
  color: #D5DBDB !important;
}

.shorten-form,
.success-card,
.hero-preview-window,
.preview-panel,
.cta-metrics,
.feature-card {
  background: #FFFFFF !important;
  border: 1px solid var(--amz-border-subtle) !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none;
}

.shorten-form .input-wrap {
  padding: 4px 4px 4px 12px;
  border: 1px solid #879596;
  border-radius: 4px !important;
  box-shadow: none;
}

.shorten-form .input-wrap:focus-within {
  border-color: #E77600 !important;
  box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.28) !important;
}

.shorten-form .btn.primary,
.hero-actions .btn.primary {
  padding: 9px 18px !important;
  border: 1px solid #FCD200 !important;
  border-radius: 4px !important;
  background: var(--amz-btn-yellow) !important;
  box-shadow: 0 1px 3px rgba(213, 217, 217, 0.5) !important;
  color: var(--amz-text-dark) !important;
}

.shorten-form .btn.primary:hover,
.hero-actions .btn.primary:hover {
  background: var(--amz-btn-yellow-hover) !important;
  color: var(--amz-text-dark) !important;
}

.feature-grid {
  gap: 16px;
}

.feature-card {
  padding: 20px;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--amz-accent-orange) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.feature-icon,
.feature-icon--blue,
.feature-icon--purple,
.feature-icon--amber,
.feature-icon--cyan {
  width: 44px;
  height: 44px;
  border: 1px solid var(--amz-border-subtle) !important;
  border-radius: 6px !important;
  background: #F0F2F2 !important;
  color: var(--amz-sub-navy) !important;
}

.amz-link,
.link,
.feature-card a {
  color: var(--amz-link-blue) !important;
}

.amz-link:hover,
.feature-card a:hover {
  color: var(--amz-link-hover) !important;
  text-decoration: underline;
}

.section.alt,
.cta {
  background: #FFFFFF !important;
}

.cta {
  padding: 28px;
  border: 1px solid var(--amz-border-subtle);
  border-radius: 6px;
}

.cta .btn.primary,
.btn-amz-accent {
  background: var(--amz-accent-orange) !important;
  border: 1px solid var(--amz-accent-hover) !important;
  border-radius: 4px !important;
  color: #111111 !important;
}

.cta .btn.primary:hover,
.btn-amz-accent:hover {
  background: var(--amz-accent-hover) !important;
  color: #111111 !important;
}

.site-footer {
  padding: 0;
  border-top: 0;
  background: var(--amz-sub-navy) !important;
}

.amz-footer-top {
  padding: 14px 0;
  background: #37475A;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.amz-footer-top:hover { background: #485769; }

.amz-footer-main {
  padding: 40px 0;
  background: var(--amz-sub-navy);
  color: #DDDDDD;
  font-size: 0.85rem;
}

.amz-footer-main .footer-grid { gap: 24px; }
.amz-footer-main h5,
.amz-footer-main h6 { color: #FFFFFF !important; }
.amz-footer-main a { display: block; margin-bottom: 8px; color: #DDDDDD !important; text-decoration: none; }
.amz-footer-main a:hover { color: #FFFFFF !important; text-decoration: underline; }
.amz-footer-main .footer-social a { display: inline-block; margin-right: 10px; }

.amz-footer-bottom {
  padding: 24px 16px;
  background: var(--amz-dark-navy);
  color: #999999;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 767.98px) {
  .nav-links { display: none; }
  .amz-header-sub__inner { overflow-x: auto; white-space: nowrap; }
  .shorten-form .input-wrap { align-items: stretch; flex-direction: column; gap: 8px; padding: 8px; }
  .shorten-form .btn.primary { width: 100%; }
  .cta { padding: 20px; }
}

/* Final AWS-style pricing card alignment. */
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 1.5rem !important;
  padding-top: 1.5rem !important;
  align-items: stretch !important;
}

.pricing-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  overflow: visible !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.pricing-card:hover {
  transform: none !important;
  border-color: #879596 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.pricing-card--popular {
  border: 2px solid #FF9900 !important;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.12) !important;
  transform: none !important;
}

.pricing-card--current { border: 2px solid #0073BB !important; }

.pricing-card .pricing-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 3px 12px !important;
  overflow: hidden;
  border-radius: 12px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-flag--popular { background: #FF9900 !important; color: #111827 !important; }
.pricing-flag--current { background: #0073BB !important; color: #FFFFFF !important; }

.pricing-card__top {
  display: block !important;
  min-height: 62px;
  margin-bottom: 0.75rem;
}

.pricing-card__eyebrow {
  display: block !important;
  margin-bottom: 0.25rem !important;
  color: #6B7280 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-card__top h2,
.pricing-card h2 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
}

.pricing-card__copy {
  display: -webkit-box !important;
  height: 3.95rem !important;
  min-height: 0 !important;
  margin-bottom: 1.25rem !important;
  overflow: hidden !important;
  color: #4B5563 !important;
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pricing-card__caps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.4rem !important;
  min-width: 0;
  margin-bottom: 1.25rem !important;
  padding: 0.5rem !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  background: #F8FAFC !important;
  text-align: center;
}

.pricing-cap {
  display: flex !important;
  min-width: 0;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 4px 2px !important;
}

.pricing-cap span,
.pricing-cap strong {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

.pricing-cap span { color: #64748B !important; font-size: 0.68rem !important; font-weight: 600 !important; text-transform: uppercase; }
.pricing-cap strong { color: #0F172A !important; font-size: 0.8rem !important; font-weight: 700 !important; line-height: 1.3 !important; }
.pricing-feature-list { flex-grow: 1 !important; margin-bottom: 1.5rem !important; padding-left: 0 !important; }
.pricing-card__footer { margin-top: auto !important; }

/* The Amazon-style pricing re-skin above hardcodes light colors with
   !important, so it needs its own dark-mode counterpart or the cards stay
   white (with light text on top of it) whenever dark mode is active. */
html.dark .pricing-card,
html[data-bs-theme="dark"] .pricing-card,
html[data-theme="dark"] .pricing-card {
  background: #1E293B !important;
  border-color: #334155 !important;
}

html.dark .pricing-card:hover,
html[data-bs-theme="dark"] .pricing-card:hover,
html[data-theme="dark"] .pricing-card:hover {
  border-color: #475569 !important;
}

html.dark .pricing-card__eyebrow,
html[data-bs-theme="dark"] .pricing-card__eyebrow,
html[data-theme="dark"] .pricing-card__eyebrow {
  color: #94A3B8 !important;
}

html.dark .pricing-card__top h2,
html.dark .pricing-card h2,
html[data-bs-theme="dark"] .pricing-card__top h2,
html[data-bs-theme="dark"] .pricing-card h2,
html[data-theme="dark"] .pricing-card__top h2,
html[data-theme="dark"] .pricing-card h2 {
  color: #F8FAFC !important;
}

html.dark .pricing-card__copy,
html[data-bs-theme="dark"] .pricing-card__copy,
html[data-theme="dark"] .pricing-card__copy {
  color: #CBD5E1 !important;
}

html.dark .pricing-card__amount,
html.dark .pricing-card__currency,
html.dark .pricing-card__period,
html[data-bs-theme="dark"] .pricing-card__amount,
html[data-bs-theme="dark"] .pricing-card__currency,
html[data-bs-theme="dark"] .pricing-card__period,
html[data-theme="dark"] .pricing-card__amount,
html[data-theme="dark"] .pricing-card__currency,
html[data-theme="dark"] .pricing-card__period {
  color: #F8FAFC !important;
}

html.dark .pricing-card__caps,
html[data-bs-theme="dark"] .pricing-card__caps,
html[data-theme="dark"] .pricing-card__caps {
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: #334155 !important;
}

html.dark .pricing-cap span,
html[data-bs-theme="dark"] .pricing-cap span,
html[data-theme="dark"] .pricing-cap span {
  color: #94A3B8 !important;
}

html.dark .pricing-cap strong,
html[data-bs-theme="dark"] .pricing-cap strong,
html[data-theme="dark"] .pricing-cap strong {
  color: #F8FAFC !important;
}

html.dark .pricing-feature-list li,
html[data-bs-theme="dark"] .pricing-feature-list li,
html[data-theme="dark"] .pricing-feature-list li {
  color: #E2E8F0 !important;
}

html.dark .pricing-card__note,
html[data-bs-theme="dark"] .pricing-card__note,
html[data-theme="dark"] .pricing-card__note {
  color: #94A3B8 !important;
}

@media (max-width: 1199.98px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)) !important; }
}

@media (max-width: 767.98px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .pricing-card__caps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Public dark theme surfaces for both theme-state conventions. */
html.dark,
html[data-bs-theme="dark"],
html[data-theme="dark"] {
  --amz-bg-gray: #0F172A;
  --amz-card-bg: #1E293B;
  --amz-border-subtle: #334155;
  --amz-text-dark: #F8FAFC;
  --amz-text-muted: #CBD5E1;
}

html.dark body,
html[data-bs-theme="dark"] body,
html[data-theme="dark"] body {
  background: #0F172A !important;
  color: #F8FAFC !important;
}

html.dark .shorten-form,
html.dark .success-card,
html.dark .hero-preview-window,
html.dark .preview-panel,
html.dark .cta-metrics,
html.dark .feature-card,
html[data-bs-theme="dark"] .shorten-form,
html[data-bs-theme="dark"] .success-card,
html[data-bs-theme="dark"] .hero-preview-window,
html[data-bs-theme="dark"] .preview-panel,
html[data-bs-theme="dark"] .cta-metrics,
html[data-bs-theme="dark"] .feature-card,
html[data-theme="dark"] .shorten-form,
html[data-theme="dark"] .success-card,
html[data-theme="dark"] .hero-preview-window,
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .cta-metrics,
html[data-theme="dark"] .feature-card {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

html.dark .hero,
html[data-bs-theme="dark"] .hero,
html[data-theme="dark"] .hero {
  background: #131921 !important;
}

html.dark .hero-headline,
html.dark .feature-card h3,
html.dark .cta h2,
html[data-bs-theme="dark"] .hero-headline,
html[data-bs-theme="dark"] .feature-card h3,
html[data-bs-theme="dark"] .cta h2,
html[data-theme="dark"] .hero-headline,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .cta h2 {
  color: #F8FAFC !important;
}

html.dark .hero-sub,
html.dark .section-sub,
html.dark .feature-card p,
html.dark .form-hint,
html[data-bs-theme="dark"] .hero-sub,
html[data-bs-theme="dark"] .section-sub,
html[data-bs-theme="dark"] .feature-card p,
html[data-bs-theme="dark"] .form-hint,
html[data-theme="dark"] .hero-sub,
html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .form-hint {
  color: #CBD5E1 !important;
}

html.dark .shorten-form input,
html[data-bs-theme="dark"] .shorten-form input,
html[data-theme="dark"] .shorten-form input {
  color: #0F1111;
}

html.dark .section.alt,
html[data-bs-theme="dark"] .section.alt,
html[data-theme="dark"] .section.alt {
  background: #111827 !important;
}

/* Final public contrast and form alignment fixes. */
.shorten-form .input-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  padding: 6px !important;
  border: 1px solid #879596 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.shorten-form .input-wrap input[type="url"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 0;
  outline: none;
  background: transparent;
  color: #1E293B !important;
  font-size: 1rem;
}

.shorten-form .btn.primary {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #F59E0B !important;
  color: #111827 !important;
  font-weight: 600 !important;
}

.shorten-form .btn.primary:hover {
  background: #D97706 !important;
  color: #111827 !important;
}

.section.alt {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

.section.alt .cta h2 {
  margin-bottom: 0.75rem;
  color: #0F172A !important;
  font-size: 2rem;
  font-weight: 700;
}

.section.alt .cta .section-sub {
  color: #475569 !important;
  font-size: 1.05rem;
  line-height: 1.6;
}

.section.alt .cta .eyebrow {
  color: #D97706 !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section.alt .cta-actions .btn.ghost {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #0F172A !important;
  font-weight: 500;
  text-decoration: none;
}

.section.alt .cta-actions .btn.ghost:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

.section.alt .cta-metrics {
  padding: 1.5rem;
  border-radius: 12px !important;
  background: #1E293B !important;
  color: #FFFFFF !important;
}

.section.alt .cta-metrics .stat-label {
  margin-bottom: 0.25rem;
  color: #94A3B8 !important;
  font-size: 0.875rem;
}

.section.alt .cta-metrics .stat-value {
  color: #FFFFFF !important;
  font-size: 1.5rem;
  font-weight: 700;
}

html.dark .section.alt,
html[data-bs-theme="dark"] .section.alt,
html[data-theme="dark"] .section.alt {
  background: #0F172A !important;
  color: #F8FAFC !important;
}

html.dark .section.alt .cta h2,
html[data-bs-theme="dark"] .section.alt .cta h2,
html[data-theme="dark"] .section.alt .cta h2 {
  color: #F8FAFC !important;
}

html.dark .section.alt .cta .section-sub,
html[data-bs-theme="dark"] .section.alt .cta .section-sub,
html[data-theme="dark"] .section.alt .cta .section-sub {
  color: #94A3B8 !important;
}

html.dark .section.alt .cta-actions .btn.ghost,
html[data-bs-theme="dark"] .section.alt .cta-actions .btn.ghost,
html[data-theme="dark"] .section.alt .cta-actions .btn.ghost {
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

html.dark .section.alt .cta-actions .btn.ghost:hover,
html[data-bs-theme="dark"] .section.alt .cta-actions .btn.ghost:hover,
html[data-theme="dark"] .section.alt .cta-actions .btn.ghost:hover {
  background: #1E293B !important;
  color: #F8FAFC !important;
}

/* Registration form fields use full-width, aligned password controls. */
.auth-field {
  display: flex !important;
  width: 100% !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-bottom: 16px !important;
}

.auth-field .form-label {
  margin-bottom: 2px !important;
  color: var(--color-text) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.auth-input-wrap {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
}

.auth-input-icon {
  position: absolute !important;
  z-index: 2 !important;
  left: 14px !important;
  color: #879596 !important;
  font-size: 0.9rem !important;
  pointer-events: none !important;
}

.auth-input-wrap .form-control {
  width: 100% !important;
  height: 44px !important;
  padding-right: 14px !important;
  padding-left: 42px !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 6px !important;
  background: #FFFFFF !important;
  color: #0F1111 !important;
  font-size: 0.9rem !important;
}

.auth-input-wrap .form-control:focus {
  border-color: #E77600 !important;
  box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.3) !important;
}

.auth-field .form-text {
  margin-top: 2px !important;
  color: #565959 !important;
  font-size: 0.76rem !important;
}

[data-bs-theme="dark"] .auth-input-wrap .form-control,
[data-theme="dark"] .auth-input-wrap .form-control,
html.dark .auth-input-wrap .form-control {
  border-color: #37475A !important;
  background: #161D26 !important;
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .auth-input-wrap .form-control:focus,
[data-theme="dark"] .auth-input-wrap .form-control:focus,
html.dark .auth-input-wrap .form-control:focus {
  border-color: #FF9900 !important;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.3) !important;
}

@media (max-width: 767.98px) {
  .shorten-form .input-wrap {
    align-items: stretch !important;
    flex-direction: column;
  }

  .shorten-form .input-wrap input[type="url"],
  .shorten-form .btn.primary {
    width: 100%;
  }
}

/* Align public navigation bands with the Bootstrap content container. */
.glass-nav {
  width: 100% !important;
  padding: 10px 0 !important;
  background-color: #131921 !important;
  border-bottom: 1px solid #232F3E !important;
}

.amz-header-sub {
  width: 100% !important;
  padding: 6px 0 !important;
  background-color: #232F3E !important;
  border-bottom: 1px solid #37475A !important;
}

.site-header .container,
.hero .container,
.section .container,
.pricing-page .container {
  max-width: 1320px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.site-header .nav-container,
.amz-header-sub .amz-header-sub__inner {
  padding-right: var(--bs-gutter-x, 0.75rem) !important;
  padding-left: var(--bs-gutter-x, 0.75rem) !important;
}

.amz-header-sub .amz-header-sub__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amz-nav-link {
  padding: 4px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  color: #FFFFFF !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.amz-nav-link:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Final public CTA contrast and dark-mode card tokens. */
.btn.primary,
.btn.primary.anim,
.btn-primary,
.btn-amz-primary {
  background-color: #FFD814 !important;
  border-color: #FCD200 !important;
  color: #0F1111 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.btn.primary:hover,
.btn.primary.anim:hover,
.btn-primary:hover,
.btn-amz-primary:hover {
  background-color: #F7CA00 !important;
  border-color: #F2C200 !important;
  color: #0F1111 !important;
}

.section.alt {
  padding: 48px 0 !important;
  background-color: transparent !important;
}

.section.alt .cta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  padding: 32px !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.section.alt .cta h2 {
  margin: 8px 0 12px 0 !important;
  color: #0F1111 !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
}

.section.alt .cta .section-sub {
  margin-bottom: 20px !important;
  color: #565959 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.section.alt .cta .eyebrow {
  color: #C7511F !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.section.alt .cta-actions .btn.ghost {
  margin-left: 10px !important;
  padding: 8px 18px !important;
  border: 1px solid #879596 !important;
  border-radius: 6px !important;
  background-color: transparent !important;
  color: #0F1111 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.section.alt .cta-actions .btn.ghost:hover {
  background-color: #F0F2F2 !important;
  border-color: #545B64 !important;
}

.section.alt .cta-metrics {
  display: flex !important;
  min-width: 240px !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 20px 24px !important;
  border: 1px solid #232F3E !important;
  border-radius: 6px !important;
  background-color: #131921 !important;
}

.section.alt .cta-metrics .stat-label {
  margin: 0 !important;
  color: #879596 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.section.alt .cta-metrics .stat-value {
  margin: 0 !important;
  color: #FFFFFF !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
}

[data-bs-theme="dark"] .section.alt .cta,
[data-theme="dark"] .section.alt .cta,
html.dark .section.alt .cta {
  background-color: #161D26 !important;
  border-color: #37475A !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .section.alt .cta h2,
[data-theme="dark"] .section.alt .cta h2,
html.dark .section.alt .cta h2 {
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .section.alt .cta .section-sub,
[data-theme="dark"] .section.alt .cta .section-sub,
html.dark .section.alt .cta .section-sub {
  color: #AAB7B8 !important;
}

[data-bs-theme="dark"] .section.alt .cta .eyebrow,
[data-theme="dark"] .section.alt .cta .eyebrow,
html.dark .section.alt .cta .eyebrow {
  color: #FF9900 !important;
}

[data-bs-theme="dark"] .section.alt .cta-actions .btn.ghost,
[data-theme="dark"] .section.alt .cta-actions .btn.ghost,
html.dark .section.alt .cta-actions .btn.ghost {
  border-color: #545B64 !important;
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .section.alt .cta-actions .btn.ghost:hover,
[data-theme="dark"] .section.alt .cta-actions .btn.ghost:hover,
html.dark .section.alt .cta-actions .btn.ghost:hover {
  background-color: #232F3E !important;
  border-color: #879596 !important;
}

[data-bs-theme="dark"] .section.alt .cta-metrics,
[data-theme="dark"] .section.alt .cta-metrics,
html.dark .section.alt .cta-metrics {
  background-color: #0D1217 !important;
  border-color: #232F3E !important;
}

@media (max-width: 767.98px) {
  .section.alt .cta {
    align-items: stretch !important;
    flex-direction: column;
    padding: 24px !important;
  }

  .section.alt .cta-metrics {
    min-width: 0 !important;
    width: 100%;
  }

  .section.alt .cta-actions .btn.ghost {
    margin-left: 0 !important;
  }
}

/* TinyURL-style generated-link result card. */
.tiny-result-card {
  background: #FFFFFF !important;
  border: 1px solid #D5D9D9 !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin-top: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  color: #0F1111 !important;
}

#success-card[hidden],
.tiny-result-card[hidden] {
  display: none !important;
}

.tiny-result-card:not([hidden]) {
  display: flex !important;
}

.tiny-result-head,
.tiny-result-body,
.tiny-result-foot,
.tiny-foot-left { display: flex !important; align-items: center !important; }
.tiny-result-head,
.tiny-result-body,
.tiny-result-foot { justify-content: space-between !important; }
.tiny-badge-success { display: inline-flex !important; align-items: center !important; gap: 6px !important; color: #067D62 !important; font-weight: 700 !important; font-size: .84rem !important; }
.tiny-timestamp { color: #565959 !important; font-size: .76rem !important; }
.tiny-result-body { gap: 12px !important; padding: 10px 14px !important; border: 1px solid #D5D9D9 !important; border-radius: 6px !important; background: #F7F9FA !important; }
.tiny-url-wrap { display: flex !important; flex-direction: column !important; min-width: 0 !important; }
.tiny-url-label { color: #565959 !important; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .04em !important; text-transform: uppercase !important; }
.tiny-short-link { display: block !important; max-width: 100% !important; overflow: hidden !important; color: #007185 !important; font-size: 1.15rem !important; font-weight: 800 !important; text-decoration: none !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.tiny-short-link:hover { color: #C7511F !important; text-decoration: underline !important; }
.tiny-original-link { display: block !important; max-width: 100% !important; overflow-wrap: anywhere !important; word-break: break-all !important; color: #565959 !important; font-size: .73rem !important; }
.tiny-copy-btn { flex: 0 0 auto; padding: 8px 18px !important; border: 1px solid #FCD200 !important; border-radius: 6px !important; background: #FFD814 !important; color: #0F1111 !important; font-size: .85rem !important; font-weight: 700 !important; white-space: nowrap !important; }
.tiny-copy-btn:hover { background: #F7CA00 !important; color: #0F1111 !important; }
.tiny-foot-left { gap: 12px !important; }
.tiny-action-link { padding: 0 !important; border: 0 !important; color: #007185 !important; background: transparent !important; cursor: pointer !important; font-size: .82rem !important; font-weight: 600 !important; text-decoration: none !important; }
.tiny-action-link:hover { color: #C7511F !important; text-decoration: underline !important; }
.tiny-foot-divider { width: 1px !important; height: 12px !important; background: #D5D9D9 !important; }
.tiny-claim-link { color: #0F1111 !important; font-size: .82rem !important; font-weight: 700 !important; text-decoration: none !important; }
.tiny-claim-link:hover { color: #C7511F !important; text-decoration: underline !important; }
.tiny-qr-drawer { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 6px !important; padding: 12px !important; border: 1px dashed #D5D9D9 !important; border-radius: 6px !important; background: #F7F9FA !important; }
.tiny-qr-drawer img { width: 100px !important; height: 100px !important; border-radius: 4px !important; }
.tiny-qr-drawer img[src=""], .tiny-qr-drawer img:not([src]) { opacity: 0; visibility: hidden; }
#hero-qr-preview[style*="display: none"] { display: none !important; }

html.dark .tiny-result-card,
html[data-bs-theme="dark"] .tiny-result-card,
html[data-theme="dark"] .tiny-result-card { background: #161d26 !important; border-color: #37475A !important; color: #FFFFFF !important; }
html.dark .tiny-result-body,
html[data-bs-theme="dark"] .tiny-result-body,
html[data-theme="dark"] .tiny-result-body { background: #0d1217 !important; border-color: #232F3E !important; }
html.dark .tiny-short-link,
html[data-bs-theme="dark"] .tiny-short-link,
html[data-theme="dark"] .tiny-short-link { color: #38BDF8 !important; }
html.dark .tiny-claim-link,
html[data-bs-theme="dark"] .tiny-claim-link,
html[data-theme="dark"] .tiny-claim-link { color: #FFFFFF !important; }

@media (max-width: 575.98px) {
  .tiny-result-card { padding: 14px !important; }
  .tiny-result-head, .tiny-result-foot { align-items: flex-start !important; flex-direction: column !important; gap: 8px !important; }
  .tiny-result-body { align-items: stretch !important; flex-direction: column !important; }
  .tiny-copy-btn { width: 100%; }
  .tiny-foot-left { flex-wrap: wrap !important; }
}
