:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.56);

  /* Primary brand color per request */
  --brand-1: #ffffff;
  /* Supporting accents (fintech-leaning) */
  --brand-2: #22d3ee;
  --brand-3: #a78bfa;

  --shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.35);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;
  --gutter: 20px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, system-ui,
    ui-sans-serif, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page loader (home only) */
body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  /* always black (even in light theme) */
  background: #000000;
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loader-inner {
  width: min(520px, calc(100vw - 40px));
  display: grid;
  gap: 14px;
  justify-items: center;
}

.page-loader-brand {
  opacity: 0.92;
}

.page-loader-logo {
  height: 20px;
}

.page-loader-percent {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.page-loader-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.page-loader-bar-fill {
  height: 100%;
  width: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Plain, smooth fade out when JS marks done */
body.is-loading .page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0ms linear 900ms;
}

@media (prefers-reduced-motion: reduce) {
  body.is-loading .page-loader.is-done {
    transition-duration: 1ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-shell,
  .portal-side,
  .portal-brand,
  .portal-nav-label {
    transition-duration: 1ms !important;
  }
}

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

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: inherit;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.95em;
}

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--stroke);
  transform: translateY(-150%);
  transition: transform 200ms var(--ease);
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: none;
  background: transparent;
  border: none;
  border-image: none;
  box-shadow: none;
  box-sizing: content-box;
  transform: translateY(0);
  transition: transform 220ms var(--ease);
}

.site-header[data-scrolled="true"] {
  background: transparent;
  box-shadow: none;
}

.site-header[data-hidden="true"] {
  transform: translateY(-110%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-footer {
  gap: 12px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(34, 211, 238, 0.72);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.08);
}

.brand-name {
  font-size: 16px;
}

.brand-logo {
  height: 18px;
  width: auto;
  display: block;
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  /* Increase spacing between logo and nav links (~20%) */
  column-gap: 12px;

  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  /* Lighter pill for better contrast over busy hero media */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);

  color: var(--muted);
  font-weight: 500;
}

:root[data-theme="light"] .site-nav {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.site-nav .nav-links a {
  /* Default (dark theme): readable on dark backgrounds */
  color: var(--text);
  font-weight: 500;
}

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

:root[data-theme="light"] .site-nav .nav-links a,
:root[data-theme="light"] .site-nav .nav-links a:hover {
  /* Light theme: dark ink like the primary button text */
  color: rgba(11, 18, 32, 0.92);
}

.site-nav .brand-in-nav {
  /* SVG logo uses `currentColor` */
  color: var(--text);
}

:root[data-theme="light"] .site-nav .brand-in-nav {
  color: rgba(11, 18, 32, 0.92);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  /* Visually set aside CTAs from the nav links */
  padding-left: 12px;
  margin-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

:root[data-theme="light"] .nav-actions {
  border-left-color: rgba(11, 18, 32, 0.12);
}

/* Customer area */
.portal-shell {
  --portal-side-w: 100px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--portal-side-w) 1fr;
  transition: grid-template-columns 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Customer area: no sidenav layout */
.portal-shell[data-portal-no-sidenav="true"] {
  grid-template-columns: 1fr;
}

/* Customer area: section headers should be left-aligned (override global centered `.section-head`) */
.portal-shell .portal-main .section-head {
  text-align: left !important;
  justify-items: start !important;
  justify-content: start;
}

.portal-shell .portal-main .section-head .case-body {
  margin-left: 0;
  margin-right: 0;
}

/* Ensure every line in the portal header actually anchors left inside the grid */
.portal-shell .portal-main .section-head > * {
  justify-self: start !important;
}

.portal-shell[data-portal-expanded="true"] {
  --portal-side-w: 260px;
}

.portal-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  width: var(--portal-side-w);
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: width 720ms cubic-bezier(0.16, 1, 0.3, 1), padding 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: padding 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-nav {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.portal-nav-item {
  appearance: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 650;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.portal-ic-overview { background: rgba(34, 211, 238, 0.10); border-color: rgba(34, 211, 238, 0.22); }
.portal-ic-plan { background: rgba(250, 204, 21, 0.10); border-color: rgba(250, 204, 21, 0.22); }
.portal-ic-requests { background: rgba(168, 85, 247, 0.10); border-color: rgba(168, 85, 247, 0.22); }
.portal-ic-profile { background: rgba(34, 197, 94, 0.10); border-color: rgba(34, 197, 94, 0.22); }

.portal-nav-label {
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 720ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-shell:not([data-portal-expanded="true"]) .portal-nav-item {
  justify-content: center;
  padding: 12px 10px;
  gap: 0;
}

.portal-shell:not([data-portal-expanded="true"]) .portal-nav-label {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
}

.portal-shell:not([data-portal-expanded="true"]) .portal-brand {
  justify-content: center;
  padding: 10px;
}

.portal-shell:not([data-portal-expanded="true"]) .portal-brand .brand-logo {
  height: 16px;
}

.portal-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.portal-nav-item[aria-selected="true"] {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.26);
}

.portal-side-foot {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: grid;
  gap: 8px;
}

.portal-side-foot .btn {
  width: 100%;
  justify-content: center;
}

.portal-main {
  padding: 26px 0 32px;
}

/* Portal top header (customer area) */
.portal-topbar {
  position: static;
  top: auto;
  z-index: 40;
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto 18px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  backdrop-filter: blur(14px);
}

.portal-topbar-left {
  display: grid;
  gap: 4px;
  justify-self: start;
}

.portal-topbar-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 800;
}

.portal-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1;
}

.portal-plan-pill:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.5);
  outline-offset: 2px;
}

.portal-topbar-brand {
  justify-self: center;
  color: var(--text);
}

.portal-topbar-brand .brand-logo {
  height: 18px;
  width: auto;
}

