@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* styles/variables.css */
:root {
  --black: #000000;
  --white: #ffffff;
  --ink-92: rgba(0, 0, 0, 0.92);
  --ink-72: rgba(0, 0, 0, 0.72);
  --ink-54: rgba(0, 0, 0, 0.54);
  --ink-18: rgba(0, 0, 0, 0.18);
  --ink-10: rgba(0, 0, 0, 0.10);
  --ink-06: rgba(0, 0, 0, 0.06);
  --white-92: rgba(255, 255, 255, 0.92);
  --white-72: rgba(255, 255, 255, 0.72);
  --white-54: rgba(255, 255, 255, 0.54);
  --white-18: rgba(255, 255, 255, 0.18);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-06: rgba(255, 255, 255, 0.06);
  --accent: var(--black);
  --accent-hover: var(--ink-72);
  --btn-text: var(--white);
  --bg: var(--black);
  --surface: var(--white);
  --surface-elevated: var(--white);
  --surface-soft: var(--ink-06);
  --surface-muted: var(--ink-10);
  --text: var(--black);
  --text-secondary: var(--ink-54);
  --border: var(--ink-18);
  --header-bg: var(--black);
  --header-active: var(--white);
  --logo-title: var(--white);
  --hero-bg: var(--white);
  --icon-bg: var(--ink-06);
  --icon-text: var(--black);
  --link: var(--black);
  --link-hover: var(--ink-72);
  --track-thumb: var(--ink-18);
  --link-card-text: var(--black);
  --link-card-hover-border: var(--black);
  --link-card-hover-shadow: var(--ink-10);
  --favicon-chip-bg: var(--ink-06);
  --favicon-chip-border: var(--ink-18);
  --list-border: var(--ink-10);
  --footer-bg: var(--black);
  --footer-text: var(--white-72);
  --footer-icon-hover: var(--white);
  --shadow-soft: 0 12px 30px var(--ink-06);
  --shadow-card-hover: 0 16px 40px var(--ink-10);
  --focus-ring: var(--ink-54);
  --focus-ring-color: rgba(0, 0, 0, 0.55);

  /* Dark app surfaces */
  --bg-page: #0b0c0d;
  --surface-1: #101214;
  --surface-2: #15181b;
  --text-primary: #f4f5f5;
  --text-muted: #a4aab0;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Spacing */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 52px;
  --space-9: 64px;

  /* Radius roles */
  --radius: 14px;
  --radius-panel: 18px;
  --radius-control: 10px;
  --radius-tag: 8px;

  --padding: clamp(var(--space-4), 2.2vw, var(--space-6));
  --section-padding: clamp(var(--space-6), 5.2vw, var(--space-8));
  --section-padding-compact: clamp(var(--space-4), 3.2vw, var(--space-6));

  /* Layers */
  --z-background: 0;
  --z-content: 1;
  --z-dropdown: 90;

  /* Ambient background video */
  --ambient-base: #090b0c;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 140ms;
  --duration-ui: 180ms;
  --duration-panel: 240ms;

  /* Font */
  --font-main: "Manrope", system-ui, -apple-system, sans-serif;
}

/* styles/globals.css */
html,
body,
#root {
  min-height: 100%;
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
svg {
  -webkit-user-drag: none;
  user-select: none;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

main {
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
}

:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

input[type="search"]:focus-visible {
  outline: none;
}

/* Reusable Helpers */
.container {
  max-width: 1160px;
  margin: auto;
  padding: var(--padding);
}

.card {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: var(--btn-text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out);
  box-shadow: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink-72);
  color: var(--white);
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* styles/header/base.css */
/* HEADER BASE */
.header {
  --surface: var(--black);
  --surface-soft: var(--white-06);
  --surface-muted: var(--white-10);
  --text: var(--white);
  --text-secondary: var(--white-54);
  --border: var(--white-18);
  --link: var(--white);
  --link-card-hover-border: var(--white);
  --shadow-soft: none;
  --shadow-card-hover: none;
  --focus-ring-color: rgba(255, 255, 255, 0.55);
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--white-10);
  padding: var(--space-3) 0;
  font-family: var(--font-main);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: none;
  transition: background-color 0.24s ease;
}

body.header-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* LAYOUT */
.header-container {
  max-width: 1160px;
  margin: auto;
  padding: 0 var(--padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
}

.header-left {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

/* LOGO + TEXT BLOCK */
.logo-block {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

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

.logo-link:visited {
  color: inherit;
}

/* LOGO */
.header-logo {
  width: 220px;
  height: 60px;
  object-fit: cover;
  object-position: center 52%;
  border-radius: 0;
  opacity: 1;
  mix-blend-mode: screen;
  user-select: none;
  -webkit-user-drag: none;
}

/* TEXT NEXT TO LOGO */
.logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--logo-title);
  margin: 0 0 2px 0;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1;
}

.header-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
  min-width: 0;
  grid-column: 2;
}

.header-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 4px var(--space-2);
  transition: color 0.28s ease;
}

.header .logo-link:link,
.header .logo-link:visited {
  color: inherit;
}

.header-nav .header-link,
.header-nav .header-link:link,
.header-nav .header-link:visited {
  color: var(--text-secondary);
}

.header-nav .header-link:hover,
.header-nav .header-link:focus-visible {
  color: var(--text);
}

.header-nav .header-link.active,
.header-nav .header-link.active:link,
.header-nav .header-link.active:visited {
  color: var(--header-active);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  min-width: 0;
}

.header-menu-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.header-menu-button span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform var(--duration-ui) var(--ease-out),
    top var(--duration-ui) var(--ease-out),
    opacity var(--duration-ui) var(--ease-out);
}

.header-menu-button span:first-child {
  top: 16px;
}

.header-menu-button span:last-child {
  top: 23px;
}

.header-menu-button:hover,
.header-menu-button:focus-visible {
  background: var(--white-06);
}

.header.menu-open .header-menu-button span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.header.menu-open .header-menu-button span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.header-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.header-timezone {
  position: relative;
}

.header-timezone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--white-18);
  border-radius: var(--radius-control);
  background: var(--white-06);
  color: var(--white-72);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.header-timezone-button:hover,
.header-timezone-button:focus-visible,
.header-timezone-button[aria-expanded="true"] {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--white);
}

.header-timezone-button:active {
  transform: scale(0.97);
}

@keyframes menu-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.header-timezone-menu {
  transform-origin: top right;
  animation: menu-pop var(--duration-ui) var(--ease-out);
}

.header-timezone-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  display: grid;
  width: min(260px, calc(100vw - 24px));
  max-height: min(360px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--white-10);
  border-radius: 12px;
  background: #111111;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.header-timezone-menu[hidden] {
  display: none;
}

.header-timezone-search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--white-10);
  border-radius: 9px;
  background: var(--white-06);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.header-timezone-search::placeholder {
  color: var(--white-54);
}

.header-timezone-search:focus {
  border-color: var(--white-54);
}

.header-timezone-list {
  display: grid;
  gap: 2px;
}

.header-timezone-option {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-tag);
  background: transparent;
  color: var(--white-72);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.header-timezone-empty {
  padding: 8px 10px;
  color: var(--white-54);
  font-size: 13px;
  font-weight: 700;
}

.header-timezone-empty[hidden] {
  display: none;
}

