:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --secondary: #06b6d4;
  --danger: #ef4444;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-md: 16px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #dbeafe 0%, var(--bg) 52%, #f8fbff 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(14px);
  z-index: -1;
  animation: drift 16s ease-in-out infinite;
}

.bg-orb-1 {
  width: 320px;
  height: 320px;
  left: -140px;
  top: 12%;
  background: rgba(37, 99, 235, 0.2);
}

.bg-orb-2 {
  width: 260px;
  height: 260px;
  right: -120px;
  top: 22%;
  background: rgba(6, 182, 212, 0.2);
  animation-delay: 3s;
}

.bg-orb-3 {
  width: 220px;
  height: 220px;
  right: 14%;
  bottom: 8%;
  background: rgba(99, 102, 241, 0.18);
  animation-delay: 6s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 247, 242, 0.82);
  border-bottom: 1px solid rgba(31, 36, 48, 0.06);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #fff;
  font-size: 0.95rem;
  text-transform: lowercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.72rem 1rem;
}

.btn-soft {
  background: #e6f2ff;
  color: #1e40af;
  padding: 0.56rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-light {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.84rem 1.18rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 0;
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.hero {
  padding-top: 58px;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  color: var(--secondary);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

.shortener-form {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.shortener-form input {
  width: 100%;
  border: 1px solid #e8dfe6;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.82rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shortener-form input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.shortener-form input.is-error {
  border-color: var(--danger);
}

.shortener-form input.is-success {
  border-color: #22c55e;
}

.form-hint {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.form-note a {
  color: #4f46e5;
  font-weight: 600;
}

.form-note a:hover {
  text-decoration: underline;
}

.form-message {
  margin: 0.52rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.3em;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: #16a34a;
}

.form-message.info {
  color: #4338ca;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-top: 1rem;
}

.pill {
  background: #fff;
  border: 1px solid #f1e4dd;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.78rem;
  font-size: 0.84rem;
}

.hero-preview {
  position: relative;
}

.preview-card-new-link {
  border-color: rgba(239, 68, 68, 0.38);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.2);
}

.link-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.link-modal.is-open {
  display: block;
}

.link-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
}

.link-modal-dialog {
  position: relative;
  width: min(520px, calc(100% - 1.5rem));
  margin: 9vh auto 0;
  border-radius: 24px;
  border: 1px solid #dbe7ff;
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.25);
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
  padding: 1.2rem;
}

.link-modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe7ff;
  background: #f8fbff;
  color: #1e3a8a;
  cursor: pointer;
}

.link-modal-dialog h3 {
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.link-modal-url {
  display: block;
  margin-top: 0.9rem;
  border-radius: 14px;
  border: 1px solid #cfe0ff;
  background: #f8fbff;
  color: #1d4ed8;
  font-weight: 700;
  padding: 0.72rem 0.82rem;
  word-break: break-all;
}

.link-modal-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.65rem;
}

body.has-modal-open {
  overflow: hidden;
}

.preview-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #fff 0%, #fff8f4 100%);
  box-shadow: 0 18px 34px rgba(31, 36, 48, 0.12);
  padding: 1.2rem;
}

.preview-title {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.78rem;
}

.preview-badge {
  margin: 0 0 0.72rem;
  display: inline-flex;
  align-items: center;
  color: #4c1d95;
  background: #f3edff;
  border: 1px solid #ddd2ff;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.24rem 0.55rem;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid #efe8ff;
  background: #fcfaff;
  border-radius: 14px;
  padding: 0.66rem;
}

.result-line a {
  color: #5b37ef;
  font-weight: 700;
  word-break: break-all;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  margin: 0.88rem 0;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #eef2ff;
  color: #4338ca;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.76rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.chip-btn:hover {
  transform: translateY(-1px);
  background: #e4e8ff;
}

