:root {
  --glow-sky: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(14, 165, 233, 0.2), transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(56, 189, 248, 0.15), transparent 40%),
    radial-gradient(circle at 80% 65%, rgba(14, 165, 233, 0.12), transparent 35%);
}

.bg-aurora {
  background: var(--glow-sky);
  filter: blur(48px);
  opacity: 0.9;
}

.card-tilt {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card-tilt:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  inset: -120%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: shine 12s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-20%);
  }
  50% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(-20%);
  }
}

.float {
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.fade-in {
  animation: fadeInUp 700ms ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: shimmerFlow 2s infinite;
}

.page-rails {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.page-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(226, 232, 240, 0.8);
}
.page-rail-left {
  left: 0;
}
.page-rail-right {
  right: 0;
}
@media (min-width: 1152px) {
  .page-rail-left {
    left: calc(50% - 36rem);
  }
  .page-rail-right {
    right: calc(50% - 36rem);
  }
}
.full-rule {
  height: 1px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: rgba(226, 232, 240, 0.8);
}
.dashboard-surface {
  background-color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(241, 245, 249, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 245, 249, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.dashboard-hero {
  border: none;
  background: transparent;
  box-shadow: none;
}
.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.dashboard-stat {
  min-width: 160px;
}
.snapshot-cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .snapshot-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.snapshot-card {
  border-radius: 2px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.25rem;
}
.snapshot-value {
  margin-top: 6px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}
@media (min-width: 640px) {
  .snapshot-value {
    font-size: 2.6rem;
  }
}
.snapshot-caption {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #64748b;
}
.create-project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
  background: #ffffff;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.create-project-btn:hover {
  border-color: #bae6fd;
  color: #0284c7;
  background: #f0f9ff;
}
.activity-strip {
  background: transparent;
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  padding: 0.6rem 0;
  margin-top: 0;
}
.activity-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-strip-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}
.activity-strip-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(14, 165, 233, 0.8) 0,
    rgba(14, 165, 233, 0.8) 4px,
    transparent 4px,
    transparent 8px
  );
}
.activity-strip-item:first-child::before {
  top: 50%;
}
.activity-strip-item:last-child::before {
  bottom: 50%;
}
.activity-strip-text {
  font-size: 0.85rem;
  color: #334155;
}
.activity-link {
  color: #0ea5e9;
  font-weight: 600;
}
.activity-link:hover {
  color: #0284c7;
}
.activity-icon-wrap {
  height: 20px;
  width: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.activity-icon {
  height: 12px;
  width: 12px;
  color: #0ea5e9;
}
.activity-strip-empty {
  font-size: 0.85rem;
  color: #64748b;
}
.recipients-empty {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(226, 232, 240, 0.9);
  background: #ffffff;
  width: 100%;
}
.recipients-empty-icon {
  display: inline-flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
}
.recipients-empty-action {
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.08);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.recipients-empty-action:hover {
  border-color: rgba(14, 165, 233, 0.6);
  color: #0369a1;
  background: rgba(14, 165, 233, 0.16);
}
.dashboard-grid {
  background-image:
    linear-gradient(to right, rgba(226, 232, 240, 0.7) 1px, transparent 1px),
    linear-gradient(to right, rgba(226, 232, 240, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.7) 1px, transparent 1px);
  background-position:
    calc(50% - 12rem) 0,
    calc(50% + 12rem) 0,
    0 calc(33.333%),
    0 calc(66.666%);
  background-size:
    1px 100%,
    1px 100%,
    100% 1px,
    100% 1px;
  background-repeat: no-repeat;
}
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.button-light:hover {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.9);
}
.price-roller,
.price-roll {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.price-currency {
  margin-right: 2px;
}
.price-slot {
  position: relative;
  height: 1em;
  width: 0.62em;
  overflow: hidden;
}
.price-slot-track {
  display: block;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.price-slot-track span {
  display: block;
  height: 1em;
  line-height: 1em;
}
.price-dot {
  width: 0.3em;
  text-align: center;
}
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 600ms ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmerFlow {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}


.projects-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.projects-grid.is-list {
  grid-template-columns: 1fr;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 240px;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.03);
}
.project-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 200px;
  color: inherit;
  text-decoration: none;
}
.project-card-main:focus {
  outline: none;
}
.project-progress {
  height: 10px;
  width: 100%;
  border-radius: 2px;
  background: #e0f2fe;
  overflow: hidden;
}
.project-progress-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #0ea5e9;
}
.project-title {
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-description {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tag {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}
.project-status {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}
.project-status.is-complete {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}
.project-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.projects-grid.is-list .project-card {
  align-items: stretch;
  min-height: auto;
}
.projects-grid.is-list .project-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  row-gap: 8px;
  padding-right: 64px;
}
.projects-grid.is-list .project-body {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
}
.projects-grid.is-list .project-title {
  margin-top: 0;
}
.projects-grid.is-list .project-description {
  margin-top: 0.4rem;
}
.projects-grid.is-list .project-tags {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-content: flex-end;
  align-self: center;
}
.projects-grid.is-list .project-card-main {
  flex-direction: row;
  align-items: center;
  min-height: auto;
}
.projects-grid.is-list .project-body {
  flex: 1;
}
.projects-grid.is-list .project-meta {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  margin-top: 0;
  min-width: 220px;
  align-items: flex-end;
  text-align: right;
}
.projects-grid.is-list .project-meta-row {
  justify-content: flex-end;
}
.projects-grid.is-list .project-progress-row {
  justify-content: flex-end;
}
.project-progress-line {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.projects-grid.is-list .project-status {
  top: 16px;
  right: 16px;
}
.view-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f1f5f9;
}
.view-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transform: translateX(0);
  transition: transform 200ms ease;
  z-index: 0;
}
.view-toggle[data-active-view="list"]::before {
  transform: translateX(100%);
}
.view-toggle-btn {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.view-toggle-btn:hover {
  color: #0f172a;
}
.view-toggle-btn.is-active {
  color: #0f172a;
  background: transparent;
  box-shadow: none;
}
.projects-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
}
.projects-empty-icon {
  display: inline-flex;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  margin-bottom: 6px;
}
.project-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-step {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: transparent;
  opacity: 0;
  transform: translateY(16px);
  max-height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms ease, max-height 320ms ease, padding 220ms ease;
}
.project-step:first-of-type {
  border-top: none;
}
.project-step.is-active {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
  padding: 1.5rem 0;
  pointer-events: auto;
}
.project-step-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.project-step-title {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}
.project-step-subhead {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #64748b;
}
.project-step-label {
  display: block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.project-step-input {
  margin-top: 8px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.project-step-input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.project-step-textarea {
  min-height: 120px;
  resize: vertical;
}
.project-step-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.project-step-actions .project-step-submit {
  margin-top: 0;
}
.project-step-next,
.project-step-submit {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.project-step-next {
  padding: 8px 16px;
}
.project-step-next:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.project-step-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.project-step-error {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #dc2626;
  display: none;
}
.project-step.is-error .project-step-error {
  display: block;
}
.project-step.is-error .project-step-input {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora,
  .float,
  .shine::after,
  .fade-in,
  .card-tilt,
  .shimmer::after {
    animation: none !important;
    transition: none !important;
  }
}