.portal-topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.portal-profile-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.portal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.portal-avatar[data-has-image="true"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Profile form */
.portal-profile-form .profile-avatar-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.portal-profile-form .profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.portal-profile-form .profile-avatar[data-has-image="true"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.portal-profile-form .profile-avatar-actions {
  display: grid;
  gap: 8px;
}

.portal-profile-form .profile-avatar-hint {
  font-size: 11px;
}

:root[data-theme="light"] .portal-profile-form .profile-avatar {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.92);
}

.portal-profile-name {
  font-weight: 650;
  font-size: 13px;
  color: var(--text);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.portal-profile-menu[hidden] {
  display: none;
}

.portal-profile-menu-item {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  cursor: pointer;
}

.portal-profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .portal-topbar {
  border-color: transparent;
  background: transparent;
}

:root[data-theme="light"] .portal-plan-pill {
  border-color: rgba(11, 18, 32, 0.12);
  background: transparent;
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .portal-profile-btn {
  border-color: rgba(11, 18, 32, 0.12);
  background: transparent;
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .portal-avatar {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .portal-profile-menu {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .portal-profile-menu-item {
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .portal-profile-menu-item:hover {
  background: rgba(11, 18, 32, 0.06);
}

@media (max-width: 720px) {
  .portal-topbar {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    justify-items: start;
    row-gap: 10px;
  }

  .portal-topbar-brand {
    justify-self: start;
  }

  .portal-topbar-right {
    justify-self: start;
  }
}

/* Dashboard widgets (customer area overview) */
.dash-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.04);
}

.dash-span-6 {
  grid-column: span 6;
}

.dash-span-3 {
  grid-column: span 3;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-big {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dash-bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-bar-fill {
  height: 100%;
  background: rgba(34, 211, 238, 0.48);
  width: 0%;
}

.dash-meta {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.dash-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.dash-list li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.80);
}

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

.dash-deadline {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.20);
  padding: 12px;
}

.dash-deadline-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
}

.dash-deadline-date {
  margin-top: 6px;
  font-weight: 800;
}

.cal {
  margin-top: 10px;
}

.cal-head {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin-bottom: 10px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-dow-cell {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.cal-cell {
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
  font-size: 12px;
}

.cal-empty {
  border-color: transparent;
  background: transparent;
}

.cal-today {
  border-color: rgba(34, 211, 238, 0.30);
  background: rgba(34, 211, 238, 0.14);
}

.portal-tabs {
  margin-top: 14px;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.portal-shell[data-portal-no-sidenav="true"] .portal-tabs {
  margin-top: 0;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  /* Slightly stronger backdrop since it floats over content */
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .portal-shell[data-portal-no-sidenav="true"] .portal-tabs {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.12);
}

/* Make room for the fixed bottom tabs */
.portal-shell[data-portal-no-sidenav="true"] .portal-main {
  padding-bottom: 110px;
}

/* Daily header (customer area) */
.portal-daily {
  margin-top: 22px;
  margin-bottom: 18px;
}

.portal-daily-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.portal-daily-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

.portal-daily-lines {
  margin: 0;
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-datetime {
  margin-top: 0;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* "Start your first task" */
.portal-first-task {
  margin-top: 16px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: center;
}

.portal-first-task-label {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.portal-composer {
  margin: 12px auto 0;
  max-width: 820px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.portal-composer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.portal-composer-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.portal-composer-input:focus {
  border-color: rgba(34, 211, 238, 0.35);
}

.portal-composer-date {
  font-variant-numeric: tabular-nums;
}

.portal-composer-textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.portal-composer:focus-within {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.portal-composer-rec {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  align-content: start;
  gap: 10px;
}

.portal-first-task-rec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-rec-status {
  font-size: 12px;
}

.portal-rec-audio {
  width: 100%;
}

.portal-first-task-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

:root[data-theme="light"] .portal-composer {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .portal-composer-rec {
  border-top-color: rgba(11, 18, 32, 0.10);
}

:root[data-theme="light"] .portal-composer-input {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 18, 32, 0.92);
}

@media (max-width: 900px) {
  .portal-composer-top {
    grid-template-columns: 1fr;
  }
}

/* Kanban board */
.portal-board {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

@media (max-width: 720px) {
  .portal-board {
    grid-template-columns: 1fr;
  }
}

.board-col {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

:root[data-theme="light"] .board-col {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.02);
}

.board-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-col-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.board-col-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="light"] .board-col-count {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 18, 32, 0.72);
}

.board-new .portal-composer {
  margin: 0;
  max-width: none;
}

.board-list {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 140px;
  padding: 2px;
  border-radius: 12px;
}

.board-list.is-dragover {
  outline: 2px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.board-empty {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--muted-2);
  font-size: 12px;
}

:root[data-theme="light"] .board-empty {
  border-color: rgba(11, 18, 32, 0.14);
  color: rgba(11, 18, 32, 0.55);
}

.task-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 10px 10px;
  cursor: grab;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.task-card:active {
  cursor: grabbing;
}

:root[data-theme="light"] .task-card {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.task-title {
  font-weight: 650;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.task-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.task-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.task-due {
  font-variant-numeric: tabular-nums;
}

.task-audio {
  width: 100%;
  margin-top: 8px;
}

/* Projects */
.portal-projects-head h2 {
  margin: 0;
  font-size: 18px;
}

.portal-projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-overview-stats {
  margin-top: 14px;
}

.portal-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 640px 1fr;
  column-gap: 12px;
  align-items: start;
}

.portal-stats-side {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 12px; /* match the column gap */
  min-width: 0;
}

.portal-plan-page {
  padding-top: 20px;
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 13px;
}

.portal-breadcrumb-link {
  color: inherit;
  text-decoration: none;
}

.portal-breadcrumb-link:hover {
  color: var(--text);
}

.portal-plan-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 12px;
  align-items: start;
}

.portal-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-plan-title {
  margin: 0;
  font-size: 22px;
}

.portal-plan-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.portal-plan-name {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}

.portal-plan-price {
  margin-top: 6px;
}

.portal-plan-benefits {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.portal-plan-upgrades-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.portal-plan-upgrade-list {
  display: grid;
  gap: 12px;
}

.portal-plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portal-plan-card-name {
  font-weight: 900;
  font-size: 16px;
}

.portal-plan-card-sub {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .portal-plan-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .portal-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .portal-stats-side {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .portal-stats {
    grid-template-columns: 1fr;
  }
}

.portal-stat {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.portal-stat.is-dragging {
  opacity: 0.6;
}

.portal-stat.is-dragover {
  outline: 2px dashed rgba(34, 211, 238, 0.45);
  outline-offset: 6px;
}

/* Emphasize the primary stat card (Projects & tasks) */
.portal-stat[data-stat="projects_tasks"] {
  grid-column: 1 / 2;
  padding: 16px 16px;
  border-color: rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.06);
  height: 640px;
}

:root[data-theme="light"] .portal-stat[data-stat="projects_tasks"] {
  border-color: rgba(34, 211, 238, 0.30);
  background: rgba(34, 211, 238, 0.08);
}

.portal-stat[data-stat="projects_tasks"] .portal-stat-value {
  font-size: 30px;
}

.portal-stat[data-stat="projects_tasks"] .portal-stat-chart {
  height: 496px;
}

@media (max-width: 1100px) {
  .portal-stat[data-stat="projects_tasks"] {
    grid-column: 1 / -1;
    height: auto;
  }
}

.portal-stat[data-stat="projects_tasks"] .portal-stat-sub {
  font-size: 12px;
}

:root[data-theme="light"] .portal-stat {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.portal-stat-top {
  display: grid;
  gap: 2px;
}

.portal-stat-label {
  font-size: 11px;
  color: var(--muted-2);
}

.portal-stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.portal-stat-chart {
  margin-top: 10px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  position: relative;
}

:root[data-theme="light"] .portal-stat-chart {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.04);
}

.portal-stat-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Pie chart looks better as a square */
.portal-stat[data-stat="timeliness"] .portal-stat-chart {
  height: 160px;
}

/* (right column is now a flex stack via `.portal-stats-side`) */

.portal-chart-tooltip {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

:root[data-theme="light"] .portal-chart-tooltip {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(11, 18, 32, 0.92);
}

.portal-stat-sub {
  margin-top: 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Insights (urgent tasks / biggest projects) */
.portal-insights-tabs {
  margin-top: 10px;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

:root[data-theme="light"] .portal-insights-tabs {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.03);
}

.portal-insights-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.portal-insights-tab[aria-selected="true"] {
  background: rgba(34, 211, 238, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .portal-insights-tab[aria-selected="true"] {
  background: rgba(34, 211, 238, 0.22);
  color: rgba(11, 18, 32, 0.92);
}

.portal-insights-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.insight-row {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 10px;
  cursor: pointer;
}

:root[data-theme="light"] .insight-row {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.insight-row:hover {
  border-color: rgba(34, 211, 238, 0.22);
}

.insight-row-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-row-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.insight-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .insight-pill {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.03);
}

.portal-project-buckets {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Chat (Slack-like) */
.portal-chat {
  margin-top: 14px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
}

.chat-side,
.chat-people {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

:root[data-theme="light"] .chat-side,
:root[data-theme="light"] .chat-people {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.chat-side-head,
.chat-people-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-side-head h2,
.chat-people-head h3 {
  margin: 0;
  font-size: 14px;
}

.chat-topic-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.chat-topic {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 10px;
  cursor: pointer;
}

:root[data-theme="light"] .chat-topic {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.chat-topic[aria-current="true"] {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.10);
}

.chat-topic-title {
  font-weight: 700;
  font-size: 13px;
}

.chat-topic-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-main {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 560px;
}

:root[data-theme="light"] .chat-main {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.chat-head {
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .chat-head {
  border-bottom-color: rgba(11, 18, 32, 0.10);
}

.chat-head-left {
  display: grid;
  gap: 2px;
}

.chat-head-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.chat-topic-sub {
  font-size: 12px;
}

.chat-thread {
  padding: 14px 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

:root[data-theme="light"] .chat-msg {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.04);
}

.chat-msg-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.chat-msg-author {
  font-weight: 700;
}

.chat-msg-time {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.chat-msg-text {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--text);
}

.chat-compose {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .chat-compose {
  border-top-color: rgba(11, 18, 32, 0.10);
}

.chat-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  resize: none;
}

:root[data-theme="light"] .chat-input {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 18, 32, 0.92);
}

.chat-people-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.chat-person {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .chat-person {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.chat-person-name {
  font-weight: 700;
  font-size: 13px;
}

.chat-person-email {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-people-foot {
  margin-top: 10px;
}

.chat-huddle-video {
  width: 100%;
  height: 220px;
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 1100px) {
  .portal-project-buckets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-project-buckets {
    grid-template-columns: 1fr;
  }
}

.portal-field {
  margin-top: 12px;
}

.portal-label {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.portal-input,
.portal-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.portal-textarea {
  resize: vertical;
}

.portal-input:focus,
.portal-textarea:focus {
  border-color: rgba(34, 211, 238, 0.35);
}

:root[data-theme="light"] .portal-input,
:root[data-theme="light"] .portal-textarea {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 18, 32, 0.92);
}

.portal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.portal-project-list {
  display: contents;
}

.project-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 30% 10%, rgba(34, 211, 238, 0.10), transparent 60%);
  pointer-events: none;
}

.project-thumb {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

:root[data-theme="light"] .project-thumb {
  border-color: rgba(11, 18, 32, 0.10);
}

.project-item:hover {
  border-color: rgba(34, 211, 238, 0.22);
}

:root[data-theme="light"] .project-item {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.project-item-title {
  font-weight: 750;
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-item-title::before {
  content: none;
  display: none;
}

:root[data-theme="light"] .project-item-title::before {}

/* (removed) project goal text */

.project-item-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Project tile progress */
.project-item-progress {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.project-item-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted-2);
}

.project-item-progress-val {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.project-item-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

:root[data-theme="light"] .project-item-bar {
  background: rgba(11, 18, 32, 0.06);
}

.project-item-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.55);
}

/* Task detail view */
.portal-task-view {
  margin-top: 12px;
}

.task-top {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .task-top {
    grid-template-columns: 1fr;
  }
}

.task-progress {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 10px;
}

:root[data-theme="light"] .task-progress {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.task-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.task-progress-val {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.task-progress-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

:root[data-theme="light"] .task-progress-bar {
  background: rgba(11, 18, 32, 0.06);
}

.task-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.55);
}

.task-progress-sub {
  margin-top: 8px;
  font-size: 12px;
}

.task-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px) {
  .task-layout {
    grid-template-columns: 1fr;
  }
}

.task-side {
  position: fixed;
  top: 152px;
  left: calc((100vw - min(var(--container), 100% - (var(--gutter) * 2))) / 2);
  width: 170px;
  align-self: start;
  padding: 0;
  padding-right: 6px;
  grid-column: 1 / 2;
}

:root[data-theme="light"] .task-side {}

@media (max-width: 980px) {
  .task-side {
    position: static;
    top: auto;
    left: auto;
    width: auto;
  }
}

.task-side-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.task-side-item {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 8px;
  cursor: pointer;
}

.task-side-item:hover {
  border-color: rgba(34, 211, 238, 0.22);
}

.task-side-item[aria-current="true"] {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

:root[data-theme="light"] .task-side-item {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.task-side-item-title {
  font-weight: 650;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-side-item-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* Task detail view: remove project header + board entirely */
.portal-project-view.is-task-view .project-bar,
.portal-project-view.is-task-view .portal-board {
  display: none !important;
}

.task-detail-title {
  margin: 0;
  font-size: 22px;
}

.task-detail-desc {
  margin-top: 10px;
  color: var(--muted);
  white-space: pre-wrap;
}

/* Inline editing (task detail) */
.task-detail-title[contenteditable="true"],
.task-detail-desc[contenteditable="true"] {
  cursor: text;
}

.task-detail-title[contenteditable="true"]:focus,
.task-detail-desc[contenteditable="true"]:focus {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.task-detail-title[contenteditable="true"]:focus {
  padding: 6px 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.task-detail-desc[contenteditable="true"]:focus {
  padding: 8px 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.task-activity-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.task-detail-tabs {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

::root[data-theme="light"] .task-detail-tabs {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.task-detail-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.task-detail-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
}

::root[data-theme="light"] .task-detail-tab[aria-selected="true"] {
  background: rgba(11, 18, 32, 0.06);
}

.task-detail-pane {
  margin-top: 10px;
}

.task-comments-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.comment-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 10px;
}

::root[data-theme="light"] .comment-item {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.02);
}

.comment-text {
  color: var(--text);
  white-space: pre-wrap;
}

.comment-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.task-comment-composer {
  margin-top: 12px;
}

.task-comment-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.task-attachments-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.attachment-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 10px;
  display: grid;
  gap: 6px;
}

::root[data-theme="light"] .attachment-item {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.02);
}

.attachment-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.attachment-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta {
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.attachment-link {
  color: rgba(34, 211, 238, 0.92);
  text-decoration: none;
  word-break: break-word;
}

.attachment-link:hover {
  text-decoration: underline;
}

.attachment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.attachment-preview-wrap {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

::root[data-theme="light"] .attachment-preview-wrap {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.03);
}

.attachment-preview-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  background: transparent;
}

.attachment-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.task-attachment-composer {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.task-attachment-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.task-attachment-hint {
  font-size: 12px;
}

.activity-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 10px;
}

:root[data-theme="light"] .activity-item {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.02);
}

.activity-title {
  font-size: 12px;
  color: var(--text);
  font-weight: 650;
}

.activity-detail {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.activity-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment-author {
  font-size: 12px;
  color: var(--text);
  font-weight: 650;
}

/* Project create modal */
.portal-modal[hidden] {
  display: none;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}

.portal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.portal-modal-dialog {
  position: relative;
  width: min(640px, calc(100% - 24px));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Full-screen modal variant (used for New project) */
.portal-modal-fullscreen {
  place-items: stretch;
}

.portal-modal-fullscreen .portal-modal-dialog {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.portal-modal-fullscreen .portal-modal-body {
  padding: 16px 16px;
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.project-create-steps {
  display: block;
}

.project-collect-box {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 12px;
}

:root[data-theme="light"] .project-collect-box {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.02);
}

.project-collect-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.project-import {
  display: grid;
  gap: 10px;
}

/* Drop/upload is integrated into the message textarea */
.project-message {
  position: relative;
}

.project-message .project-prompt {
  padding-right: 44px;
}

.project-attach {
  position: absolute;
  top: 10px;
  right: 10px;
}

.project-message-meta {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.project-dropzone.is-dragover .project-prompt {
  border-color: rgba(120, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(120, 200, 255, 0.16);
}

:root[data-theme="light"] .project-dropzone.is-dragover .project-prompt {
  border-color: rgba(0, 90, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 90, 255, 0.10);
}

.project-dropzone {
  /* used as drag target wrapper around the textarea */
}

.project-import-hint {
  font-size: 12px;
}

.project-prompt {
  min-height: 120px;
}

.project-prompt-hint {
  margin-top: 8px;
  font-size: 12px;
}

.project-draft {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

:::root[data-theme="light"] .project-draft {
  border-top-color: rgba(11, 18, 32, 0.10);
}

.project-draft-tasks {
  display: grid;
  gap: 10px;
}

.draft-task {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: grid;
  gap: 8px;
}

:::root[data-theme="light"] .draft-task {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.02);
}

.draft-task-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-task-top .portal-input {
  flex: 1;
}

.draft-task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.draft-task-remove {
  white-space: nowrap;
}

.project-success {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  min-height: 220px;
}

:root[data-theme="light"] .project-success {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.02);
}

.project-success-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-success-sub {
  font-size: 12px;
}

.project-import-preview {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 10px;
  overflow: hidden;
}

::root[data-theme="light"] .project-import-preview {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.02);
}

.project-import-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.project-suggestions {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 10px;
  display: grid;
  gap: 10px;
}

::root[data-theme="light"] .project-suggestions {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.02);
}

.project-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.project-suggestion input {
  margin-top: 3px;
}

.project-suggestion-title {
  font-weight: 650;
  color: var(--text);
}

.project-suggestion-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.project-suggestions-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

:root[data-theme="light"] .portal-modal-dialog {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.portal-modal-head {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .portal-modal-head {
  border-bottom-color: rgba(11, 18, 32, 0.10);
}

.portal-modal-title {
  font-weight: 650;
  color: var(--text);
}

.portal-modal-body {
  padding: 14px 14px;
}

.portal-modal-actions {
  padding: 14px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .portal-modal-actions {
  border-top-color: rgba(11, 18, 32, 0.10);
}

/* Project view bar + progress */
.project-bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr 320px;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .project-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Project view layout (sidebar + main) */
.project-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: start;
  position: relative;
}

@media (max-width: 980px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .project-side {
    position: static;
    top: auto;
    left: auto;
    width: auto;
  }
}

.project-layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(170px + 7px); /* middle of the column gap */
  width: 1px;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

@media (max-width: 980px) {
  .project-layout::before {
    content: none;
  }
}

:root[data-theme="light"] .project-layout::before {
  background: rgba(11, 18, 32, 0.10);
}

.project-side {
  position: fixed;
  top: 152px;
  left: 50%;
  transform: translateX(calc(var(--container) / -2));
  width: 170px;
  align-self: start;
  padding: 0;
  padding-right: 6px;
  grid-column: 1 / 2;
}

:root[data-theme="light"] .project-side {}

.project-main {
  padding-left: 6px;
  /* Keep main content in the wide column even when sidebar is fixed (fixed removes it from grid flow). */
  grid-column: 2 / -1;
}

@media (max-width: 980px) {
  .project-main {
    grid-column: auto;
  }
}

@media (max-width: 1160px) {
  .project-side,
  .task-side {
    left: var(--gutter);
    transform: none;
  }
}

.project-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-side-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.project-side-item {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 8px;
  cursor: pointer;
}

.project-side-item:hover {
  border-color: rgba(34, 211, 238, 0.22);
}

.project-side-item[aria-current="true"] {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

:root[data-theme="light"] .project-side-item {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .project-side-item[aria-current="true"] {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.10);
}

.project-side-item-title {
  font-weight: 650;
  color: var(--text);
  font-size: 12px;
}

.project-side-item-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.project-side-item-progress {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.project-side-item-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted-2);
}

.project-side-item-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

:root[data-theme="light"] .project-side-item-bar {
  background: rgba(11, 18, 32, 0.06);
}

.project-side-item-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.55);
}

.project-meta {
  display: grid;
  gap: 4px;
}

/* Breadcrumb */
.project-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.crumb-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.crumb-link:hover {
  color: var(--text);
}

.crumb-sep {
  color: var(--muted-2);
}

.crumb-current {
  color: var(--text);
  font-weight: 650;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-progress {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 10px;
}

:root[data-theme="light"] .project-progress {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.project-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.project-progress-val {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.project-progress-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

:root[data-theme="light"] .project-progress-bar {
  background: rgba(11, 18, 32, 0.06);
}

.project-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.55);
}

.portal-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.portal-tabs a.portal-tab {
  text-decoration: none;
}

.portal-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.portal-panels {
  margin-top: 16px;
}

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

.portal-panels[data-active-panel="account"] .portal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 940px;
  margin: 0 auto;
}

.portal-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table th,
.portal-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.portal-table th {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  font-size: 12px;
}

.status-pill[data-status="open"] {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.10);
}

.status-pill[data-status="in_progress"] {
  border-color: rgba(250, 204, 21, 0.24);
  background: rgba(250, 204, 21, 0.10);
}

.status-pill[data-status="done"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.10);
}

@media (max-width: 980px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }
  .portal-side {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .portal-side-foot {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 14px;
  }
  .portal-main {
    padding-top: 24px;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-span-6,
  .dash-span-3 {
    grid-column: span 1;
  }
  .dash-deadlines {
    grid-template-columns: 1fr;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-grid-2 {
    grid-template-columns: 1fr;
  }
}

.brand-in-nav {
  padding: 8px 10px;
  border-radius: 999px;
}

.brand-in-nav:hover {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .brand-in-nav:hover {
  background: rgba(11, 18, 32, 0.05);
}

.nav-cta {
  white-space: nowrap;
}

.nav-greeting {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 650;
  white-space: nowrap;
}

.nav-greeting--prominent {
  padding: 0 14px;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.26);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-greeting--prominent:hover {
  background: rgba(34, 211, 238, 0.18);
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
}

:root[data-theme="light"] .site-nav a:hover {
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.92);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--text);
}

.nav-toggle-lines {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    background 180ms var(--ease), border-color 180ms var(--ease),
    color 180ms var(--ease);
  cursor: pointer;
}

/* Icon-only buttons (portal composer) */
.btn.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  min-width: 42px;
  gap: 0;
}

.btn.btn-icon.btn-sm {
  width: 24px;
  height: 24px;
  min-width: 24px;
}

.btn-icon-svg {
  width: 18px;
  height: 18px;
}

.btn.btn-icon.btn-sm .btn-icon-svg {
  width: 14px;
  height: 14px;
}

/* Lightweight toast (used for mic permission/availability hints) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 86px; /* sits above fixed bottom tabs */
  transform: translateX(-50%);
  z-index: 200;
  max-width: min(520px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  line-height: 1.35;
}

:root[data-theme="light"] .toast {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(11, 18, 32, 0.92);
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.12);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 9px 12px;
  border-radius: 999px;
}

/* Primary = white */
.btn-primary {
  background: var(--brand-1);
  color: #06101c;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Header Login button: borderless ghost */
.site-nav .nav-actions > a.btn.btn-sm.btn-ghost[href="login.html"] {
  border-color: transparent;
}

.btn-stealth {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted-2);
}

.btn-stealth:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  color: var(--text);
}

.btn-stealth:active {
  background: rgba(255, 255, 255, 0.04);
}

/* Login footer (simple links only) */
.footer--login {
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
}

.footer-inner--login {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-links--login {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  color: var(--muted-2);
  font-weight: 650;
  font-size: 13px;
}

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

.hero {
  padding: 72px 0 34px;
}

.hero.hero-simple {
  /* Override `.hero` padding so only the rounded nav remains visible */
  padding: 0;
  vertical-align: middle;
}


.hero-simple {
  min-height: 580px;
  padding-top: 86px;
  /* Make hero opaque so the page background gradients don't show through */
  background: var(--bg);
  background-image: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  box-sizing: content-box;

  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Plans page: slightly shorter hero */
.hero-simple--plans {
  min-height: 400px;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Home hero: use an image (no motion). Keep the overlay off for a clean look. */
#top .hero-video::after {
  display: none;
}

:root[data-theme="dark"] #top.hero-simple {
  background: #000000;
  color: #ffffff;
}

:root[data-theme="dark"] #top .hero-video {
  background: #000000;
}

:root[data-theme="dark"] #top.hero-simple .lead {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] #top.hero-simple {
  background: #ffffff;
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] #top .hero-video {
  background: #ffffff;
}

:root[data-theme="light"] #top.hero-simple .lead {
  color: rgba(11, 18, 32, 0.68);
}

/* Home hero CTA: black primary button on light theme */
:root[data-theme="light"] #top .btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: rgba(11, 18, 32, 0.18);
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.14);
}

:root[data-theme="light"] #top .btn-primary:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(11, 18, 32, 0.16);
}

.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 50% 40%, rgba(11, 18, 32, 0.28), rgba(11, 18, 32, 0.78));
}

.hero-simple-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.hero-simple h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-simple .lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.hero-simple .hero-cta {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--stroke);
}

.hero h1 {
  margin: 0;
  font-size: 100px;
  line-height: 1.02;
  letter-spacing: 0px;
  font-weight: 400;
}

.accent {
  background: none;
  color: var(--brand-2);
}

.lead {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.proof-item {
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-big {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.proof-small {
  color: var(--muted-2);
  font-weight: 650;
  font-size: 13px;
  margin-top: 4px;
}



.hero-visual {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .hero-visual {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(11, 18, 32, 0.12);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

:root[data-theme="light"] .hero-image {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.02);
}

.hero-image-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: 8px;
}
.hero-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: none;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.pill-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.deliverables {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  position: relative;
}

.deliverable {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.deliverable-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.deliverable-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.deliverable-meta {
  color: var(--muted-2);
  font-weight: 650;
  font-size: 13px;
  margin-top: 2px;
}

.hero-card-bottom {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.mini-metric-label {
  color: var(--muted-2);
  font-weight: 800;
  font-size: 12px;
}

.mini-metric-value {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.avatar-row {
  display: flex;
  align-items: center;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(11, 18, 32, 0.9);
  background: rgba(255, 255, 255, 0.08);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.marquee {
  padding-top: 28px;
}

.marquee-track {
  display: flex;
  gap: 22px;
  overflow: hidden;
  white-space: nowrap;
  mask-image: none;
}

.marquee-track span {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  animation: drift 22s linear infinite;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-520px);
  }
}

.section {
  padding: 94px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
  justify-items: center;
}

/* Our process placeholder block */
.process-placeholder {
  margin-top: 18px;
  height: 500px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] .process-placeholder {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
}

.process-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.section-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

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

.what-grid .list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* makes li shrink-wrap to its contents */
}

.what-grid .list li {
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.what-grid .list li span {
  font-weight: 450;
  opacity: 0.86;
}

/* What we do: hover previews */
#what-we-do .list li {
  position: relative;
  outline: none;
}

#what-we-do .list li::after {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  transform: translateY(-50%) translateX(-2px) scale(0.985);
  width: 220px;
  height: 140px;
  border-radius: 14px;
  background-image: var(--preview-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
  z-index: 2;
}

#what-we-do .list li:hover::after,
#what-we-do .list li:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

#what-we-do .list li:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.45);
  outline-offset: 6px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  #what-we-do .list li::after {
    display: none;
  }
}

/* What we do: flat cards (no border / no background surface) */
#what-we-do .card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.what-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: inline-block;
}

:root[data-theme="light"] .what-icon {
  border-color: rgba(11, 18, 32, 0.14);
  background: rgba(11, 18, 32, 0.04);
}

.how-cards .card {
  display: grid;
  gap: 10px;
  /* How-it-works cards: no surface, no border, no shadow */
  background: #1A2631;
  border: none;
  box-shadow: none;
}

.card-with-thumb h3 {
  margin-top: 2px;
}

.card-thumb {
  height: 150px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-thumb-how {
  padding: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  /* Make the thumb itself a square */
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  /* Dark theme (default): light thumbnail surface */
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-thumb-how .card-thumb-art {
  /* Match sizing approach used by .benefit-media-art (80% of the 150px box) */
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

:root[data-theme="light"] .card-thumb-how {
  background: var(--bg);
  border-color: rgba(11, 18, 32, 0.12);
}

.benefits-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benefit {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 10px;
}

.benefit--transparent {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.benefit--transparent .benefit-media {
  background: transparent;
  border: none;
}

.benefit--transparent .muted {
  /* keep copy readable even without a card surface */
  color: var(--muted);
}

.benefit-media {
  height: 150px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.benefit-media--roi,
.benefit-media--img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.benefit-media--roi picture,
.benefit-media--img picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.benefit-media--roi .benefit-media-art,
.benefit-media--img .benefit-media-art {
  width: 80%;
  height: 80%;
  object-fit: cover;
  display: block;
}

/* Benefits: fit ROI icon nicely in its frame (no cropping) */
.benefit-media--roi .benefit-media-art[src*="ROI-Light%20theme.png"],
.benefit-media--roi .benefit-media-art[src*="/1.svg"],
.benefit-media--roi .benefit-media-art[src*="ROI-Dark%20theme.png"],
.benefit-media--roi .benefit-media-art[src*="/1.svg"] {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

:root[data-theme="dark"] .benefit-media--roi .benefit-media-art[src*="ROI-Dark%20theme.png"] {
  width: 90%;
  height: 90%;
}

:root[data-theme="dark"] .benefit-media--roi .benefit-media-art[src*="/1.svg"] {
  width: 90%;
  height: 90%;
}

/* Benefits: make "work hub" image fit nicely in its frame (no cropping) */
.benefit-media--img .benefit-media-art[src*="work%20hub.png"],
.benefit-media--img .benefit-media-art[src*="WorkHub-Light%20theme.png"],
.benefit-media--img .benefit-media-art[src*="WorkHub-Dark%20theme.png"],
.benefit-media--img .benefit-media-art[src*="/2.svg"] {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="WorkHub-Dark%20theme.png"] {
  width: 90%;
  height: 90%;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="/2.svg"] {
  width: 90%;
  height: 90%;
}

.benefit-media--img .benefit-media-art[src*="Collaboration-Light%20theme.png"],
.benefit-media--img .benefit-media-art[src*="Collaboration-Dark%20theme.png"],
.benefit-media--img .benefit-media-art[src*="/3.svg"] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="Collaboration-Dark%20theme.png"] {
  width: 86%;
  height: 86%;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="/3.svg"] {
  width: 86%;
  height: 86%;
}

.benefit-media--img .benefit-media-art[src*="CreativeDev-Light%20theme.png"],
.benefit-media--img .benefit-media-art[src*="CreativeDev-Dark%20theme.png"],
.benefit-media--img .benefit-media-art[src*="/4.svg"] {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="CreativeDev-Dark%20theme.png"] {
  width: 86%;
  height: 86%;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="/4.svg"] {
  width: 86%;
  height: 86%;
}

.benefit-media--img .benefit-media-art[src*="BudgetSuprice-Light%20theme.png"],
.benefit-media--img .benefit-media-art[src*="BudgetSuprice-%20Dark%20theme.png"],
.benefit-media--img .benefit-media-art[src*="/5.svg"] {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="BudgetSuprice-%20Dark%20theme.png"] {
  width: 86%;
  height: 86%;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="/5.svg"] {
  width: 86%;
  height: 86%;
}

.benefit-media--img .benefit-media-art[src*="Conversaton-Light%20theme.png"],
.benefit-media--img .benefit-media-art[src*="Conversaton-Dark%20theme.png"],
.benefit-media--img .benefit-media-art[src*="/6.svg"] {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="Conversaton-Dark%20theme.png"] {
  width: 86%;
  height: 86%;
}

:root[data-theme="dark"] .benefit-media--img .benefit-media-art[src*="/6.svg"] {
  width: 86%;
  height: 86%;
}

.benefit h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.video-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-thumb {
  height: clamp(260px, 34vw, 420px);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.video-thumb-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-thumb::after {
  content: none;
}

.video-thumb::before {
  content: none;
}

.quote-by .avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

/* Testimonials: photo avatars */
.quote-by .avatar-badge.avatar-jennifer,
.quote-by .avatar-badge.avatar-jonathan,
.quote-by .avatar-badge.avatar-heather {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent; /* keep initials as fallback text if image fails to load */
}

.quote-by .avatar-badge.avatar-jennifer {
  background-image: url("assets/jenifer.jpg");
}

.quote-by .avatar-badge.avatar-jonathan {
  background-image: url("assets/jonathan.jpg");
}

.quote-by .avatar-badge.avatar-heather {
  background-image: url("assets/heather.jpg");
}

.price-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 450;
  opacity: 0.86;
}

.price--plain {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.price--featured {
  /* Dark featured card */
  background: radial-gradient(120% 120% at 30% 0%, rgba(34, 211, 238, 0.16), rgba(11, 18, 32, 0) 55%),
    #0b1220;
  color: #FFFFFF;
  opacity: 1;
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.42);
}

.price--featured .price-subtitle {
  color: #FFFFFF;
}

.price--featured .price-desc,
.price--featured .checklist li,
.price--featured .price-term {
  color: #FFFFFF;
}

.price--featured .checklist li::before {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.price--featured .btn-primary {
  /* High-contrast CTA on dark card */
  background: #FFFFFF;
  color: #0b1220;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.price--featured .btn-primary:hover {
  box-shadow: none;
}

.pricing .price {
  /* Smoother hover: shorter transitions + GPU-friendly transform */
  will-change: transform;
  transform: translateZ(0);
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pricing .price:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

/* Pricing: checklist text should be regular weight */
.pricing .checklist li {
  font-weight: 400;
}

.checklist li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-2);
}

.card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.list li {
  margin: 8px 0;
  color: var(--muted);
  font-weight: 650;
}

.callout {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.callout h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.callout p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: -0.03em;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.step-body h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.step-body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.work {
  grid-template-columns: repeat(3, 1fr);
}

/* Case studies: featured tall card + two stacked cards */
#case-studies .work {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
}

#case-studies .work + .work {
  margin-top: 24px;
}

#case-studies .work-item--featured {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 520px;
}

/* Alternate grid: big card on the right, two small on the left */
#case-studies .work.work--alt {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

#case-studies .work.work--alt .work-item--featured {
  grid-column: 2;
  grid-row: 1 / span 2;
}

#case-studies .work-item--featured .work-thumb {
  height: auto;
  min-height: 360px;
}

.work-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-2);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.work-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

/* Case studies: remove card borders + drop shadows (including hover) */
#case-studies .work-item {
  border: none;
  box-shadow: none;
  position: relative;
}

#case-studies .work-item:hover {
  box-shadow: none;
}

#case-studies .work-item:focus-visible,
#case-studies .work-item:focus-within,
#case-studies .work-item:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
}

#case-studies .work-thumb {
  height: 100%;
}

#case-studies .work-item {
  min-height: 170px;
}

#case-studies .work-item--featured {
  min-height: 520px;
}

#case-studies .work-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  background: rgba(0, 0, 0, 0.0);
}

#case-studies .work-item:hover .work-meta,
#case-studies .work-item:focus-visible .work-meta,
#case-studies .work-item:focus-within .work-meta {
  opacity: 1;
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.86);
}

/* Case studies CTA */
.case-studies-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* Case studies page: search */
.case-search {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.case-search-input {
  width: min(620px, 100%);
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.case-search-input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.case-search-input:focus {
  border-color: rgba(255, 255, 255, 0.26);
}

.case-search-empty {
  margin-top: 10px;
}

::root[data-theme="light"] .case-search-input {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.04);
  color: rgba(11, 18, 32, 0.92);
}

::root[data-theme="light"] .case-search-input::placeholder {
  color: rgba(11, 18, 32, 0.6);
}

/* Touch devices: show meta by default (no hover) */
@media (hover: none) and (pointer: coarse) {
  #case-studies .work-meta {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-thumb {
  position: relative;
  overflow: hidden;
  height: 170px;
  background-size: cover;
  background-position: center;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-thumb-1 {
  background: transparent;
  background-image: url("assets/Image_CarHub.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.work-thumb-2 {
  background: transparent;
  background-image: url("assets/Image_DROP.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 170px;
}

.work-thumb-3 {
  background: transparent;
  background-image: url("assets/Image_garten.png");
  background-size: cover;
  background-repeat: no-repeat;
  /* show a bit more of the top vs default center */
  background-position: center 42%;
  height: 170px;
}

.work-thumb-noerr {
  background: transparent;
  background-image: url("assets/Image_Noerr.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 170px;
}

.work-thumb-infosys {
  background: transparent;
  background-image: url("assets/Image_Infosys.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 170px;
}

.work-thumb-invest {
  background: transparent;
  background-image: url("assets/Image_invest_com.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.work-meta {
  padding: 14px 14px 16px;
}

.work-title {
  font-weight: 450;
  letter-spacing: -0.02em;
}

.work-tags {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.testimonials {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quote {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  border: none;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

.quote p {
  margin: 0;
  color: var(--text);
  font-weight: 450;
  opacity: 0.86;
  line-height: 1.6;
  text-wrap: pretty;
  flex: 1;
}

.quote-by {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.65);
}

.quote-name {
  font-weight: 950;
  letter-spacing: -0.02em;
}

.quote-title {
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  margin-top: 1px;
  line-height: 1.35;
}

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

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

/* Membership pricing (4 tiers) */
.pricing-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Keep the two pricing CTAs aligned even if the copy length differs */
.pricing-2 .price-top {
  min-height: 220px;
}

/* Keep the 4-tier pricing CTAs aligned */
.pricing-4 .price-top {
  min-height: 150px;
}

/* Pricing cards: no border on either tier */
.pricing .price {
  border: none;
}

/* Pricing CTAs: identical sizing (prevents wrapping causing different heights) */
.pricing-2 .price > .btn {
  width: 100%;
  min-height: 50px;
  line-height: 1.1;
  white-space: nowrap;
}

.pricing-4 .price > .btn {
  width: 100%;
  min-height: 50px;
  line-height: 1.1;
  white-space: nowrap;
}

.pricing-compare-cta {
  margin-top: 18px;
  text-align: center;
}

.plans-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.plans-pricing {
  margin-top: 18px;
}

.plans-pricing .price-value {
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
}

/* Plans cards: align price with left text */
.plans-pricing .price-term {
  display: inline;
}

.billing-note {
  margin-top: 10px;
}

.price-off-badge {
  display: none;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

:root[data-billing="yearly"] .price-off-badge {
  display: inline-flex;
  align-items: center;
}

.billing-toggle {
  margin-top: 14px;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.billing-toggle-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 220ms cubic-bezier(0.16, 1, 0.3, 1),
    color 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.billing-toggle-btn[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.plans-table {
  min-width: 860px;
}

.plans-table thead th {
  border-top: none;
}

.plans-table td {
  text-align: center;
  font-weight: 800;
}

.plans-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.price {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto 1fr;
}

.price-top {
  display: grid;
  gap: 10px;
}

.plan-title {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.plan-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  flex: 0 0 auto;
}

.price--featured .plan-icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
}

.price-featured {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.22);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
  font-size: 12px;
}

.price-top h3 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 950;
  line-height: 1.05;
}

.plan-label {
  width: 100%;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 6px;
}

.price-desc {
  margin: 6px 0 0;
  color: var(--muted);
}

.price-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
}

.price-amount {
  font-weight: 950;
  letter-spacing: -0.03em;
  font-size: 26px;
}

.price-term {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.fineprint {
  margin-top: 12px;
  color: var(--muted-2);
  font-weight: 650;
  font-size: 13px;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -0.02em;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.contact {
  padding-bottom: 88px;
}

.cal-wrap {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cal-embed {
  width: 100%;
  min-height: 720px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Case study pages */
.case-hero {
  /* Hero media should start at the very top */
  padding-top: 0;
}

/* Case studies page (search hero): fill the viewport */
#stories.case-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.case-hero-media {
  /* Full-bleed (break out of .container) */
  width: 100vw;
  height: clamp(220px, 34vw, 420px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  border: none;
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-hero .section-head {
  /* Similar rhythm to home hero */
  margin-top: 14px;
}

.case-hero-content {
  padding-top: 86px; /* clears fixed header */
}

.case-video {
  width: 50%;
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

@media (max-width: 760px) {
  .case-video {
    width: 100%;
  }
}

.section-head-right {
  text-align: right;
  justify-items: end;
}

.section-head-wide-center {
  width: 100%;
  text-align: center;
  justify-items: center;
}

.section-head-left {
  text-align: left;
  justify-items: start;
}

.case-body {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

/* Left-aligned section heads shouldn't auto-center their paragraphs */
.section-head.section-head-left p {
  margin-left: 0;
  margin-right: 0;
}

/* If a section is explicitly left-aligned, keep body text left-aligned too */
.section-head-left .case-body {
  margin-left: 0;
  margin-right: 0;
}

.case-media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-media img {
  width: 100%;
  height: auto;
  display: block;
}

.case-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

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

.success-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-2);
}

.success-thumb {
  width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.success-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.success-cta {
  margin-top: 8px;
  display: inline-flex;
}

@media (max-width: 980px) {
  .case-two-col {
    grid-template-columns: 1fr;
  }
}

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

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  background: rgba(0, 0, 0, 0.15);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-left {
  display: grid;
  gap: 10px;
}

.muted {
  margin: 0;
  color: var(--muted-2);
  font-weight: 650;
  font-size: 13px;
}




/* Blog */
.blog {
  grid-template-columns: repeat(3, 1fr);
}

.post {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 10px;
}

:root[data-theme="light"] .post {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(11, 18, 32, 0.12);
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-date {
  color: var(--muted-2);
  font-weight: 800;
  font-size: 12px;
}

.post h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.post p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.post-link {
  margin-top: 4px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.post-link:hover {
  text-decoration: underline;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .work,
  .benefits-grid,
  .blog {
    grid-template-columns: 1fr;
  }
  .what-grid {
    grid-template-columns: 1fr;
  }
  #case-studies .work {
    grid-template-columns: 1fr;
  }
  #case-studies .work-item--featured {
    grid-row: auto;
    min-height: 0;
  }
  #case-studies .work-item--featured .work-thumb {
    min-height: 0;
    height: 170px;
  }
  .pricing-2 {
    grid-template-columns: 1fr;
  }
  .pricing-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-2 .price-top {
    min-height: 0;
  }
  .pricing-4 .price-top {
    min-height: 0;
  }
  .pricing-2 .price > .btn {
    white-space: normal;
  }
  .pricing-4 .price > .btn {
    white-space: normal;
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 760px) {
  .hero-simple {
    height: 580px;
  }
  .hero-simple--plans {
    height: 400px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 64px 12px auto 12px;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 18, 32, 0.86);
    backdrop-filter: blur(14px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

  .brand-in-nav {
    justify-self: start;
    padding: 10px 10px;
  }

  .nav-links {
    display: grid;
    gap: 8px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-greeting {
    width: 100%;
    justify-content: center;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero {
    padding-top: 46px;
  }

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

/* Theme support
   - Default = dark
   - When OS is light and mode is system, JS will set data-theme="light"
*/
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: rgba(11, 18, 32, 0.92);
  --muted: rgba(11, 18, 32, 0.68);
  --muted-2: rgba(11, 18, 32, 0.52);

  --panel: rgba(11, 18, 32, 0.04);
  --panel-2: rgba(11, 18, 32, 0.06);
  --stroke: rgba(11, 18, 32, 0.12);

  --shadow: 0 20px 80px rgba(11, 18, 32, 0.12);
  --shadow-2: 0 10px 30px rgba(11, 18, 32, 0.12);
}

/* Light theme: primary buttons are black everywhere */
:root[data-theme="light"] .btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: rgba(11, 18, 32, 0.18);
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.14);
}

:root[data-theme="light"] .btn-primary:hover {
  background: #000000;
  box-shadow: 0 22px 50px rgba(11, 18, 32, 0.16);
}

/* Ensure featured pricing CTAs follow the same rule (overrides `.price--featured .btn-primary`) */
:root[data-theme="light"] .price--featured .btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: rgba(11, 18, 32, 0.18);
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.14);
}

:root[data-theme="light"] .price--featured .btn-primary:hover {
  background: #000000;
  box-shadow: 0 22px 50px rgba(11, 18, 32, 0.16);
}

:root[data-theme="light"] body {
  background: var(--bg);
}

:root[data-theme="light"] .site-header {
  background: transparent;
  border-bottom: none;
}

:root[data-theme="light"] .site-header[data-scrolled="true"] {
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .btn-ghost {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.12);
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .btn-ghost:hover {
  background: rgba(11, 18, 32, 0.06);
}

:root[data-theme="light"] .pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(11, 18, 32, 0.12);
  color: rgba(11, 18, 32, 0.82);
}

:root[data-theme="light"] .pill-muted {
  background: rgba(11, 18, 32, 0.04);
  color: rgba(11, 18, 32, 0.62);
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .step,
:root[data-theme="light"] .quote,
:root[data-theme="light"] details,
:root[data-theme="light"] .price,
:root[data-theme="light"] .benefit,
:root[data-theme="light"] .work-item,
:root[data-theme="light"] .cal-wrap {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(11, 18, 32, 0.12);
}

:root[data-theme="light"] .work-item:hover {
  box-shadow: 0 26px 80px rgba(11, 18, 32, 0.16);
}

:root[data-theme="light"] .cal-embed {
  background: rgba(11, 18, 32, 0.02);
  border-color: rgba(11, 18, 32, 0.12);
}

:root[data-theme="light"] .video-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(11, 18, 32, 0.12);
}

:root[data-theme="light"] .video-thumb {
  background: rgba(11, 18, 32, 0.04);
}

:root[data-theme="light"] .quote-by .avatar-badge {
  background-color: rgba(34, 211, 238, 0.16);
  border-color: rgba(11, 18, 32, 0.12);
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .price--plain {
  background: rgba(11, 18, 32, 0.02);
  border-color: rgba(11, 18, 32, 0.12);
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.08);
}

:root[data-theme="light"] .pricing .price:hover {
  background-color: rgba(11, 18, 32, 0.03);
  box-shadow: 0 22px 70px rgba(11, 18, 32, 0.10);
}

:root[data-theme="light"] .price--featured {
  /* Light theme: black featured card */
  background: #000000;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 26px 78px rgba(11, 18, 32, 0.14);
}

:root[data-theme="light"] .price {
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.10);
}

:root[data-theme="light"] .price--featured .price-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .price--featured .price-desc,
:root[data-theme="light"] .price--featured .checklist li,
:root[data-theme="light"] .price--featured .price-term {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .price--featured .checklist li::before {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

:root[data-theme="light"] .price--featured .btn-primary {
  /* Keep CTA readable on the black card in light theme */
  background: #ffffff;
  color: #06101c;
  border-color: rgba(255, 255, 255, 0.35);
}

:root[data-theme="light"] .price-subtitle {
  color: rgba(11, 18, 32, 0.78);
}

:root[data-theme="light"] .checklist li::before {
  border-color: rgba(11, 18, 32, 0.12);
  color: rgba(11, 18, 32, 0.92);
}

:root[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

/* Footer theme control */
.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.footer-links a {
  padding: 10px 10px;
  border-radius: 12px;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

:root[data-theme="light"] .footer-links a:hover {
  background: rgba(11, 18, 32, 0.05);
  color: rgba(11, 18, 32, 0.92);
}

.theme-control {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .theme-control {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.04);
}

/* Language switcher */
.lang-select {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

:root[data-theme="light"] .lang-select {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 18, 32, 0.92);
}

.theme-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.theme-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.theme-label {
  line-height: 1;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

:root[data-theme="light"] .theme-btn:hover {
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.92);
}

.theme-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

:root[data-theme="light"] .theme-btn[aria-pressed="true"] {
  background: rgba(11, 18, 32, 0.08);
  border-color: rgba(11, 18, 32, 0.14);
  color: rgba(11, 18, 32, 0.92);
}

.theme-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

/* World time (footer) */
.world-time {
  display: grid;
  gap: 10px;
  width: 100%;
}

.world-time-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.world-time-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.world-time-city {
  color: var(--muted-2);
}

.world-time-value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track span {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
 
 
/* -------------------------------------------------------------------------- */
/* In-website game (FAB + modal)                                              */
/* -------------------------------------------------------------------------- */

.fab-game {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1800;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  /* Higher contrast, more "game UI" feel */
  background: linear-gradient(135deg, #070711 0%, #0f1020 45%, #2c2d61 100%);
  background-size: 200% 200%;
  animation: fabGradientShift 9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  backdrop-filter: blur(14px);
  /* Stronger bloom + inner contrast ring (still borderless) */
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 10px 18px rgba(255, 255, 255, 0.05),
    inset 0 -14px 22px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 28px rgba(34, 211, 238, 0.18),
    0 0 52px rgba(168, 85, 247, 0.14);
  color: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  will-change: transform, box-shadow, filter;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1),
    width 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Soft glow + sheen layers (no border/stroke) */
.fab-game::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(34, 211, 238, 0.30), rgba(34, 211, 238, 0) 62%),
    radial-gradient(55% 55% at 80% 80%, rgba(168, 85, 247, 0.24), rgba(168, 85, 247, 0) 64%),
    radial-gradient(50% 50% at 20% 80%, rgba(250, 204, 21, 0.14), rgba(250, 204, 21, 0) 62%);
  filter: blur(14px);
  opacity: 0.9;
  transform: translateZ(0);
  animation: fabGlow 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

.fab-game::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-140%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
}

.fab-game > * {
  position: relative;
  z-index: 1;
}

.fab-game svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

/* Inner glow layer (slow moving) */
.fab-game .fab-inner-glow {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 18% 18%, rgba(34, 211, 238, 0.26), rgba(34, 211, 238, 0) 56%),
    radial-gradient(120% 120% at 82% 82%, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0) 60%),
    conic-gradient(
      from 180deg at 50% 50%,
      rgba(34, 211, 238, 0.00),
      rgba(34, 211, 238, 0.12),
      rgba(168, 85, 247, 0.14),
      rgba(34, 211, 238, 0.00)
    );
  mix-blend-mode: screen;
  opacity: 0.68;
  filter: blur(2px);
  animation: fabInnerMove 8.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes fabInnerMove {
  0% { transform: rotate(0deg) scale(1); opacity: 0.45; }
  50% { transform: rotate(160deg) scale(1.03); opacity: 0.62; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.45; }
}

/* Ensure gradient stays in light theme too (override any theme-specific FAB background) */
:root[data-theme="light"] .fab-game {
  background: linear-gradient(135deg, #ffffff 0%, #f4f6fb 55%, #e9ecf5 100%);
  color: rgba(11, 18, 32, 0.92);
  box-shadow:
    0 18px 50px rgba(11, 18, 32, 0.18),
    inset 0 0 0 1px rgba(11, 18, 32, 0.10),
    inset 0 10px 18px rgba(255, 255, 255, 0.35),
    inset 0 -14px 22px rgba(11, 18, 32, 0.08),
    0 0 0 1px rgba(11, 18, 32, 0.06);
}

::root[data-theme="light"] .fab-game::before {
  opacity: 0.55;
  filter: blur(16px);
}

::root[data-theme="light"] .fab-game .fab-inner-glow {
  mix-blend-mode: multiply;
  opacity: 0.32;
}

::root[data-theme="light"] .fab-game svg {
  filter: drop-shadow(0 6px 12px rgba(11, 18, 32, 0.18));
}

::root[data-theme="light"] .fab-game.is-promo {
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.20);
}

::root[data-theme="light"] .fab-game:focus-visible {
  outline: 2px solid rgba(11, 18, 32, 0.22);
  outline-offset: 3px;
}

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

@keyframes fabGlow {
  0%, 100% { opacity: 0.62; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 0.92; transform: translate3d(0, -1px, 0) scale(1.03); }
}

.fab-game.is-promo {
  width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: none;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
}

.fab-game .fab-game-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    max-width 620ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-game.is-promo .fab-game-text {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 90ms;
}

.fab-game.is-promo svg {
  width: 20px;
  height: 20px;
}

.fab-game:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.10) saturate(1.06);
  box-shadow: 0 26px 86px rgba(0, 0, 0, 0.72);
}

.fab-game:hover::after {
  opacity: 0.85;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: fabSheen 900ms cubic-bezier(0.16, 1, 0.3, 1) 1;
}

.fab-game:active {
  transform: translateY(-1px) scale(0.98);
  filter: brightness(1.04) saturate(1.02);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.62);
}

.fab-game:active::after {
  opacity: 0;
  animation: none;
}

@keyframes fabSheen {
  0% { transform: translateX(-140%) skewX(-12deg); opacity: 0; }
  10% { opacity: 0.75; }
  100% { transform: translateX(140%) skewX(-12deg); opacity: 0; }
}

.fab-game:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 3px;
}

.fab-game svg {
  width: 22px;
  height: 22px;
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.game-overlay[data-open="true"] {
  display: grid;
  place-items: center;
}

.game-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.86);
  color: var(--text);
  box-shadow: 0 26px 120px rgba(0, 0, 0, 0.75);
  display: grid;
  grid-template-rows: auto 1fr;
}

.game-overlay[data-game-screen="onboarding"] .game-modal {
  width: min(500px, calc(100vw - 32px));
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.game-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.game-header-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
}

.game-header-stats strong {
  color: var(--text);
  font-weight: 900;
}

.game-overlay[data-game-screen="onboarding"] .game-header-stats {
  display: none;
}

.game-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.game-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.game-close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.game-body {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 0;
  min-height: 0;
}

.game-overlay[data-game-screen="onboarding"] .game-body {
  grid-template-columns: 1fr;
}

.game-overlay[data-game-screen="onboarding"] .game-stage {
  display: none;
}

.game-overlay[data-game-screen="onboarding"] .game-panel {
  border-left: none;
}

.game-stage {
  min-height: 0;
  padding: 16px;
}

.game-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  height: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-media-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

.game-media[data-state="hidden"] img,
.game-media[data-state="hidden"] .game-media-overlay {
  display: none;
}

.game-media[data-state="loading"] .game-media-overlay,
.game-media[data-state="error"] .game-media-overlay {
  opacity: 1;
  pointer-events: auto;
}

.game-media-message {
  max-width: 48ch;
  display: grid;
  gap: 10px;
}

.game-media-message .muted {
  color: var(--muted);
  font-weight: 500;
}

.game-media-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.game-media-link:hover {
  background: rgba(255, 255, 255, 0.10);
}

.game-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.game-map {
  height: 286px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* Leaflet base tweaks so it matches the UI */
.leaflet-container {
  background: #0b1220;
  font-family: inherit;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.game-answer {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 6px;
}

.game-answer a {
  text-decoration: underline;
}

.game-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
}

.game-h {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.game-p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.game-form {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.game-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.game-field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.game-field input:focus {
  border-color: rgba(255, 255, 255, 0.26);
}

.login-forgot {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.login-forgot a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
}

.login-forgot a:hover {
  opacity: 1;
}

/* Login page centering + full-height section */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page main#main {
  flex: 1;
  display: flex;
}

.login-page main#main > .section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Login page centering */
.login-page main#main .section > .container {
  max-width: 720px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.login-page .login-brand {
  margin-bottom: 10px;
  opacity: 0.92;
}

.login-page .login-brand .brand-logo {
  height: 26px;
}

.login-page .login-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.login-page .login-head-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 6px;
  border-radius: 12px;
}

.login-page main#main .section-head p {
  margin-left: auto;
  margin-right: auto;
}

.login-page main#main article.card {
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.login-page main#main .game-form {
  width: 100%;
  text-align: left;
}

.login-page main#main .game-actions .btn {
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
}

.login-page .login-id-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.login-page .login-id-value {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 650;
}

.login-page .btn-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--muted-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-page .btn-link:hover {
  color: var(--text);
}

.login-page .btn-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
  border-radius: 8px;
}

.game-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.game-players {
  display: grid;
  gap: 10px;
}

.game-player-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  cursor: pointer;
}

.game-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.game-scoreboard {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.game-scoreboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.game-rank {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  flex: 0 0 auto;
}

.game-score-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.game-score-val {
  color: var(--text);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .game-player-row {
    grid-template-columns: 1fr;
  }
}

.game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.game-stat {
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.game-stat strong {
  color: var(--text);
  font-weight: 900;
}

.game-cta {
  width: 100%;
}

.game-time {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 980px) {
  .game-body {
    grid-template-columns: 1fr;
  }
  .game-panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }
  .game-media {
    min-height: 300px;
  }
  .game-map {
    height: 264px;
  }
}

/* (Removed) legacy light-theme FAB override that killed the animated gradient */

:root[data-theme="light"] .game-modal {
  border-color: rgba(11, 18, 32, 0.14);
}

/* Featured pricing card theme override (valid selector: :root)
   Light theme: same as requested spec */
:root[data-theme="light"] .price--featured {
  background: #FFFFFF;
  color: #0b1220;
}

:root[data-theme="light"] .price--featured .price-subtitle,
:root[data-theme="light"] .price--featured .price-desc,
:root[data-theme="light"] .price--featured .checklist li,
:root[data-theme="light"] .price--featured .price-term {
  color: #0b1220;
}

:root[data-theme="light"] .price--featured .checklist li::before {
  border-color: rgba(11, 18, 32, 0.22);
  color: #0b1220;
}

:root[data-theme="light"] .price--featured .btn-primary {
  background: #0b1220;
  color: #FFFFFF;
  border-color: rgba(11, 18, 32, 0.28);
  box-shadow: none;
}

:root[data-theme="light"] .price--featured .btn-primary:hover {
  box-shadow: none;
}