.header-timezone-option:hover,
.header-timezone-option:focus-visible,
.header-timezone-option.selected {
  background: var(--white-10);
  color: var(--white);
}

.header-logout-form {
  display: inline;
  margin: 0;
}

.header-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--white-18);
  border-radius: var(--radius-control);
  background: var(--white-06);
  color: var(--white-72);
  text-decoration: none;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.header-settings-link:visited {
  color: var(--white-72);
}

.header-settings-link:hover,
.header-settings-link:focus-visible,
.header-settings-link.active {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--white);
}

.header-settings-link:active {
  transform: scale(0.97);
}

.header-settings-icon {
  width: 18px;
  height: 18px;
}

.header-auth-link {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  padding: var(--space-1) 0 var(--space-2);
  transition: color 0.28s ease;
}

.header-auth-link:visited {
  color: var(--text-secondary);
}

.header-auth-link:hover,
.header-auth-link:focus-visible {
  color: var(--text);
}

.header-auth-button {
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--white-18);
  border-radius: var(--radius-control);
  background: var(--white-06);
  color: var(--white-72);
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.header-auth-button:hover,
.header-auth-button:focus-visible {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--white);
}

.header-auth-button:active {
  transform: scale(0.97);
}

.header-auth-button::after {
  display: none;
}

.header-auth-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform var(--duration-panel) var(--ease-out),
    opacity var(--duration-ui) var(--ease-out);
}

.header-auth-link:hover::after,
.header-auth-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.72;
}

.header-link {
  user-select: none;
  -webkit-user-drag: none;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform var(--duration-panel) var(--ease-out),
    opacity var(--duration-ui) var(--ease-out);
}

.header-link:hover::after,
.header-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.72;
}

.header-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* styles/header/responsive.css */
@media (max-width: 1120px) {
  .header-nav {
    gap: var(--space-5);
  }

  .header-link {
    font-size: 14px;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    font-size: 13px;
  }
}

@media (max-width: 920px) {
  .header-container {
    padding: 0 var(--space-3);
    grid-template-columns: auto 1fr auto;
    gap: var(--space-3);
  }

  .header-nav {
    gap: var(--space-4);
    grid-column: auto;
    justify-content: center;
  }

  .logo-block {
    gap: var(--space-2);
  }

  .header-logo {
    width: 132px;
    height: 44px;
  }

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    display: none;
  }
}

@media (max-width: 760px) {
  .header {
    padding: var(--space-2) 0;
  }

  .header.menu-open {
    background: var(--black);
  }

  .header-container {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo actions";
    column-gap: var(--space-3);
    padding: 0 var(--space-3);
  }

  .header-left {
    grid-area: logo;
  }

  .header-actions {
    grid-area: actions;
    gap: var(--space-2);
  }

  .header-auth-actions {
    gap: var(--space-2);
  }

  .header-nav {
    grid-area: nav;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: grid;
    align-content: start;
    gap: 0;
    width: 100%;
    min-height: 0;
    padding: var(--space-5) var(--space-5) var(--space-6);
    border-top: 1px solid var(--white-10);
    background: var(--black);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .header-nav .header-link,
  .header-nav .header-link:link,
  .header-nav .header-link:visited {
    padding: 13px 0;
    color: var(--white-92);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.08;
    white-space: normal;
  }

  .header-logo {
    width: 96px;
    height: 34px;
  }

  .header-auth-link {
    font-size: 12px;
  }

  .header-auth-button {
    min-height: 36px;
    padding: 0 10px;
  }

  .header-settings-link {
    width: 36px;
    height: 36px;
  }

  .header-settings-icon {
    width: 15px;
    height: 15px;
  }

  .header-timezone-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-timezone-menu {
    right: -44px;
    max-height: min(360px, calc(100dvh - 72px));
  }

  .header-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header.menu-open .header-nav {
    z-index: 79;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .header-link::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-container {
    column-gap: var(--space-2);
    padding: 0 var(--space-3);
  }

  .header-logo {
    width: 82px;
    height: 30px;
  }

  .header-nav {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .header-nav .header-link {
    font-size: 1.35rem;
  }

  .header-auth-link {
    font-size: 12px;
  }

  .header-auth-button {
    min-height: 36px;
    padding: 0 8px;
  }

  .header-settings-link {
    width: 36px;
    height: 36px;
  }

  .header-settings-icon {
    width: 14px;
    height: 14px;
  }

  .header-timezone-button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .header-logo {
    width: 74px;
    height: 28px;
  }

  .header-nav .header-link {
    font-size: 1.22rem;
  }

  .header-auth-link {
    font-size: 12px;
  }

  .header-timezone-menu {
    right: -54px;
  }
}

/* styles/home/hero.css */
/* ================= HERO ================= */
.hero {
  background: transparent;
  padding: var(--section-padding) 0;
  text-align: center;
}

.hero-main {
  min-height: calc(66vh - 74px);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero-main-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-main-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  --hero-rail: 620px;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: var(--space-4);
  padding: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: none;
}

.hero-subtitle {
  max-width: min(54ch, var(--hero-rail));
  margin: var(--space-3) 0 var(--space-5);
  font-size: clamp(1.06rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  width: min(100%, var(--hero-rail));
  margin: 0 auto;
}

.hero-btn {
  margin-top: 0;
  min-width: 0;
  width: 100%;
  text-align: center;
  padding: 13px var(--space-4);
}

.hero-actions .btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.hero-invite-card {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  width: min(100%, var(--hero-rail));
}

.hero-invite-main {
  margin: 0 0 var(--space-1);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-invite-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* styles/home/dashboard.css */
/* ============================================================
   NoOr app surfaces — dark data product system
   Roles: page #0b0c0d, surface #101214, elevated #15181b
   Radius: panels 18px, controls 10-12px, tags 6-8px
   ============================================================ */

.dashboard-page {
  --table-body-size: 0.95rem;
  --table-head-size: 0.75rem;
  --table-row-padding-y: 10px;
  --table-row-padding-x: var(--space-4);
  --table-row-min-height: 58px;
  --accent-green: rgb(190, 246, 218);
  --accent-red: rgb(244, 188, 188);
  --green-soft: rgba(128, 218, 172, 0.55);
  --red-soft: rgba(218, 128, 128, 0.55);
  --row-hover: rgba(255, 255, 255, 0.03);
  --row-current: rgba(255, 255, 255, 0.05);
  --focus-ring-color: rgba(255, 255, 255, 0.55);
  background: var(--bg-page);
  color: var(--text-primary);
}

.dashboard-section {
  flex: 1;
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 68%),
    var(--bg-page);
}

/* ------------------------------------------------------------
   Ambient background — "Heavenly light through dark clouds"
   One muted looping video behind dashboard content: real
   footage of sunlight breaking through layered dark clouds.
   Static overlay + vignette keep content readable; no motion is
   added on top of the footage. Layer is JS-generated on
   dashboard pages only; these rules apply once it exists.
   ------------------------------------------------------------ */

.ambient-video {
  position: fixed;
  inset: 0;
  z-index: var(--z-background);
  overflow: hidden;
  pointer-events: none;
  background: var(--ambient-base);
  background-size: cover;
  background-position: center 40%;
}

.ambient-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.85;
}

/* Static dark fallback when the source fails to load. */
.ambient-video.is-fallback .ambient-video__media {
  display: none;
}

.ambient-video__tint,
.ambient-video__overlay,
.ambient-video__vignette {
  position: absolute;
  inset: 0;
}

.ambient-video__overlay {
  background: rgba(4, 6, 8, 0.24);
}

.ambient-video__vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(2, 4, 5, 0.14) 72%,
    rgba(2, 4, 5, 0.4) 100%
  );
}

.ambient-video__tint {
  opacity: 0;
  transition:
    opacity 1000ms var(--ease-in-out),
    background-color 1000ms var(--ease-in-out);
}

.ambient-video[data-state="yes"] .ambient-video__tint {
  opacity: 1;
  background: rgba(146, 210, 176, 0.05);
}

.ambient-video[data-state="no"] .ambient-video__tint {
  opacity: 1;
  background: rgba(214, 156, 156, 0.05);
}

/* Stacking: video at layer 0, dashboard content isolated above.
   Header (80), dropdowns (90), modals, and toast keep their own
   higher layers. */
body.has-ambient-video {
  background: var(--ambient-base);
}

body.has-ambient-video .dashboard-page {
  position: relative;
  z-index: var(--z-content);
  isolation: isolate;
  background: transparent;
}

body.has-ambient-video .dashboard-section {
  background: transparent;
}

/* Surfaces stay near-opaque for readability; the YES/NO area
   may reveal slightly more atmosphere than data panels. */
body.has-ambient-video .dashboard-card,
body.has-ambient-video .dashboard-current,
body.has-ambient-video .dashboard-timer-card {
  background: rgba(16, 18, 20, 0.94);
}

body.has-ambient-video .dashboard-actions {
  background: rgba(16, 18, 20, 0.84);
}

.dashboard-section>.container {
  margin: 0 auto;
}

.dashboard-container {
  width: min(100%, 1160px);
}

.home-page .dashboard-head,
.home-page .dashboard-answer-status {
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
}

.home-page .dashboard-current {
  width: 100%;
}

.dashboard-head {
  text-align: center;
  margin-bottom: var(--space-5);
}

.dashboard-kicker {
  margin: 0 0 var(--space-1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   YES / NO decision area — the one surface that keeps gradients
   ------------------------------------------------------------ */

.dashboard-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-bottom: var(--space-4);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface-1);
}

.dashboard-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 172px;
  padding: var(--space-6);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.dashboard-action+.dashboard-action {
  border-left: 1px solid var(--border-subtle);
}

.dashboard-action-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto;
}