.mini-stats {
  list-style: none;
  margin: 0.94rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.mini-stats li {
  background: #ffffff;
  border: 1px solid #f2eae3;
  border-radius: 14px;
  padding: 0.58rem 0.74rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.mini-stats span {
  color: var(--muted);
}

.mini-stats strong {
  font-size: 0.82rem;
  color: #92400e;
}

.trust-strip {
  padding: 16px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.trust-item {
  background: #fff;
  border: 1px solid #f2e7de;
  border-radius: 14px;
  text-align: center;
  padding: 0.9rem 0.8rem;
}

.trust-item strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.14rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}

.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid #f1e4da;
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 36, 48, 0.13);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff2eb;
  font-size: 1.2rem;
  margin-bottom: 0.72rem;
}

.feature-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

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

.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  background: linear-gradient(175deg, #fff, #fff8f4);
  border: 1px solid #f4e6dd;
  border-radius: var(--radius-xl);
  padding: 1.2rem;
}

.step-index {
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #5b8cff);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.28rem 0.58rem;
  margin-bottom: 0.72rem;
}

.step-card h3 {
  margin-bottom: 0.35rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-box {
  background: #fff;
  border: 1px solid #f1e6df;
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
}

.table-card,
.chart-card {
  background: #fff9f4;
  border: 1px solid #f2e8e0;
  border-radius: 18px;
  padding: 0.84rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.58rem 0.35rem;
  border-bottom: 1px solid #f0e7e0;
  font-size: 0.92rem;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row-head {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.83rem;
}

.status-live,
.status-paused {
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-size: 0.73rem;
  padding: 0.2rem 0.45rem;
  justify-self: end;
}

.status-live {
  color: #166534;
  background: #dcfce7;
}

.status-paused {
  color: #92400e;
  background: #fef3c7;
}

.chart-card p {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.bars {
  margin-top: 0.9rem;
  height: 130px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.46rem;
  align-items: end;
}

.bars span {
  height: var(--h);
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, var(--secondary), #9d84ff);
}

.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  background: #fff;
  border: 1px solid #f2e5da;
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.review-card p {
  margin: 0 0 0.95rem;
}

.faq-wrap {
  background: #fff;
  border: 1px solid #f0e5dd;
  border-radius: 28px;
  padding: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid #f2e8e0;
  border-radius: 16px;
  background: #fff9f4;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  padding: 0.86rem 1rem;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--secondary);
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.23s ease;
}

.faq-answer p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  padding: 0 1rem;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding-bottom: 0.9rem;
}

.cta-box {
  text-align: center;
  padding: 2.3rem 1.2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #7c5cff, #5b8cff);
  color: #fff;
  box-shadow: 0 20px 38px rgba(77, 64, 170, 0.3);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.cta-box p {
  max-width: 54ch;
  margin: 0.8rem auto 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer {
  margin-top: 2.3rem;
  border-top: 1px solid #f2e6de;
  padding: 2rem 0 3rem;
  background: rgba(255, 255, 255, 0.56);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid h4 {
  margin: 0 0 0.65rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

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

.footer-muted {
  color: var(--muted);
  margin: 0.66rem 0 0;
  max-width: 30ch;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-main,
.policy-main {
  padding: 64px 0 88px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.2rem;
  align-items: start;
}

.auth-single {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card,
.auth-side,
.policy-card {
  background: #fff;
  border: 1px solid #f1e6df;
  border-radius: 28px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.auth-card h1,
.policy-card h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
}

.auth-subtitle,
.policy-subtitle {
  margin: 0 0 1.05rem;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 0.78rem;
}

.form-field {
  display: grid;
  gap: 0.36rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input {
  width: 100%;
  border: 1px solid #e8dfe6;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.78rem 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.form-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.56rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.form-check a {
  color: #4f46e5;
}

.form-check input {
  margin-top: 0.2rem;
  accent-color: var(--secondary);
}

.auth-message {
  margin: 0;
  min-height: 1.3em;
  font-size: 0.92rem;
  font-weight: 500;
}

.auth-message.error {
  color: var(--danger);
}

.auth-message.success {
  color: #15803d;
}

.auth-switch {
  margin: 0.86rem 0 0;
  color: #4b5563;
}

.auth-switch a {
  color: #4f46e5;
  font-weight: 600;
}

.auth-side h2 {
  font-size: 1.26rem;
  margin-bottom: 0.6rem;
}

.auth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.auth-list li {
  background: #fff8f2;
  border: 1px solid #f3e7dc;
  border-radius: 14px;
  padding: 0.6rem 0.72rem;
}

.policy-card {
  max-width: 860px;
  margin: 0 auto;
}

.policy-updated {
  margin: 0.15rem 0 1rem;
  color: #475569;
  font-size: 0.9rem;
}

.policy-section {
  border-top: 1px solid #f1e6df;
  padding-top: 0.95rem;
  margin-top: 0.95rem;
}

.policy-section h2 {
  font-size: 1.22rem;
  margin-bottom: 0.4rem;
}

.policy-section p,
.policy-section li {
  color: #4b5563;
}

.policy-section ul {
  margin: 0.52rem 0 0;
  padding-left: 1.1rem;
}

.cabinet-main {
  padding: 42px 0 88px;
}

.cabinet-hero {
  background: #fff;
  border: 1px solid #f1e6df;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cabinet-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin: 0.2rem 0 0.6rem;
}

.cabinet-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.cabinet-hero-actions {
  display: inline-flex;
  gap: 0.65rem;
}

.cabinet-stats {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cab-stat-card {
  background: #fff;
  border: 1px solid #f1e6df;
  border-radius: 20px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.cab-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.cab-stat-card strong {
  display: block;
  margin: 0.25rem 0 0.2rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.cab-stat-card p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
}

.cabinet-layout {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
}

.cabinet-left,
.cabinet-right {
  display: grid;
  gap: 0.9rem;
}

.cab-card {
  background: #fff;
  border: 1px solid #f1e6df;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.cab-card h2 {
  font-size: 1.2rem;
}

.cab-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.cab-filter-group {
  display: inline-flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.filter-chip,
.range-chip {
  border: 1px solid #e8ddff;
  background: #f7f4ff;
  color: #4338ca;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active,
.range-chip.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.cab-search-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.cab-search-input {
  width: 100%;
  border: 1px solid #e8dfe6;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.66rem 0.8rem;
  outline: none;
}

.cab-search-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.cab-table-wrap {
  border: 1px solid #f2e8e0;
  border-radius: 16px;
  overflow: hidden;
}

.cab-row {
  display: grid;
  grid-template-columns: 1.5fr auto auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1e6df;
  font-size: 0.9rem;
}

.cab-row:last-child {
  border-bottom: 0;
}

.cab-row-head {
  background: #fff8f2;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cab-link-cell {
  min-width: 0;
}

.cab-link-cell a {
  display: block;
  color: #4f46e5;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cab-link-cell small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-copy {
  border: 1px solid #ded8ff;
  background: #f7f5ff;
  color: #4338ca;
  border-radius: 11px;
  padding: 0.35rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.action-copy:hover {
  background: #efebff;
}

.cab-chart {
  position: relative;
  height: 220px;
  border: 1px solid #f2e8e0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff7f1 100%);
}

.cab-chart-grid {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
}

.cab-chart-grid span {
  border-top: 1px dashed #f0e4da;
}

.cab-chart-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: end;
  padding: 0.85rem;
}

.cab-chart-bars span {
  height: var(--h);
  border-radius: 12px 12px 7px 7px;
  background: linear-gradient(180deg, #7c5cff, #5b8cff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.traffic-list,
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.traffic-list li {
  background: #fff8f2;
  border: 1px solid #f2e8e0;
  border-radius: 14px;
  padding: 0.65rem;
}

.traffic-list li div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

.traffic-list i {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    #7c5cff 0,
    #7c5cff var(--w),
    #ede9fe var(--w),
    #ede9fe 100%
  );
}

.activity-list li {
  background: #fff8f2;
  border: 1px solid #f2e8e0;
  border-radius: 14px;
  padding: 0.65rem;
}

.activity-list p {
  margin: 0 0 0.28rem;
  font-size: 0.88rem;
}

.activity-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cab-upgrade {
  background: linear-gradient(135deg, #7c5cff, #5b8cff);
  color: #fff;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 20px 34px rgba(77, 64, 170, 0.28);
}

.cab-upgrade h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.cab-upgrade p {
  margin: 0 0 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -16px, 0);
  }
}

@media (max-width: 1024px) {
  .header-row {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .site-nav {
    order: 10;
    width: 100%;
    display: none;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #f1e7de;
    padding: 0.7rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .dashboard-grid,
  .auth-layout,
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

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

  .cabinet-hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .header-actions .btn-ghost {
    display: none;
  }

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

  .auth-card,
  .auth-side,
  .policy-card {
    padding: 1rem;
  }

  .features-grid,
  .steps-grid,
  .reviews-grid,
  .cabinet-stats,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cab-search-row {
    flex-direction: column;
  }

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

  .cab-row > span:nth-child(2),
  .cab-row > span:nth-child(3),
  .cab-row > button {
    justify-self: start;
  }

  .cab-row-head {
    display: none;
  }

  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .table-row span:first-child {
    grid-column: 1 / -1;
  }

  .status-live,
  .status-paused {
    justify-self: start;
  }

  .link-modal-dialog {
    width: calc(100% - 1rem);
    margin-top: 7vh;
    padding: 1rem;
  }

  .link-modal-actions {
    flex-direction: column;
  }
}

/* Cool blue theme overrides */
.site-header {
  background: rgba(243, 247, 255, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.site-nav,
.site-nav a,
.form-hint,
.form-note,
.footer-grid a,
.footer-muted,
.policy-updated,
.cabinet-subtitle,
.cab-stat-card p {
  color: #64748b;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #0f172a;
}

.shortener-form,
.preview-card,
.trust-item,
.feature-card,
.step-card,
.dashboard-box,
.table-card,
.chart-card,
.review-card,
.faq-wrap,
.faq-item,
.auth-card,
.policy-card,
.cabinet-hero,
.cab-stat-card,
.cab-card,
.cab-table-wrap,
.traffic-list li,
.activity-list li {
  border-color: #dbe7ff;
}

.shortener-form input,
.form-field input,
.cab-search-input {
  border-color: #cfe0ff;
}

.shortener-form input,
.form-field input,
.cab-search-input,
.pill,
.mini-stats li {
  background: #f8fbff;
}

.form-note a,
.auth-switch a,
.form-check a,
.result-line a,
.cab-link-cell a {
  color: #2563eb;
}

.preview-card,
.step-card,
.cab-chart,
.cab-chart-bars {
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
}


.preview-badge {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.result-line {
  border-color: #dbe7ff;
  background: #f7fbff;
}

.chip-btn {
  background: #e8f2ff;
  color: #1e40af;
}

.chip-btn:hover {
  background: #dbeafe;
}

.feature-icon {
  background: #eaf4ff;
}

.step-index,
.bars span,
.cab-chart-bars span {
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.mini-stats strong {
  color: #1d4ed8;
}

.table-row,
.cab-row {
  border-bottom-color: #e2ebfb;
}

.table-row-head,
.cab-row-head {
  background: #f3f8ff;
  color: #64748b;
}

.table-card,
.chart-card,
.faq-item,
.cab-table-wrap,
.traffic-list li,
.activity-list li {
  background: #f6faff;
}

.action-copy,
.filter-chip,
.range-chip {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.action-copy:hover {
  background: #dbeafe;
}

.filter-chip.is-active,
.range-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.cta-box,
.cab-upgrade {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.site-footer {
  border-top-color: #dbe7ff;
  background: rgba(239, 246, 255, 0.7);
}

.traffic-list i {
  background: linear-gradient(
    90deg,
    #2563eb 0,
    #2563eb var(--w),
    #dbeafe var(--w),
    #dbeafe 100%
  );
}

.cab-chart-grid span {
  border-top-color: #dbe7ff;
}

@media (max-width: 1024px) {
  .site-nav {
    background: #f8fbff;
    border-color: #dbe7ff;
  }
}