.dashboard-action-label {
  color: var(--text-primary);
  font-size: clamp(3.2rem, 5.6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.dashboard-action-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.3;
  transition: color var(--duration-ui) var(--ease-out);
}

.dashboard-action-selected-icon {
  display: none;
}

.dashboard-action-yes {
  background: linear-gradient(180deg, rgba(128, 218, 172, 0.08), rgba(128, 218, 172, 0.03));
}

.dashboard-action-no {
  background: linear-gradient(180deg, rgba(218, 128, 128, 0.08), rgba(218, 128, 128, 0.03));
}

.dashboard-action-yes:hover,
.dashboard-action-yes:focus-visible {
  background: linear-gradient(180deg, rgba(128, 218, 172, 0.16), rgba(128, 218, 172, 0.06));
}

.dashboard-action-no:hover,
.dashboard-action-no:focus-visible {
  background: linear-gradient(180deg, rgba(218, 128, 128, 0.16), rgba(218, 128, 128, 0.06));
}

.dashboard-action:hover .dashboard-action-subtitle,
.dashboard-action:focus-visible .dashboard-action-subtitle {
  color: var(--text-primary);
}

.dashboard-action:active {
  transform: scale(0.98);
}

.dashboard-action-yes.selected {
  background: linear-gradient(180deg, rgba(146, 226, 184, 0.94), rgba(190, 246, 218, 0.9));
  color: var(--black);
}

.dashboard-action-no.selected {
  background: linear-gradient(180deg, rgba(224, 142, 142, 0.94), rgba(244, 188, 188, 0.9));
  color: var(--black);
}

.dashboard-action.selected .dashboard-action-label,
.dashboard-action.selected .dashboard-action-subtitle {
  color: var(--black);
}

.dashboard-action.selected .dashboard-action-subtitle {
  opacity: 0.72;
}

.dashboard-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.dashboard-action.selected:disabled {
  opacity: 1;
}

/* ------------------------------------------------------------
   Buttons on dark surfaces
   ------------------------------------------------------------ */

.dashboard-page .btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.dashboard-page .btn-primary:hover,
.dashboard-page .btn-primary:focus-visible {
  background: var(--white-92);
  color: var(--black);
  border-color: var(--white-92);
}

.dashboard-page .btn-secondary {
  background: var(--white-06);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.dashboard-page .btn-secondary:hover,
.dashboard-page .btn-secondary:focus-visible {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--white);
}

.dashboard-answer-status {
  min-height: 0;
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.dashboard-answer-status:empty {
  display: none;
}

/* ------------------------------------------------------------
   Timer card
   ------------------------------------------------------------ */

.dashboard-timer-label {
  margin: 0 0 var(--space-1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-timer-value {
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.dashboard-timer-card {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface-1);
}

.dashboard-timer-card[hidden] {
  display: none;
}

.dashboard-timer-copy {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.dashboard-timer-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white-10);
}

.dashboard-timer-progress {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--white-72);
  transition: width 1s linear;
}

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */

.app-toast {
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 100;
  max-width: min(360px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--text-primary);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast[data-variant="error"] {
  border-color: var(--red-soft);
}

/* ------------------------------------------------------------
   Cards — flat surfaces, no decorative motion
   ------------------------------------------------------------ */

.dashboard-current,
.dashboard-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface-1);
  margin-bottom: var(--space-4);
}

.dashboard-current {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 0.8fr) minmax(380px, 1.3fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
}

.dashboard-current>div {
  min-width: 0;
}

.dashboard-label {
  margin: 0 0 var(--space-1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.dashboard-value {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}

.dashboard-value-unit {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.home-page .dashboard-current .dashboard-value {
  font-size: 1.7rem;
}

.dashboard-holder-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-week {
  display: grid;
  grid-template-columns: repeat(7, 38px);
  gap: var(--space-3);
  justify-content: start;
}

.dashboard-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-day.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.dashboard-day.missed {
  border-color: var(--border-strong);
  background: var(--white-10);
  color: var(--text-primary);
}

.dashboard-card {
  padding: var(--space-5);
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dashboard-card-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.dashboard-card-head span {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.home-page .dashboard-card .dashboard-card-head {
  margin-bottom: var(--space-3);
}

/* ------------------------------------------------------------
   Data tables — shared system (leaderboard + prayers)
   ------------------------------------------------------------ */

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

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-primary);
  font-size: var(--table-body-size);
}

.leaderboard-table th,
.leaderboard-table td {
  padding: var(--table-row-padding-y) var(--table-row-padding-x);
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table thead th {
  padding-top: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--table-head-size);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.leaderboard-table td {
  height: var(--table-row-min-height);
  font-weight: 500;
  border-top: 1px solid var(--white-06);
  transition: background var(--duration-fast) var(--ease-out);
}

.leaderboard-table tbody tr:first-child td {
  border-top: 0;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  width: 56px;
  color: var(--text-muted);
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  width: auto;
}

@media (hover: hover) and (pointer: fine) {
  .leaderboard-table:not(.prayer-table) tbody tr:hover td {
    background: var(--row-hover);
  }
}

.leaderboard-table:not(.prayer-table) tbody tr:focus-within td {
  background: var(--row-hover);
}

.leaderboard-table tbody tr.is-current td {
  background: var(--row-current);
}

.leaderboard-table tbody tr.is-current td:first-child {
  box-shadow: inset 2px 0 0 var(--white-72);
}

.leaderboard-table tbody tr.is-current .leaderboard-rank {
  color: var(--text-primary);
}

.leaderboard-head-label,
.leaderboard-user,
.leaderboard-streak {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  line-height: 1.3;
}

.leaderboard-head-label-right,
.leaderboard-streak {
  justify-content: flex-end;
}

.leaderboard-rank {
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.leaderboard-streak {
  width: 100%;
  gap: var(--space-3);
  font-size: var(--table-body-size);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.leaderboard-streak-value {
  white-space: nowrap;
}

/* Rendered between value and tag; only shown in the compact mobile variant */
.leaderboard-streak-separator {
  display: none;
  color: var(--text-muted);
  font-weight: 500;
}

.leaderboard-missed-tag {
  /* Desktop keeps the pill left of the value so streak numbers stay aligned */
  order: -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tag);
  background: var(--white-06);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.leaderboard-missed-tag:hover,
.leaderboard-missed-tag:focus-visible {
  border-color: var(--border-strong);
  background: var(--white-10);
  color: var(--text-primary);
}

.leaderboard-missed-tag:active {
  transform: scale(0.97);
}

.leaderboard-missed-tag.is-static {
  cursor: default;
  pointer-events: none;
}

.leaderboard-icon,
.leaderboard-row-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.leaderboard-icon {
  color: var(--text-muted);
}

.leaderboard-row-icon {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.user-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  color: var(--text-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 6px;
  transition: color var(--duration-ui) var(--ease-out);
}

.user-link:hover,
.user-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--white-54);
}

.user-link:hover .leaderboard-row-icon,
.user-link:focus-visible .leaderboard-row-icon {
  color: var(--text-primary);
}

/* Table empty states */
.leaderboard-table td.leaderboard-empty {
  height: auto;
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--text-muted);
}

p.leaderboard-empty {
  margin: 0;
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--text-muted);
}

.table-empty-title {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.table-empty-hint {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   Info grid (community page + shared panels)
   ------------------------------------------------------------ */

.info-container {
  width: min(100%, 1160px);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  /* Row is at least the panel height but grows with content, so long
     resource entries never clip while panels still stretch evenly. */
  grid-template-rows: minmax(var(--info-panel-height), auto);
  gap: var(--space-5);
  align-items: stretch;
  --info-panel-height: 700px;
}

.community-page .info-grid {
  --info-panel-height: clamp(868px, calc(100vh - 132px), 940px);
}

/* Resource row is content-sized so variable-length entries never clip;
   the telegram row absorbs remaining column height. */
.info-column {
  display: grid;
  gap: var(--space-5);
  grid-template-rows: minmax(220px, auto) auto minmax(240px, 1fr);
  min-height: 0;
}

.info-column .dashboard-card {
  min-height: 0;
}

.info-grid .dashboard-card {
  margin-bottom: 0;
}

.info-motivation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.info-motivation blockquote {
  margin: 0;
  color: var(--text-primary);
  max-width: 24ch;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}

.info-quote-source {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.info-resource {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-resource-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.info-resource-head > div {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.info-resource .dashboard-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-resource-head h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  text-wrap: balance;
}

.info-resource-head > span {
  margin-top: 1px;
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tag);
  background: var(--white-06);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.info-resource-source,
.info-resource-summary,
.info-resource-action p {
  margin: 0;
}

.info-resource-source {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.info-resource-summary {
  max-width: 56ch;
  color: var(--white-92);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.info-resource-action {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}

.info-resource-action > p:last-child {
  max-width: 56ch;
  color: var(--white-92);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.info-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  border-radius: var(--radius-tag);
  color: var(--white-72);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.info-resource-link:hover,
.info-resource-link:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.info-resource-link:active {
  color: var(--white-72);
}

.telegram-card-copy {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.telegram-connect-button {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
}

.info-telegram-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: space-between;
  gap: var(--space-4);
  margin-bottom: 0;
  padding: var(--space-5);
}

/* ------------------------------------------------------------
   Prayer tables — streamlined rows on desktop, stacked on mobile
   ------------------------------------------------------------ */

.prayer-table td.prayer-row-actions {
  width: 56px;
  min-width: 56px;
  padding-left: 0;
  padding-right: var(--space-3);
  text-align: right;
}

.prayer-row-actions .action-menu-trigger {
  margin-top: -6px;
}

.prayer-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.prayer-page .prayer-table-wrap,
.info-prayers .prayer-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.prayer-table th:first-child,
.prayer-table td:first-child {
  width: 190px;
  min-width: 150px;
}

.prayer-table th:nth-child(2),
.prayer-table td:nth-child(2) {
  width: auto;
  text-align: left;
  white-space: normal;
}

.prayer-table td {
  height: auto;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  vertical-align: top;
}

.prayer-table .leaderboard-user {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.prayer-table .leaderboard-row-icon {
  width: 16px;
  height: 16px;
}

.prayer-entry {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.prayer-message-text {
  margin: 0;
  max-width: 64ch;
  color: #c6cacd;
  font-size: var(--table-body-size);
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.prayer-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.prayer-reactions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.prayer-reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tag);
  background: var(--white-06);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.prayer-reaction-button.selected {
  border-color: var(--border-strong);
  background: var(--white-10);
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   Action menu — reusable row-action pattern (trigger + menu)
   ------------------------------------------------------------ */

.action-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.action-menu-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.action-menu-trigger:hover,
.action-menu-trigger:focus-visible {
  background: var(--white-06);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.action-menu-trigger[aria-expanded="true"] {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.action-menu-trigger:active {
  transform: scale(0.97);
}

@media (hover: none) and (pointer: coarse) {
  .action-menu-trigger {
    width: 40px;
    height: 40px;
  }
}

.action-menu {
  position: fixed;
  z-index: var(--z-dropdown);
  display: grid;
  width: max-content;
  min-width: 188px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform-origin: top right;
  animation: action-menu-in var(--duration-ui) var(--ease-out);
}

.action-menu[data-placement="top"] {
  transform-origin: bottom right;
  animation-name: action-menu-in-up;
}

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

.action-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-tag);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.action-menu-item[hidden] {
  display: none;
}

.action-menu-item .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.action-menu-item:hover,
.action-menu-item:focus-visible {
  background: var(--white-06);
  color: var(--text-primary);
}

.action-menu-item:disabled {
  cursor: wait;
  opacity: 0.55;
  background: transparent;
  color: var(--text-muted);
}

@keyframes action-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes action-menu-in-up {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   Prayer form (my prayers page)
   ------------------------------------------------------------ */

.prayer-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--space-5);
  --prayer-panel-height: 470px;
}

.prayer-form {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto;
  gap: var(--space-4);
  height: var(--prayer-panel-height);
  padding: var(--space-5);
}

.prayer-card-intro {
  display: grid;
  gap: var(--space-1);
}

.prayer-card-intro h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.prayer-card-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40ch;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.prayer-field {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-2);
  margin-bottom: 0;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-primary);
  min-height: 0;
  cursor: text;
  transition: border-color var(--duration-ui) var(--ease-out);
}

.prayer-field>span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.prayer-field:focus-within {
  border-color: var(--white-54);
}

.prayer-field:focus-within>span {
  color: var(--text-primary);
}

.prayer-field textarea {
  width: 100%;
  resize: none;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  outline: none;
  caret-color: var(--white);
}

.prayer-field textarea::placeholder {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.prayer-field textarea:focus {
  outline: none;
}

.prayer-form .auth-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
}

.prayer-form-status {
  display: none;
}

.prayer-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--prayer-panel-height);
}

.prayer-list-card .dashboard-card-head {
  flex: 0 0 auto;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.prayer-list-card .dashboard-card-head div {
  display: grid;
  gap: var(--space-1);
}

.info-prayers .dashboard-card-head {
  align-items: flex-start;
}

.info-prayers .dashboard-card-head div {
  display: grid;
  gap: var(--space-1);
}

.info-prayers {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------
   Prayer filters — header stays visible, panel expands below
   ------------------------------------------------------------ */

.prayer-filter-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.prayer-panel-copy {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.prayer-panel-copy h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.prayer-panel-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.prayer-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--white-06);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.prayer-filter-button:hover,
.prayer-filter-button:focus-visible,
.prayer-filter-button[aria-expanded="true"] {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.prayer-filter-button:active {
  transform: scale(0.97);
}

.prayer-filter-glyph,
.prayer-filter-glyph::before,
.prayer-filter-glyph::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.prayer-filter-glyph {
  position: relative;
}

.prayer-filter-glyph::before,
.prayer-filter-glyph::after {
  content: "";
  position: absolute;
  left: 0;
}

.prayer-filter-glyph::before {
  top: -6px;
}

.prayer-filter-glyph::after {
  top: 6px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.prayer-filter-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.62fr) auto;
  gap: var(--space-3);
  align-items: end;
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-2);
  animation: panel-in var(--duration-panel) var(--ease-drawer);
}

.prayer-filter-panel[hidden] {
  display: none;
}

.prayer-filter-field {
  position: relative;
  display: grid;
  gap: var(--space-1);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.prayer-filter-combo,
.prayer-select {
  position: relative;
  display: block;
}

.prayer-filter-control {
  min-height: 44px;
  width: 100%;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-1);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out);
}

.prayer-filter-control::placeholder {
  color: var(--text-muted);
}

.prayer-filter-control:hover,
.prayer-filter-control:focus,
.prayer-select-trigger[aria-expanded="true"] {
  background: var(--surface-2);
  border-color: var(--white-54);
}

.prayer-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
  text-align: left;
}

.prayer-select-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--duration-ui) var(--ease-out);
}

.prayer-select-trigger[aria-expanded="true"] .prayer-select-chevron {
  transform: rotate(225deg) translateY(-2px);
}

.prayer-filter-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 190px;
  overflow-y: auto;
  padding: var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
  transform-origin: top left;
  animation: panel-in var(--duration-ui) var(--ease-out);
}

.prayer-filter-menu[hidden] {
  display: none;
}

.prayer-filter-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-tag);
  background: transparent;
  color: var(--white-72);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.prayer-filter-menu button+button {
  margin-top: 2px;
}

.prayer-filter-menu button:hover,
.prayer-filter-menu button:focus-visible,
.prayer-filter-menu button.selected {
  background: var(--white-10);
  color: var(--text-primary);
}

.prayer-filter-empty {
  display: block;
  padding: var(--space-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.prayer-filter-clear {
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--white-72);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.prayer-filter-clear:hover,
.prayer-filter-clear:focus-visible {
  background: var(--white-06);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   Modals — backdrop fade + dialog scale, focus kept inside
   ------------------------------------------------------------ */

.prayer-reaction-modal[hidden],
.missed-answer-modal[hidden],
.settings-confirm-modal[hidden] {
  display: none;
}

.prayer-reaction-modal,
.missed-answer-modal,
.settings-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.prayer-reaction-backdrop,
.missed-answer-backdrop,
.settings-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
  animation: backdrop-in 220ms var(--ease-out);
}

.prayer-reaction-dialog,
.missed-answer-dialog,
.settings-confirm-dialog {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  background: var(--surface-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  animation: dialog-in 220ms var(--ease-out);
}

.prayer-reaction-dialog {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
}

.missed-answer-dialog,
.settings-confirm-dialog {
  display: grid;
  gap: var(--space-4);
  width: min(100%, 420px);
  padding: var(--space-5);
}

.missed-answer-head,
.settings-confirm-head {
  display: grid;
  gap: var(--space-1);
}

.missed-answer-head h2,
.settings-confirm-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.settings-confirm-head p:last-child {
  margin: 0;
  color: var(--white-72);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.missed-answer-actions,
.settings-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.settings-confirm-button {
  min-height: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--white-06);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.settings-confirm-save {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.settings-confirm-button:hover,
.settings-confirm-button:focus-visible {
  background: var(--white-10);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.settings-confirm-save:hover,
.settings-confirm-save:focus-visible {
  background: var(--white-92);
  border-color: var(--white-92);
  color: var(--black);
}

.settings-confirm-button:active {
  transform: scale(0.98);
}

.settings-confirm-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.missed-answer-actions .dashboard-action {
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.missed-answer-actions .dashboard-action-yes {
  background: var(--white);
  color: var(--black);
}

.missed-answer-actions .dashboard-action-no {
  background: var(--white-06);
  color: var(--text-primary);
}

.missed-answer-actions .dashboard-action:hover,
.missed-answer-actions .dashboard-action:focus-visible {
  background: var(--white-10);
}

.missed-answer-actions .dashboard-action-yes:hover,
.missed-answer-actions .dashboard-action-yes:focus-visible {
  background: var(--white-92);
  color: var(--black);
}

.prayer-reaction-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.22rem;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.prayer-reaction-choice:hover,
.prayer-reaction-choice:focus-visible {
  border-color: var(--border-subtle);
  background: var(--white-10);
}

.prayer-reaction-choice:active {
  transform: scale(0.95);
}

.prayer-reaction-choice.selected {
  border-color: var(--border-strong);
  background: var(--white-18);
}

.prayer-reaction-choice:disabled {
  cursor: progress;
  opacity: 0.65;
  transform: none;
}

/* ------------------------------------------------------------
   Settings
   ------------------------------------------------------------ */

.settings-container {
  width: min(100%, 1160px);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.settings-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-5);
  height: 100%;
}

.settings-card {
  display: grid;
  gap: var(--space-4);
  height: 100%;
  margin-bottom: 0;
}

.settings-card .dashboard-card-head {
  margin-bottom: 0;
}

.settings-answer-card {
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
  align-content: stretch;
}

.settings-answer-head {
  align-items: flex-start;
}

.settings-answer-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--white-06);
  color: var(--white-72);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.settings-form {
  align-content: start;
}

.settings-field {
  display: grid;
  gap: var(--space-2);
  color: var(--white-72);
  font-size: 0.88rem;
  font-weight: 600;
}

.settings-field input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  transition:
    border-color var(--duration-ui) var(--ease-out),
    background var(--duration-ui) var(--ease-out);
}

.settings-field input:focus {
  border-color: var(--white-54);
}

.settings-submit {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
}

.settings-answer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-self: center;
  height: 72px;
  min-height: 0;
  padding: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-2);
}

.settings-answer-button {
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--white-72);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.settings-answer-button:hover,
.settings-answer-button:focus-visible {
  background: var(--white-10);
  color: var(--text-primary);
}

.settings-answer-button:active {
  transform: scale(0.98);
}

.settings-answer-button.selected {
  background: var(--white);
  color: var(--black);
}

.settings-answer-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

/* ------------------------------------------------------------
   Customer page
   ------------------------------------------------------------ */

.customer-container {
  width: min(100%, 1160px);
}

.customer-head {
  margin-bottom: var(--space-5);
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.customer-grid .dashboard-card {
  margin-bottom: 0;
}

.customer-summary,
.customer-telegram {
  height: 100%;
}

.customer-prayers {
  grid-column: 1 / -1;
}

.customer-details-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.customer-details-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  min-height: 50px;
  padding: 0 var(--space-2);
  border-top: 1px solid var(--white-06);
}

.customer-details-list div:first-child {
  border-top: 0;
}

.customer-details-list dt {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.customer-details-list dd {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--table-body-size);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.customer-prayer-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
}

.customer-prayer-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  min-height: var(--table-row-min-height);
  padding: var(--space-3) var(--space-3);
  border-top: 1px solid var(--white-06);
  background: transparent;
}

.customer-prayer-item:first-child {
  border-top: 0;
}

.customer-prayer-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.customer-prayer-item p {
  margin: 0;
  max-width: 72ch;
  color: #c6cacd;
  font-size: var(--table-body-size);
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   Statistics
   ------------------------------------------------------------ */

.statistics-section {
  align-items: flex-start;
  padding: var(--space-6) 0;
}

.statistics-container {
  width: min(100%, 1160px);
}

.statistics-insights,
.statistics-graphs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.statistics-insights {
  margin-bottom: var(--space-4);
}

.statistics-patterns {
  margin-top: var(--space-4);
}

.statistics-insight {
  min-height: 150px;
  margin-bottom: 0;
  padding: var(--space-4);
}

.statistics-insight-hard {
  box-shadow: inset 3px 0 0 var(--red-soft);
}

.statistics-insight-easy {
  box-shadow: inset 3px 0 0 var(--green-soft);
}

.statistics-insight-value {
  max-width: 14ch;
  margin: var(--space-3) 0 var(--space-2);
  color: var(--text-primary);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.statistics-insight-caption {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.statistics-chart-card {
  margin-bottom: 0;
}

.statistics-chart {
  display: grid;
  gap: var(--space-3);
}

.statistics-bar-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  align-items: center;
  gap: var(--space-3);
  min-height: 26px;
}

.statistics-bar-label,
.statistics-bar-value {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.statistics-bar-value {
  color: var(--white-72);
  text-align: right;
}

.statistics-bar-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white-06);
}

.statistics-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  transition: width var(--duration-panel) var(--ease-out);
}

.statistics-chart-no .statistics-bar-fill {
  background: var(--red-soft);
}

.statistics-chart-yes .statistics-bar-fill {
  background: var(--green-soft);
}

.statistics-donut-card {
  margin-bottom: 0;
}

.statistics-donut-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
}

.statistics-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface-1) 0 48%, transparent 49%),
    conic-gradient(var(--donut-primary) 0 var(--donut-main), var(--donut-secondary) var(--donut-main) 100%);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.statistics-donut::after {
  display: none;
}

.statistics-donut span {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.statistics-donut-time,
.statistics-donut-answer {
  --donut-primary: var(--green-soft);
  --donut-secondary: var(--red-soft);
}

.statistics-donut-legend {
  display: grid;
  gap: var(--space-3);
}

.statistics-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 36px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--white-06);
}

.statistics-donut-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.statistics-donut-row span,
.statistics-donut-row strong {
  color: var(--white-72);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.statistics-donut-row strong {
  color: var(--text-primary);
}

.statistics-donut-row::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--donut-default);
}

.statistics-donut-row span {
  margin-right: auto;
}

.statistics-donut-row-yes,
.statistics-donut-row-day {
  --donut-default: var(--green-soft);
}

.statistics-donut-row-no,
.statistics-donut-row-night {
  --donut-default: var(--red-soft);
}

/* ------------------------------------------------------------
   Community world card
   ------------------------------------------------------------ */

.prayer-world-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
  align-items: center;
  gap: var(--space-5);
  min-height: 360px;
  margin-top: var(--space-4);
  margin-bottom: 0;
  overflow: hidden;
}

.prayer-world-card .dashboard-card-head {
  align-items: flex-start;
}

.prayer-world-card .dashboard-card-head div {
  min-width: 0;
}

.prayer-world-card .dashboard-card-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.prayer-world-highlight {
  margin: var(--space-5) 0 var(--space-4);
}

.prayer-world-highlight p:last-child {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.prayer-world-regions {
  display: grid;
  gap: var(--space-3);
}

.prayer-world-region {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 34px minmax(96px, 0.85fr);
  align-items: center;
  gap: var(--space-3);
}

.prayer-world-region span:first-child,
.prayer-world-region strong {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.prayer-world-region strong {
  color: var(--white-72);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.prayer-world-region.active span:first-child,
.prayer-world-region.active strong {
  color: var(--text-primary);
}

.prayer-world-region-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white-06);
}

.prayer-world-region-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-soft);
}

.prayer-world-region.active .prayer-world-region-track span {
  background: rgba(158, 232, 194, 0.78);
}

.prayer-world-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 292px;
}

.prayer-globe {
  position: relative;
  width: min(292px, 78vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.6)),
    var(--bg-page);
  box-shadow:
    inset -32px -42px 68px rgba(0, 0, 0, 0.52),
    inset 18px 16px 36px rgba(255, 255, 255, 0.045);
}

.prayer-globe::before,
.prayer-globe::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.prayer-globe::before {
  transform: scaleX(0.42);
}

.prayer-globe::after {
  transform: scaleY(0.42);
}

.prayer-globe-shine {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.032) 40px, transparent 41px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.028) 40px, transparent 41px);
  opacity: 0.6;
}

.prayer-globe-land {
  position: absolute;
  display: block;
  background: rgba(212, 255, 235, 0.12);
  opacity: 0.76;
}

.prayer-globe-land-americas {
  left: 18%;
  top: 25%;
  width: 24%;
  height: 42%;
  border-radius: 58% 38% 48% 46%;
  clip-path: polygon(34% 0, 74% 8%, 86% 24%, 64% 35%, 78% 50%, 56% 67%, 62% 100%, 38% 84%, 30% 62%, 12% 48%, 22% 28%);
}

.prayer-globe-land-europe {
  left: 47%;
  top: 27%;
  width: 16%;
  height: 16%;
  border-radius: 44% 52% 38% 48%;
  clip-path: polygon(12% 28%, 42% 4%, 78% 18%, 98% 48%, 66% 70%, 30% 62%);
}

.prayer-globe-land-africa {
  left: 48%;
  top: 42%;
  width: 18%;
  height: 32%;
  border-radius: 48% 42% 58% 44%;
  clip-path: polygon(34% 0, 78% 12%, 94% 42%, 70% 100%, 42% 88%, 18% 54%);
}

.prayer-globe-land-asia {
  left: 60%;
  top: 28%;
  width: 30%;
  height: 35%;
  border-radius: 45% 55% 42% 52%;
  clip-path: polygon(4% 22%, 34% 0, 82% 10%, 100% 34%, 76% 50%, 88% 74%, 52% 92%, 34% 62%, 8% 58%);
}

.prayer-globe-land-oceania {
  left: 72%;
  top: 66%;
  width: 17%;
  height: 13%;
  border-radius: 50%;
  clip-path: polygon(14% 42%, 44% 8%, 84% 22%, 96% 58%, 54% 88%, 18% 74%);
}

.prayer-globe-point {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(211, 255, 236, 0.9);
  box-shadow: 0 0 0 4px rgba(190, 255, 226, 0.08);
  transform: translate(-50%, -50%) scale(var(--point-scale, 1));
}

.prayer-globe-point.active {
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(238, 255, 247, 0.12);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .info-grid,
  .prayer-grid,
  .statistics-graphs,
  .customer-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-rows: none;
  }

  .info-column {
    display: contents;
    height: auto;
    grid-template-rows: none;
  }

  .info-motivation {
    order: 1;
  }

  .info-resource {
    order: 2;
  }

  .info-prayers {
    order: 3;
  }

  .info-telegram-card {
    order: 4;
  }

  .settings-column {
    grid-template-rows: auto;
  }

  .prayer-form,
  .prayer-list-card {
    height: auto;
  }

  .prayer-form {
    grid-template-rows: auto minmax(180px, auto) auto;
  }

  .info-prayers {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .info-prayers .prayer-table-wrap,
  .prayer-page .prayer-table-wrap {
    flex: 0 0 auto;
    overflow: visible;
  }

  .statistics-donut-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .prayer-world-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    min-height: 0;
  }

  .prayer-world-visual {
    min-height: 232px;
    order: -1;
  }

  .prayer-globe {
    width: min(232px, 74vw);
  }
}

@media (max-width: 680px) {
  .dashboard-page {
    --table-body-size: 0.9rem;
    --table-head-size: 0.72rem;
    --table-row-padding-y: 10px;
    --table-row-padding-x: var(--space-2);
    --table-row-min-height: 54px;
  }

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

  .dashboard-action {
    min-height: 128px;
    padding: var(--space-4);
  }

  .dashboard-current {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-4);
    text-align: center;
  }

  .dashboard-timer-card {
    padding: var(--space-3);
  }

  .dashboard-timer-copy {
    align-items: flex-start;
    text-align: left;
  }

  .dashboard-timer-value {
    flex: 0 0 auto;
    font-size: 1.3rem;
  }

  .dashboard-week {
    display: none;
  }

  /* Leaderboard: three-part hierarchy, wrapping status */
  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    width: 36px;
  }

  .leaderboard-head-label,
  .leaderboard-user {
    gap: 6px;
  }

  /* Status column stays content-sized so the inline status never gets
     squeezed onto two lines; long names wrap instead. */
  .leaderboard-streak {
    justify-content: flex-end;
    gap: 6px;
    line-height: 1.3;
  }

  .leaderboard-icon,
  .leaderboard-row-icon {
    width: 15px;
    height: 15px;
  }

  /* Compact inline status: "0 days · 21 missed" */
  .leaderboard-streak-separator {
    display: inline;
  }

  .leaderboard-missed-tag {
    order: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
  }

  .leaderboard-missed-tag:hover,
  .leaderboard-missed-tag:focus-visible {
    border-color: transparent;
    background: transparent;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Full-size touch target without visual bulk */
  button.leaderboard-missed-tag {
    position: relative;
  }

  button.leaderboard-missed-tag::before {
    content: "";
    position: absolute;
    inset: -13px -8px;
  }

  .statistics-insights {
    grid-template-columns: 1fr;
  }

  .statistics-section {
    padding: var(--space-5) 0;
  }

  .statistics-insight {
    min-height: 0;
  }

  .statistics-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .statistics-donut-legend {
    width: 100%;
  }

  .prayer-world-region {
    grid-template-columns: minmax(82px, 1fr) 30px minmax(82px, 0.82fr);
    gap: var(--space-2);
  }

  .prayer-filter-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: var(--space-3);
  }

  .prayer-filter-button {
    width: 40px;
    height: 40px;
  }

  .prayer-filter-glyph,
  .prayer-filter-glyph::before,
  .prayer-filter-glyph::after {
    width: 16px;
  }

  .prayer-filter-panel {
    grid-template-columns: 1fr;
  }

  /* Prayer entries become labeled stacked rows */
  .prayer-table,
  .prayer-table tbody,
  .prayer-table tr,
  .prayer-table td {
    display: block;
  }

  .prayer-table tr {
    position: relative;
    padding: var(--space-3) 48px var(--space-3) 2px;
  }

  .prayer-table tr+tr {
    border-top: 1px solid var(--white-06);
  }

  .prayer-table td {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border-top: 0;
  }

  .prayer-table td:first-child {
    width: auto;
    margin-bottom: var(--space-1);
  }

  .prayer-table td.prayer-row-actions {
    position: absolute;
    top: 8px;
    right: 0;
    display: block;
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .prayer-row-actions .action-menu-trigger {
    width: 40px;
    height: 40px;
    margin-top: 0;
  }

  .prayer-reaction-button {
    min-height: 30px;
  }

  .customer-details-list div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: var(--space-2);
    min-height: 0;
  }

  .customer-prayer-item {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

@media (max-width: 420px) {
  .dashboard-page {
    --table-body-size: 0.875rem;
    --table-head-size: 0.72rem;
    --table-row-min-height: 52px;
  }

  .dashboard-action-label {
    font-size: 2.6rem;
  }
}

@media (max-width: 360px) {
  /* Extremely narrow: allow the status group to wrap cleanly under the value */
  .leaderboard-table:not(.prayer-table) th:last-child,
  .leaderboard-table:not(.prayer-table) td:last-child {
    width: auto;
    max-width: 56%;
    white-space: normal;
  }

  .leaderboard-streak {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

/* styles/home/sections.css */
/* ================= GENERIC SECTIONS ================= */
.section {
  padding: var(--section-padding) 0;
}

.section-compact {
  padding: var(--section-padding-compact) 0;
}

.section-title {
  font-size: clamp(1.95rem, 3.8vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.section-text {
  text-align: center;
  max-width: 66ch;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.7;
}

.page-header {
  max-width: 760px;
  margin: 0 auto var(--space-5);
}

.page-title {
  margin-bottom: var(--space-2);
}

.page-subtitle {
  margin-bottom: 0;
}

/* styles/home/home-layout.css */
/* ================= HOME PAGE DENSITY ================= */
.home-page .section {
  padding: clamp(var(--space-5), 4.2vw, 46px) 0;
}

.home-page .section.section-compact {
  padding: clamp(var(--space-3), 2.4vw, var(--space-5)) 0;
}

.home-page {
  overflow-x: clip;
}

.home-verse-links-section {
  padding-top: var(--space-4);
}

.home-verse-links-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  max-width: 100%;
}

.home-links-inline {
  padding-top: var(--space-5);
  max-width: 100%;
  width: 100%;
}

.home-info-section .section-title {
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.home-visit-section .section-title {
  max-width: none;
}

.visit-step-title-single {
  white-space: nowrap;
}

.visit-roadmap-grid {
  margin-top: var(--space-6);
}

.visit-roadmap-grid::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 38px;
  height: 2px;
  border-radius: 999px;
  background: var(--roadmap-line);
  opacity: var(--roadmap-line-opacity);
  z-index: 0;
}

.visit-roadmap-grid::after {
  display: none;
}

.visit-roadmap-grid .roadmap-step {
  min-height: 250px;
}

/* styles/home/roadmap-and-links.css */
/* ================= ABOUT ROADMAP ================= */
.about-roadmap {
  position: relative;
}

.about-roadmap-head {
  max-width: 820px;
  margin: 0 auto;
}

.about-roadmap-grid {
  margin-top: var(--space-5);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  --roadmap-line: var(--accent);
  --roadmap-line-opacity: 0.5;
}

.about-roadmap-grid:not(.visit-roadmap-grid)::before,
.about-roadmap-grid:not(.visit-roadmap-grid)::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  border-radius: 999px;
  background: var(--roadmap-line);
  opacity: var(--roadmap-line-opacity);
  z-index: 0;
}

.about-roadmap-grid:not(.visit-roadmap-grid)::before {
  top: 38px;
}

.about-roadmap-grid:not(.visit-roadmap-grid)::after {
  top: calc(50% + 38px);
}

.roadmap-step {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
  min-height: 220px;
  background: var(--surface-elevated);
}

.roadmap-step-index {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

.roadmap-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--icon-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: var(--space-2);
  --chip-icon-size: 18px;
}

.card-title {
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.block-spaced-sm {
  margin-top: var(--space-2);
}

.block-spaced-md {
  margin-top: var(--space-3);
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.info-strip-spaced {
  margin-top: var(--space-5);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.info-item-head {
  margin-bottom: 0;
}

.info-item-title {
  margin-bottom: 0;
  font-size: 1.24rem;
  line-height: 1.3;
}

.icon-chip {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--icon-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  line-height: 1;
  --chip-icon-size: 16px;
}

.roadmap-step-icon {
  pointer-events: none;
}

.icon-chip svg,
.roadmap-step-icon svg {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  width: var(--chip-icon-size);
  height: var(--chip-icon-size);
  min-width: var(--chip-icon-size);
  min-height: var(--chip-icon-size);
  display: block;
  flex: 0 0 var(--chip-icon-size);
}

.icon-chip-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  --chip-icon-size: 16px;
}

.icon-chip-md {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  --chip-icon-size: 16px;
}

.hover-lift-card {
  --lift-offset: 0px;
  transform: translate3d(0, var(--lift-offset), 0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  will-change: transform;
}

.hover-lift-card:hover {
  transform: translate3d(0, calc(var(--lift-offset) - 3px), 0);
  border-color: var(--link-card-hover-border);
  box-shadow: var(--shadow-card-hover);
}

.home-verse {
  width: 100%;
  max-width: 100%;
  margin: 0;
  justify-self: stretch;
}

.verse-block {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--list-border);
  display: grid;
  gap: var(--space-1);
}

.verse-block-centered {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.verse-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.6;
}

.verse-block-centered .verse-text {
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.verse-reference {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.useful-carousel {
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

.useful-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.useful-subtitle {
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
  font-size: 14px;
}

.useful-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: var(--space-1) 2px var(--space-3);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.useful-track::-webkit-scrollbar {
  height: 8px;
}

.useful-track::-webkit-scrollbar-thumb {
  background: var(--track-thumb);
  border-radius: 20px;
}

.useful-link-card {
  flex: 0 0 clamp(260px, 28vw, 320px);
  min-height: 78px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px var(--space-3);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--link-card-text);
  font-weight: 500;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.useful-link-card:hover {
  border-color: var(--link-card-hover-border);
  box-shadow: 0 4px 10px var(--link-card-hover-shadow);
}

.useful-link-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--favicon-chip-border);
  background: var(--favicon-chip-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.useful-link-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: block;
  object-fit: contain;
}

.useful-link-title {
  line-height: 1.25;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

/* styles/home/auth.css */
.auth-page {
  min-height: 100vh;
}

.auth-section {
  flex: 1;
  display: flex;
  align-items: center;
}

.auth-container {
  width: min(100%, 520px);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(var(--space-5), 5vw, var(--space-7));
}

.auth-brand img {
  width: min(58vw, 260px);
  height: 82px;
  object-fit: cover;
  object-position: center 52%;
  display: block;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
}

.auth-card {
  width: 100%;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
}

.auth-head {
  margin-bottom: var(--space-5);
  text-align: center;
}

.auth-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0;
}

.auth-subtitle {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
}

.auth-errors {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--ink-18);
  border-radius: 12px;
  background: var(--ink-06);
  color: var(--text);
}

.auth-errors p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.auth-field {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.auth-field input:focus {
  border-color: var(--black);
}

.auth-field input::placeholder {
  color: var(--text-secondary);
}

.auth-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.auth-actions .btn {
  width: 100%;
}

.auth-secondary {
  min-height: 44px;
  border-color: var(--ink-54);
  background: var(--white);
  color: var(--ink);
}

.auth-secondary:hover,
.auth-secondary:focus-visible {
  border-color: var(--ink);
  background: var(--ink-06);
  color: var(--ink);
}

/* styles/home/footer.css */
/* ================= FOOTER ================= */
.section.footer-info {
  padding: clamp(14px, 2.1vw, 20px) 0;
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--white-10);
  color: var(--footer-text);
}

.footer-info .container {
  padding-top: 0;
  padding-bottom: 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
}

.footer-tagline {
  flex: 1 1 auto;
  margin: 0;
  color: var(--white-54);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 26px;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover {
  color: var(--footer-icon-hover);
  transform: translateY(-1px);
}

.footer-social:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.footer-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--footer-text);
  margin: 0;
}

@media (max-width: 680px) {
  .footer-row {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    text-align: center;
  }

  .footer-tagline {
    max-width: 34ch;
    font-size: 13px;
  }
}

/* styles/home/responsive.css */
@media (max-width: 1024px) {
  .hero-main {
    min-height: auto;
  }

  .hero-main-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: center;
  }

  .hero-main-content {
    max-width: 640px;
    text-align: center;
  }

  .hero-kicker {
    margin: 0 0 var(--space-3);
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.1rem, 5.2vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    margin: var(--space-2) 0 var(--space-4);
    max-width: min(52ch, 100%);
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .hero-invite-card {
    width: min(100%, 620px);
    margin: var(--space-3) auto 0;
    text-align: center;
  }

  .visit-step-title-single {
    white-space: normal;
  }

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

  .about-roadmap-grid:not(.visit-roadmap-grid)::before,
  .about-roadmap-grid:not(.visit-roadmap-grid)::after {
    display: none;
  }

  .visit-roadmap-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .visit-roadmap-grid::before {
    display: none;
  }

  .visit-roadmap-grid .roadmap-step {
    min-height: unset;
  }

}