/* E-Temp Mail — modern UI layer (works with default + groot themes) */

:root {
  --tm-font: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
  --tm-radius: 14px;
  --tm-radius-sm: 10px;
  --tm-radius-lg: 20px;
  --tm-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --tm-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --tm-surface: #ffffff;
  --tm-bg: #f1f5f9;
  --tm-text: #0f172a;
  --tm-muted: #64748b;
  --tm-border: #e2e8f0;
  --tm-primary: #2563eb;
  --tm-secondary: #0d9488;
  --tm-tertiary: #f59e0b;
  --tm-primary-rgb: 37, 99, 235;
}

.default-theme,
.groot-theme {
  font-family: var(--tm-font);
  color: var(--tm-text);
  -webkit-font-smoothing: antialiased;
}

/* —— Layout —— */
.tm-app {
  min-height: 100vh;
  background: var(--tm-bg);
}

.tm-sidebar {
  background: linear-gradient(
    165deg,
    var(--tm-primary) 0%,
    color-mix(in srgb, var(--tm-primary) 75%, #0f172a) 100%
  );
  position: relative;
  overflow: hidden;
}

.tm-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 10%,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.tm-sidebar-inner {
  position: relative;
  z-index: 1;
}

.tm-main {
  background: var(--tm-bg);
  min-height: 100vh;
}

.tm-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

@media (min-width: 1024px) {
  .tm-content {
    padding: 0 1.5rem 2.5rem;
  }
}

[x-cloak] {
  display: none !important;
}

.tm-mobile-ad {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 0.75rem auto;
  text-align: center;
  overflow: hidden;
}

.tm-mobile-ad--top {
  min-height: 50px;
}

.tm-mobile-ad--mailbox {
  min-height: 250px;
  margin-top: 0;
  margin-bottom: 1rem;
}

.tm-mobile-ad--native-footer {
  display: flex;
  min-height: 360px;
  margin: 1rem auto;
}

/* —— CLS guards: reserve space before external ad iframes render —— */
@media (min-width: 768px) {
  .ads-one,
  .ads-five,
  .ads-two,
  .ads-three,
  .ads-four {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }

  .tm-hero-panel .ads {
    min-height: 300px;
  }

  .tm-hero-panel .ads-one,
  .tm-hero-panel .ads-five {
    min-width: min(300px, 100%);
    min-height: 250px;
  }

  main .ads-two,
  main .ads-three {
    min-width: min(160px, 100%);
    min-height: 600px;
  }

  .ads-four {
    min-height: 110px;
  }
}

@media (min-width: 768px) {
  .tm-actions-shell {
    min-height: 12rem;
  }

  .groot-theme .tm-actions-shell {
    min-height: 13.5rem;
  }
}

@media (max-width: 767px) {
  .tm-mobile-ad {
    display: flex;
  }
}

/* —— Nav —— */
.tm-nav {
  background: var(--tm-surface);
  border-bottom: 1px solid var(--tm-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.tm-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-radius: var(--tm-radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.tm-nav-link:hover,
.tm-nav-link.is-active {
  background: #f1f5f9;
  color: var(--tm-text);
}

.tm-nav-link--auth {
  color: var(--tm-primary);
  font-weight: 600;
}

.groot-theme .tm-nav-link {
  color: #cbd5e1;
}

.groot-theme .tm-nav-bar {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  border: none;
}

.groot-theme .tm-nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.groot-theme .tm-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.groot-theme .tm-nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}

.tm-nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--tm-radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.default-theme .tm-nav-dropdown__trigger {
  color: #475569;
}

.default-theme .tm-nav-dropdown__trigger:hover {
  background: #f1f5f9;
  color: var(--tm-text);
}

.groot-theme .tm-nav-dropdown__trigger {
  color: rgba(255, 255, 255, 0.9);
}

.groot-theme .tm-nav-dropdown__trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tm-nav-dropdown__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  padding: 0.35rem;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow-lg);
  z-index: 50;
}

.tm-nav-dropdown__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-radius: var(--tm-radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}

.tm-nav-dropdown__link:hover {
  background: #f1f5f9;
  color: var(--tm-text);
}

.tm-nav-admin {
  border: 1px dashed #f87171;
  color: #ef4444 !important;
}

.tm-nav-admin:hover {
  background: #fef2f2 !important;
}

.groot-theme .tm-nav-admin {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca !important;
}

.groot-theme .tm-nav-admin:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

.tm-nav-socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tm-nav-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--tm-radius-sm);
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease;
}

.tm-nav-socials a:hover {
  background: #f1f5f9;
  color: var(--tm-primary);
}

.groot-theme .tm-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}

.groot-theme .tm-header-grid__left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
}

.groot-theme .tm-header-grid__center {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-height: 3.5rem;
}

.groot-theme .tm-header-grid__center .max-w-logo {
  max-height: 3.5rem;
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.groot-theme .tm-header-grid__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
}

.groot-theme .tm-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.tm-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.tm-header-btn:hover {
  transform: translateY(-1px);
}

.tm-header-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tm-header-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tm-header-btn--accent {
  background: #00c495;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 196, 149, 0.35);
}

.tm-header-btn--accent:hover {
  background: #00b085;
}

.tm-header-btn--api img {
  display: block;
  height: 1.75rem;
  width: auto;
  border-radius: 6px;
}

/* —— Locale switcher —— */
.tm-locale-switcher {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
  z-index: 50;
}

.tm-locale-switcher.is-open .tm-locale-switcher__chevron {
  transform: rotate(180deg);
}

.tm-locale-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  min-width: 0;
  max-width: 10rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tm-locale-switcher--header .tm-locale-switcher__trigger {
  max-width: 9.5rem;
}

.tm-locale-switcher__trigger:hover {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.tm-locale-switcher--header .tm-locale-switcher__trigger,
.tm-locale-switcher--footer .tm-locale-switcher__trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
}

.tm-locale-switcher--footer .tm-locale-switcher__menu {
  bottom: calc(100% + 0.4rem);
  top: auto;
  left: 0;
  right: auto;
  z-index: 500;
}

.tm-locale-switcher--header .tm-locale-switcher__trigger:hover,
.tm-locale-switcher--footer .tm-locale-switcher__trigger:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}

.tm-locale-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 0.9375rem;
  line-height: 1;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.tm-locale-switcher__flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-locale-switcher__flag-fallback {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", emoji;
  font-size: 1rem;
  line-height: 1;
}

.tm-locale-switcher__label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-locale-switcher__chevron {
  font-size: 0.625rem;
  line-height: 1;
  width: auto;
  height: auto;
  max-width: 0.75rem;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tm-locale-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 13.5rem;
  max-height: min(20rem, 70vh);
  overflow-y: auto;
  padding: 0.35rem;
  margin: 0;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow-lg);
  z-index: 200;
}

.tm-locale-switcher__menu[hidden] {
  display: none !important;
}

.tm-locale-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--tm-radius-sm);
  text-decoration: none;
  color: var(--tm-text);
  transition: background 0.12s ease;
}

.tm-locale-switcher__option:hover {
  background: #f1f5f9;
}

.tm-locale-switcher__option.is-active {
  background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
}

.tm-locale-switcher__option-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tm-locale-switcher__option-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.tm-locale-switcher__option-code {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--tm-muted);
  letter-spacing: 0.04em;
}

.tm-locale-switcher__check {
  font-size: 0.75rem;
  color: var(--tm-primary);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .groot-theme .tm-header-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo logo"
      "left right";
  }

  .groot-theme .tm-header-grid__center {
    grid-area: logo;
  }

  .groot-theme .tm-header-grid__left {
    grid-area: left;
  }

  .groot-theme .tm-header-grid__right {
    grid-area: right;
    max-width: 55%;
  }

  .groot-theme .tm-header-btn--api {
    display: none;
  }

  .groot-theme .tm-header-actions__desktop {
    display: none;
  }
}

.tm-mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--tm-radius-sm);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tm-mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.default-theme .tm-mobile-nav-toggle {
  color: var(--tm-text);
}

.default-theme .tm-mobile-nav-toggle:hover {
  background: #f1f5f9;
}

.default-theme .tm-nav .tm-nav-link {
  color: #fff;
}

.default-theme .tm-nav .tm-nav-link:hover,
.default-theme .tm-nav .tm-nav-link.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tm-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}

.tm-header-grid__left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
}

.tm-header-grid__center {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-height: 3.5rem;
}

.tm-header-grid__center .max-w-logo {
  max-height: 3.5rem;
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.tm-header-grid__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  position: relative;
}

.groot-theme .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--tm-radius-sm);
  transition: background 0.15s ease;
}

.groot-theme .socials a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* —— Email card (sidebar) —— */
.tm-email-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--tm-radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.tm-email-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin-bottom: 1rem;
}

.tm-email-row {
  display: flex;
  gap: 0.625rem;
  align-items: stretch;
}

.tm-email-slot {
  min-height: 3.25rem;
}

.tm-email-slot .tm-email-field:not(.tm-loading) {
  width: 100%;
}

.tm-email-field {
  flex: 1;
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--tm-radius) !important;
  color: #fff !important;
  font-size: 0.9375rem !important;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-all;
}

.tm-email-field.tm-loading {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
}

.tm-btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0 1rem;
  border: none;
  border-radius: var(--tm-radius);
  background: var(--tm-secondary) !important;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tm-btn-copy:hover:not(.email-pending) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tm-btn-copy.email-pending {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Timed mail pages (5 / 10 / 15 / 20 / 30 min) */
.tm-timed-email__cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.tm-email-row--timed .tm-email-field,
.tm-email-row--timed #email_id {
  padding-right: 7.75rem !important;
  overflow-wrap: anywhere;
}

.tm-timer-box {
  position: absolute;
  top: 3px;
  bottom: 3px;
  right: 3px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  min-width: 7rem;
  background: var(--tm-secondary) !important;
  border-radius: var(--tm-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tm-timed-email__copy-label {
  display: none;
}

@media (max-width: 639px) {
  .tm-email-row--timed {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .tm-timed-email__cell {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .tm-email-row--timed .tm-email-field,
  .tm-email-row--timed #email_id {
    padding-right: 1rem !important;
    word-break: normal;
    overflow-wrap: anywhere;
    font-size: clamp(0.8125rem, 3.5vw, 0.9375rem) !important;
  }

  .tm-email-row--timed .tm-email-slot,
  .tm-email-row--timed .email-address-box {
    width: 100%;
    min-width: 0;
  }

  .tm-timer-box {
    position: static;
    top: auto;
    bottom: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    justify-content: center;
    box-sizing: border-box;
  }

  .tm-timed-email__copy {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    gap: 0.5rem;
  }

  .tm-timed-email__copy-label {
    display: inline;
    font-size: 0.875rem;
    font-weight: 600;
  }
}

@media (min-width: 640px) {
  .tm-email-row--timed .tm-btn-copy.tm-timed-email__copy {
    flex-shrink: 0;
  }
}

.tm-timer-countdown {
  min-width: 4.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.tm-timer-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.tm-timer-reset:hover {
  opacity: 1;
}

/* —— Action grid —— */
.tm-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-top: 1rem;
}

.default-theme .tm-actions {
  grid-template-columns: repeat(2, 1fr);
}

.groot-theme .tm-actions--groot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .groot-theme .tm-actions--groot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tm-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-height: 4.5rem;
  border-radius: var(--tm-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}

.tm-action-btn--row {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  white-space: nowrap;
}

.tm-action-btn--row i {
  font-size: 1rem;
  flex-shrink: 0;
}

.tm-action-btn--row span {
  font-size: 0.8125rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-action-btn--link {
  text-decoration: none;
  background: var(--tm-secondary) !important;
  border-color: transparent;
}

.tm-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.tm-action-btn--link:hover {
  background: color-mix(in srgb, var(--tm-secondary) 85%, #000) !important;
}

.tm-action-btn i {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* —— Form inputs (create email) —— */
.tm-form-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--tm-radius-lg);
  padding: 1.25rem;
}

.tm-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--tm-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9375rem;
}

.tm-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.tm-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.tm-btn-primary,
.tm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--tm-radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tm-btn-primary {
  background: var(--tm-secondary) !important;
  color: #fff;
}

.tm-btn-secondary {
  background: var(--tm-tertiary) !important;
  color: #fff;
}

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

/* —— Create email panel (groot horizontal layout) —— */
.tm-create-panel {
  margin-bottom: 0;
}

.tm-create-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.tm-create-form__fields {
  flex: 1;
  min-width: 0;
}

.tm-create-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-shrink: 0;
  justify-content: center;
}

.tm-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  min-height: 3.25rem;
  border: none;
  border-radius: var(--tm-radius);
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tm-btn-icon--primary {
  background: var(--tm-secondary) !important;
}

.tm-btn-icon--secondary {
  background: var(--tm-tertiary) !important;
}

.tm-btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.tm-back-link,
.tm-cancel-link {
  text-decoration: none;
  border: none;
  background: rgba(255, 255, 255, 0.12);
}

.tm-cancel-link {
  justify-content: center;
}

.tm-create-form--stacked {
  flex-direction: column;
}

.tm-create-form--stacked .tm-create-form__actions {
  flex-direction: row;
}

.tm-create-form--stacked .tm-btn-icon {
  flex: 1;
  width: auto;
}

.tm-create-form--stacked .tm-btn-primary-full {
  width: 100%;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .tm-create-form:not(.tm-create-form--stacked) {
    flex-direction: column;
  }

  .tm-create-form:not(.tm-create-form--stacked) .tm-create-form__actions {
    flex-direction: row;
    justify-content: stretch;
  }

  .tm-create-form:not(.tm-create-form--stacked) .tm-btn-icon {
    flex: 1;
    width: auto;
  }
}

/* —— Mailbox —— */
.tm-mailbox {
  background: var(--tm-surface);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow);
  border: 1px solid var(--tm-border);
  overflow: hidden;
  min-height: 420px;
}

.tm-mailbox-layout {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

@media (min-width: 1024px) {
  .tm-mailbox-layout {
    flex-direction: row;
    min-height: max(560px, calc(100vh - 12rem));
  }
}

.tm-inbox-list {
  flex: 0 0 auto;
  max-height: 40vh;
  overflow-y: auto;
  border-bottom: 1px solid var(--tm-border);
}

@media (min-width: 1024px) {
  .tm-inbox-list {
    flex: 0 0 36%;
    max-height: none;
    border-bottom: none;
    border-right: 1px solid var(--tm-border);
  }
}

.tm-inbox-item {
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--tm-border);
  transition: background 0.12s ease;
}

.tm-inbox-item:hover {
  background: #f8fafc;
}

.tm-inbox-item.is-selected,
.tm-inbox-item[data-selected="true"] {
  background: color-mix(in srgb, var(--tm-primary) 8%, white);
  border-left: 3px solid var(--tm-primary);
  padding-left: calc(1.25rem - 3px);
}

.tm-inbox-item:last-child {
  border-bottom: none;
}

.tm-inbox-item__from {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--tm-text);
}

.tm-inbox-item__email {
  font-size: 0.75rem;
  color: var(--tm-muted);
  margin-top: 0.125rem;
}

.tm-inbox-item__subject {
  font-size: 0.8125rem;
  color: var(--tm-muted);
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-inbox-item__time {
  font-size: 0.75rem;
  color: var(--tm-muted);
  flex-shrink: 0;
}

.tm-message-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafbfc;
}

.tm-message-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--tm-muted);
}

.tm-message-empty__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* Mailbox empty / loading states */
.tm-mailbox-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.groot-theme .tm-mailbox-empty {
  min-height: min(420px, 55vh);
}

.tm-mailbox-empty__visual {
  margin-bottom: 1.25rem;
}

.tm-mailbox-empty__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--tm-primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tm-mailbox-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tm-text);
  letter-spacing: -0.02em;
}

.tm-mailbox-empty__text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--tm-muted);
}

/* Animated mailbox illustration */
.tm-mailbox-anim {
  position: relative;
  width: 11rem;
  height: 8.8rem;
  margin: 0 auto;
}

.tm-mailbox-anim__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.tm-mailbox-anim__shadow {
  transform-origin: 100px 138px;
  animation: tm-mail-shadow 2.4s ease-in-out infinite;
}

.tm-mailbox-anim__orbit {
  transform-origin: 100px 76px;
  animation: tm-mail-orbit 3s linear infinite;
}

.tm-mailbox-anim__orbit--rev {
  animation-name: tm-mail-orbit-rev;
  animation-duration: 4.5s;
}

.tm-mailbox-anim__envelope {
  transform-origin: 100px 90px;
  animation: tm-mail-envelope-float 2.2s ease-in-out infinite;
}

.tm-mailbox-anim__flap {
  transform-origin: 100px 70px;
  animation: tm-mail-flap 2.2s ease-in-out infinite;
}

.tm-mailbox-anim--waiting .tm-mailbox-anim__envelope {
  animation-duration: 2.8s;
}

.tm-mailbox-anim--waiting .tm-mailbox-anim__orbit {
  animation-duration: 5s;
}

.tm-mailbox-anim__dot--1 {
  animation: tm-mail-fly-in 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.tm-mailbox-anim__dot--2 {
  animation: tm-mail-fly-in 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s infinite;
}

.tm-mailbox-anim__letter--1 {
  animation: tm-mail-fly-in 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s infinite;
}

.tm-mailbox-anim__letter--2 {
  animation: tm-mail-fly-in 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s infinite;
}

.tm-mailbox-empty__icon--idle {
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tm-mailbox-empty__icon--idle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tm-mailbox-empty--waiting .tm-mailbox-empty__visual::after,
.tm-mailbox-empty--loading .tm-mailbox-empty__visual::after {
  content: "";
  position: absolute;
  inset: -1rem -0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 68%);
  animation: tm-mail-glow-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .tm-mailbox-anim__orbit,
  .tm-mailbox-anim__orbit--rev,
  .tm-mailbox-anim__envelope,
  .tm-mailbox-anim__flap,
  .tm-mailbox-anim__shadow,
  .tm-mailbox-anim__dot--1,
  .tm-mailbox-anim__dot--2,
  .tm-mailbox-anim__letter--1,
  .tm-mailbox-anim__letter--2,
  .tm-mailbox-empty--waiting .tm-mailbox-empty__visual::after,
  .tm-mailbox-empty--loading .tm-mailbox-empty__visual::after {
    animation: none;
  }
}

.tm-mailbox-empty__visual {
  position: relative;
}

@keyframes tm-mail-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tm-mail-orbit-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes tm-mail-envelope-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes tm-mail-flap {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.92) translateY(2px);
    opacity: 0.85;
  }
}

@keyframes tm-mail-shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(0.88);
    opacity: 0.35;
  }
}

@keyframes tm-mail-fly-in {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    transform: translate(-42px, 52px) scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: translate(-48px, 58px) scale(0.15);
    opacity: 0;
  }
}

@keyframes tm-mail-glow-pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.tm-message-header {
  padding: 1.25rem 1.5rem;
  background: var(--tm-surface);
  border-bottom: 1px solid var(--tm-border);
}

.tm-message-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tm-text);
}

.tm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.tm-badge--primary {
  background: color-mix(in srgb, var(--tm-primary) 12%, white);
  color: var(--tm-primary);
}

.tm-badge--danger {
  background: #fef2f2;
  color: #b91c1c;
}

/* Groot mailbox table header */
.groot-theme .mailbox .head {
  background: linear-gradient(90deg, #0f172a, #334155) !important;
  border-radius: 0 !important;
}

.groot-theme .mailbox .messages > div[data-id] {
  transition: background 0.12s ease;
}

.groot-theme .mailbox .messages > div[data-id]:hover {
  background: #f1f5f9 !important;
}

/* —— Logo —— */
.tm-logo img {
  max-width: 10rem;
  height: 3.5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* —— Cookie banner —— */
#cookie.tm-cookie {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 42rem;
  padding: 1rem 1.25rem;
  background: var(--tm-surface);
  color: var(--tm-text);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  border: 1px solid var(--tm-border);
  align-items: center;
  gap: 1rem;
  z-index: 50;
}

#cookie.tm-cookie.flex {
  display: flex;
}

#cookie_close {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem !important;
  background: var(--tm-primary) !important;
  color: #fff !important;
  border-radius: var(--tm-radius-sm) !important;
  font-weight: 600;
  font-size: 0.875rem;
}

/* —— Site header (shared layout) —— */
.tm-site-header {
  padding: 1rem 0;
  position: relative;
  z-index: 40;
}

.tm-site-header__shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.tm-site-header__brand {
  flex-shrink: 0;
}

.tm-site-header__nav {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.tm-site-header__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.tm-site-header__socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tm-site-header__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease, color 0.15s ease;
}

.tm-site-header__socials a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tm-site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tm-header-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tm-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.tm-header-icon-btn--accent {
  background: var(--tm-secondary, #0d9488);
  border-color: transparent;
}

.tm-header-icon-btn--accent:hover {
  filter: brightness(1.06);
}

/* —— Header menu drawer —— */
html.tm-nav-open {
  overflow: hidden;
}

.tm-header-menu {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.tm-header-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.tm-header-menu__toggle:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}

.tm-header-menu__toggle-label {
  display: none;
}

@media (min-width: 480px) {
  .tm-header-menu__toggle-label {
    display: inline;
  }
}

.tm-header-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.tm-header-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 460;
  display: flex;
  flex-direction: column;
  width: min(22.5rem, 100vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--tm-surface);
  border-left: 1px solid var(--tm-border);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
}

.tm-header-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--tm-border);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--tm-primary) 88%, #0f172a) 0%,
    color-mix(in srgb, var(--tm-secondary) 50%, #0f172a) 100%
  );
  color: #fff;
  flex-shrink: 0;
}

.tm-header-menu__head-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tm-header-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tm-header-menu__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tm-header-menu__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.85rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.tm-header-menu__section + .tm-header-menu__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tm-border);
}

.tm-header-menu__section-title {
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tm-muted);
}

.tm-header-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tm-header-menu__link,
.tm-header-menu__link--parent {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: none;
  border-radius: var(--tm-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  color: var(--tm-text);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.tm-header-menu__link:hover,
.tm-header-menu__link--parent:hover,
.tm-header-menu__link.is-active {
  background: color-mix(in srgb, var(--tm-primary) 10%, #f8fafc);
  color: var(--tm-primary);
}

.tm-header-menu__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--tm-primary);
  font-size: 0.85rem;
}

.tm-header-menu__link.is-active .tm-header-menu__link-icon {
  background: color-mix(in srgb, var(--tm-primary) 15%, #fff);
}

.tm-header-menu__link-text {
  flex: 1;
  min-width: 0;
}

.tm-header-menu__link-arrow {
  font-size: 0.65rem;
  opacity: 0.35;
  flex-shrink: 0;
}

.tm-header-menu__link-caret {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.tm-header-menu__link-caret.is-open {
  transform: rotate(180deg);
}

.tm-header-menu__sublist {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0.25rem 0 0.25rem 2.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tm-header-menu__sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--tm-radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tm-muted);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.tm-header-menu__sublink:hover,
.tm-header-menu__sublink.is-active {
  background: #f1f5f9;
  color: var(--tm-primary);
}

.tm-header-menu__sublink i {
  width: 1rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.85;
}

.tm-header-menu__foot {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--tm-border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tm-header-menu__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tm-header-menu__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  color: var(--tm-text);
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.tm-header-menu__socials a:hover {
  background: color-mix(in srgb, var(--tm-primary) 10%, #fff);
  border-color: color-mix(in srgb, var(--tm-primary) 25%, var(--tm-border));
  color: var(--tm-primary);
}

.tm-header-menu__locale {
  width: 100%;
}

.tm-locale-switcher--menu {
  width: 100%;
}

.tm-locale-switcher--menu .tm-locale-switcher__trigger {
  width: 100%;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--tm-radius-sm);
  border: 1px solid var(--tm-border);
  background: var(--tm-surface);
  color: var(--tm-text);
}

.tm-locale-switcher--menu .tm-locale-switcher__menu {
  left: 0;
  right: 0;
  min-width: 0;
}

.groot-theme .tm-header-grid__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
}

.groot-theme .tm-header-grid__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease, color 0.15s ease;
}

.groot-theme .tm-header-grid__socials a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.groot-theme .tm-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}

.groot-theme .tm-header-actions__desktop {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

@media (min-width: 768px) {
  .groot-theme .tm-header-actions__desktop {
    display: flex;
  }
}

.tm-site-header__mobile {
  position: relative;
}

.tm-site-mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 14rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow-lg);
  z-index: 300;
}

.tm-site-mobile-menu__title {
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tm-muted);
}

.tm-site-mobile-menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-site-mobile-menu__section + .tm-site-mobile-menu__section {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--tm-border);
}

.tm-site-mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--tm-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tm-text);
  text-decoration: none;
}

.tm-site-mobile-menu__link:hover {
  background: #f1f5f9;
}

.tm-site-header__socials--mobile a {
  color: var(--tm-text);
  background: #f1f5f9;
}

.tm-site-quicklinks--header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.tm-site-quicklinks--header .tm-site-quicklink {
  color: rgba(255, 255, 255, 0.92);
}

.tm-site-quicklinks--header .tm-site-quicklink:hover,
.tm-site-quicklinks--header .tm-site-quicklink.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tm-site-quicklinks--header .tm-site-quicklink__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* —— Auth pages —— */
.tm-auth-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.tm-auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.tm-auth-page .tm-container {
  display: flex;
  justify-content: center;
}

.tm-auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  overflow: hidden;
}

.tm-auth-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.75rem 0;
  text-align: center;
}

.tm-auth-card__header .tm-site-brand {
  flex-direction: column;
  align-items: center;
}

.tm-auth-card__header .tm-site-brand__text {
  align-items: center;
}

.tm-auth-card__header .tm-site-brand__name,
.tm-auth-card__header .tm-site-brand__tagline {
  color: var(--tm-text);
}

.tm-auth-card__header .tm-site-brand__tagline {
  color: var(--tm-muted);
}

.tm-auth-card__header .tm-site-brand__icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
  border-color: color-mix(in srgb, var(--tm-primary) 20%, #fff);
  color: var(--tm-primary);
}

.tm-auth-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tm-text);
}

.tm-auth-card__subtitle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tm-muted);
  max-width: 22rem;
}

.tm-auth-card__body {
  padding: 1.25rem 1.75rem 1.75rem;
}

.tm-auth-lead {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tm-muted);
}

.tm-auth-back {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
}

.tm-auth-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tm-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.tm-auth-back a:hover {
  color: var(--tm-primary);
}

.tm-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tm-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tm-auth-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tm-text);
}

.tm-auth-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--tm-text);
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-auth-input::placeholder {
  color: #94a3b8;
}

.tm-auth-input:focus {
  outline: none;
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 18%, transparent);
}

.tm-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--tm-muted);
  cursor: pointer;
}

.tm-auth-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--tm-primary);
}

.tm-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.tm-auth-actions--end {
  justify-content: flex-end;
}

.tm-auth-actions--split {
  flex-direction: column;
  align-items: stretch;
}

.tm-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--tm-primary);
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tm-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--tm-shadow);
  filter: brightness(1.05);
}

.tm-auth-btn--ghost {
  color: var(--tm-text);
  background: #f1f5f9;
  border: 1px solid var(--tm-border);
}

.tm-auth-btn--ghost:hover {
  filter: none;
  background: #e2e8f0;
}

.tm-auth-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tm-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tm-auth-link:hover {
  color: var(--tm-primary);
}

.tm-auth-link--strong {
  font-weight: 600;
  color: var(--tm-primary);
}

.tm-auth-link--button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.tm-auth-footer-text {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tm-border);
  font-size: 0.875rem;
  text-align: center;
  color: var(--tm-muted);
}

.tm-auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--tm-radius-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.tm-auth-alert--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.tm-auth-alert--success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.tm-auth-alert__list {
  margin: 0;
  padding-left: 1.1rem;
}

.tm-auth-alert__list li + li {
  margin-top: 0.25rem;
}

/* —— Account settings —— */
.tm-account-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.tm-account-page {
  flex: 1;
  padding: 2rem 0 3rem;
}

.tm-account-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .tm-account-shell {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.tm-account-sidebar {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow);
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.tm-account-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tm-border);
}

.tm-account-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--tm-primary) 14%, #fff);
  color: var(--tm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.tm-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-account-sidebar__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tm-text);
  line-height: 1.3;
}

.tm-account-sidebar__email {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--tm-muted);
  word-break: break-all;
}

.tm-account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tm-account-nav__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--tm-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tm-muted);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.tm-account-nav__link:hover,
.tm-account-nav__link.is-active {
  background: color-mix(in srgb, var(--tm-primary) 10%, #fff);
  color: var(--tm-primary);
}

.tm-account-nav__link--pro,
.tm-account-sidebar__btn--pro {
  color: #6d28d9;
}

.tm-account-nav__link--pro:hover,
.tm-account-nav__link--pro.is-active,
.tm-account-sidebar__btn--pro:hover {
  color: #5b21b6;
  background: rgba(109, 40, 217, 0.08);
}

.tm-account-nav__link i {
  width: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.tm-account-sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tm-border);
}

.tm-account-sidebar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--tm-radius-sm);
  text-decoration: none;
  color: var(--tm-text);
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.tm-account-sidebar__btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.tm-account-sidebar__btn--admin {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.tm-account-sidebar__btn--ghost {
  background: transparent;
}

.tm-account-main__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tm-text);
}

.tm-account-main__subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--tm-muted);
  line-height: 1.5;
}

.tm-account-section + .tm-account-section {
  margin-top: 0.5rem;
}

.tm-settings-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .tm-settings-section {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 1.5rem 2rem;
  }
}

.tm-settings-section__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tm-text);
}

.tm-settings-section__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--tm-muted);
}

.tm-settings-panel {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow);
  padding: 1.25rem 1.5rem;
}

.tm-settings-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tm-settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tm-settings-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tm-text);
}

.tm-settings-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--tm-text);
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-settings-input:focus {
  outline: none;
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 18%, transparent);
}

.tm-settings-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tm-border);
}

.tm-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.tm-settings-btn--primary {
  color: #fff;
  background: var(--tm-primary);
}

.tm-settings-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--tm-shadow);
  filter: brightness(1.05);
}

.tm-settings-btn--secondary {
  color: var(--tm-text);
  background: #f1f5f9;
  border: 1px solid var(--tm-border);
}

.tm-settings-btn--secondary:hover {
  background: #e2e8f0;
}

.tm-settings-btn--danger {
  color: #fff;
  background: #dc2626;
}

.tm-settings-btn--danger:hover {
  filter: brightness(1.06);
}

.tm-settings-btn-spaced {
  margin-left: 0.5rem;
}

.tm-settings-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #dc2626;
}

.tm-settings-saved {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #16a34a;
}

.tm-settings-saved--inline {
  margin-right: auto;
}

.tm-settings-text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tm-muted);
}

.tm-settings-text--lead {
  font-weight: 600;
  color: var(--tm-text);
}

.tm-settings-text--strong {
  font-weight: 600;
  color: var(--tm-text);
}

.tm-settings-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tm-settings-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.tm-settings-photo__preview {
  width: 5rem;
  height: 5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tm-border);
}

.tm-settings-photo__preview img,
.tm-settings-photo__preview span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.tm-settings-photo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tm-settings-qr {
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  display: inline-block;
}

.tm-settings-recovery-codes {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.tm-settings-sessions {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tm-settings-session {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
}

.tm-settings-session__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--tm-border);
  color: var(--tm-muted);
}

.tm-settings-session__device {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tm-text);
}

.tm-settings-session__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--tm-muted);
  margin-top: 0.15rem;
}

.tm-settings-session__current {
  color: #16a34a;
}

.tm-settings-divider {
  height: 1px;
  background: var(--tm-border);
  margin: 1.5rem 0;
}

.tm-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
}

.tm-settings-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tm-settings-modal__wrap {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tm-settings-modal__panel {
  position: relative;
  width: 100%;
  background: var(--tm-surface);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  border: 1px solid var(--tm-border);
  overflow: hidden;
}

.tm-settings-modal--sm { max-width: 24rem; }
.tm-settings-modal--md { max-width: 28rem; }
.tm-settings-modal--lg { max-width: 32rem; }
.tm-settings-modal--xl { max-width: 36rem; }

.tm-settings-modal__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--tm-border);
}

.tm-settings-modal__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tm-text);
}

.tm-settings-modal__body {
  padding: 1.25rem 1.5rem;
}

.tm-settings-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--tm-border);
}

.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;
}

/* —— Utilities —— */
.tm-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 1rem 0;
}

.tm-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.groot-theme header.tm-header {
  padding-top: 1.5rem;
  padding-bottom: 0;
  overflow: visible;
  z-index: 40;
}

.groot-theme header.tm-header .container,
.groot-theme header.tm-header .tm-header-actions {
  overflow: visible;
}

.tm-nav-bar {
  overflow: visible;
  position: relative;
  z-index: 35;
}

.tm-site-footer__meta-col {
  position: relative;
  overflow: visible;
}

.groot-theme .tm-site-footer .tm-locale-switcher {
  position: relative;
  z-index: 60;
}

.groot-theme .tm-site-footer__inner,
.groot-theme .tm-site-footer__grid {
  overflow: visible;
}

.groot-theme .tm-hero-panel {
  padding: 1.5rem 0 2rem;
}

/* Scrollbar */
.tm-inbox-list::-webkit-scrollbar {
  width: 6px;
}

.tm-inbox-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--tm-primary);
  outline-offset: 2px;
}

/* Mobile nav overlay */
@media (max-width: 1023px) {
  .tm-mobile-nav-panel {
    background: var(--tm-surface);
  }
}

/* —— Site brand & footer —— */
.tm-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: opacity 0.15s ease;
}

.tm-site-brand:hover {
  opacity: 0.92;
}

.tm-site-brand__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
  color: #fff;
}

.tm-site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.tm-site-brand__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-site-brand__tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-site-quicklinks--footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tm-site-quicklink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.tm-site-quicklinks--footer .tm-site-quicklink {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.5rem;
  border-radius: var(--tm-radius-sm);
}

.tm-site-quicklinks--footer .tm-site-quicklink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tm-site-quicklink__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.tm-site-quicklinks--footer .tm-site-quicklink__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
}

.groot-theme .tm-site-footer {
  position: relative;
  overflow: visible;
  color: #fff;
  background: linear-gradient(
    165deg,
    var(--tm-primary) 0%,
    #1e3a5f 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.groot-theme .tm-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 0%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
}

.tm-site-footer__inner {
  position: relative;
  z-index: 1;
}

.tm-site-footer {
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.tm-site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .tm-site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .tm-site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 12rem;
  }
}

.tm-site-footer__about {
  margin: 0.75rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 22rem;
}

.tm-site-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.tm-site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tm-site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.tm-site-footer__socials a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tm-site-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tm-site-footer-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: var(--tm-radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}

.tm-site-footer-menu__link i {
  width: 1rem;
  text-align: center;
  opacity: 0.75;
  font-size: 0.8rem;
}

.tm-site-footer-menu__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tm-site-footer-menu__group {
  margin-bottom: 0.5rem;
}

.tm-site-footer-menu__parent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.25rem 0.35rem;
}

.tm-site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.tm-site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Mailbox refresh: paused until email is ready / fetch completes */
.pause-spinner {
  animation-play-state: paused;
}

/* —— CMS page content (all static / CMS pages) —— */
.tm-page-article {
  width: 100%;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow);
  overflow: hidden;
}

.tm-page-article--embedded {
  margin-bottom: 1.5rem;
}

.tm-page-article__hero {
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tm-primary) 90%, #0f172a) 0%,
    color-mix(in srgb, var(--tm-secondary) 48%, #0f172a) 100%
  );
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-page-article__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tm-page-article__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tm-page-content {
  padding: 1.5rem 1.35rem 1.75rem;
  font-size: 1.03125rem;
  line-height: 1.75;
  color: var(--tm-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .tm-page-content {
    padding: 2rem 2.25rem 2.25rem;
  }

  .tm-page-article__hero {
    padding: 2rem 2.25rem 1.75rem;
  }
}

/* Typography inside CMS HTML */
.tm-page-content h1,
.tm-page-content h2,
.tm-page-content h3,
.tm-page-content h4,
.tm-page-content h5,
.tm-page-content h6 {
  margin: 1.75em 0 0.65em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--tm-text);
}

.tm-page-content h1:first-child,
.tm-page-content h2:first-child,
.tm-page-content h3:first-child,
.tm-page-content h4:first-child {
  margin-top: 0;
}

.tm-page-content h1 {
  font-size: 1.75rem;
}

.tm-page-content h2 {
  font-size: 1.5rem;
}

.tm-page-content h3 {
  font-size: 1.25rem;
}

.tm-page-content h4 {
  font-size: 1.125rem;
}

.tm-page-content h5,
.tm-page-content h6 {
  font-size: 1rem;
}

.tm-page-content p {
  margin: 0 0 1.15em;
}

.tm-page-content p:last-child {
  margin-bottom: 0;
}

.tm-page-content strong,
.tm-page-content b {
  font-weight: 700;
  color: var(--tm-text);
}

.tm-page-content a {
  color: var(--tm-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--tm-primary) 35%, transparent);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tm-page-content a:hover {
  color: color-mix(in srgb, var(--tm-primary) 85%, #0f172a);
  text-decoration-color: var(--tm-primary);
}

.tm-page-content ul,
.tm-page-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.tm-page-content li {
  margin: 0.4em 0;
  padding-left: 0.25em;
}

.tm-page-content li::marker {
  color: var(--tm-primary);
}

.tm-page-content ul ul,
.tm-page-content ol ol,
.tm-page-content ul ol,
.tm-page-content ol ul {
  margin: 0.35em 0 0.5em;
}

.tm-page-content blockquote {
  margin: 1.25em 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--tm-primary);
  background: color-mix(in srgb, var(--tm-primary) 6%, var(--tm-bg));
  border-radius: 0 var(--tm-radius-sm) var(--tm-radius-sm) 0;
  color: var(--tm-muted);
  font-style: italic;
}

.tm-page-content hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--tm-border);
}

.tm-page-content img {
  max-width: 100%;
  height: auto;
  margin: 1.25em 0;
  border-radius: var(--tm-radius-sm);
  box-shadow: var(--tm-shadow);
}

.tm-page-content figure {
  margin: 1.5em 0;
}

.tm-page-content figcaption {
  margin-top: 0.5em;
  font-size: 0.875rem;
  color: var(--tm-muted);
  text-align: center;
}

.tm-page-content table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border-radius: var(--tm-radius-sm);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--tm-border);
}

.tm-page-content th,
.tm-page-content td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--tm-border);
  text-align: left;
}

.tm-page-content th {
  background: var(--tm-bg);
  font-weight: 700;
  color: var(--tm-text);
}

.tm-page-content tr:nth-child(even) td {
  background: color-mix(in srgb, var(--tm-bg) 50%, #fff);
}

.tm-page-content pre,
.tm-page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
}

.tm-page-content pre {
  margin: 1.25em 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--tm-radius-sm);
  line-height: 1.55;
}

.tm-page-content :not(pre) > code {
  padding: 0.15em 0.4em;
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  color: #0f172a;
}

.tm-page-content iframe {
  max-width: 100%;
  margin: 1.25em 0;
  border-radius: var(--tm-radius-sm);
  border: 1px solid var(--tm-border);
}

/* Collapse empty paragraphs from WYSIWYG editors */
.tm-page-content p:empty,
.tm-page-content p:has(> br:only-child) {
  display: none;
}

.tm-page-content > *:first-child {
  margin-top: 0;
}

.tm-page-content > *:last-child {
  margin-bottom: 0;
}

/* Shortcode / blog grid inside pages */
.tm-page-content #blogs .tm-blog-shortcode-grid {
  margin-top: 0.5rem;
}

.groot-theme .tm-main--content-only {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.groot-theme .tm-content-only-wrap {
  width: 100%;
}

.groot-theme .tm-blog {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow);
  overflow: hidden;
}

.groot-theme .tm-blog__hero {
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tm-primary) 92%, #0f172a) 0%,
    color-mix(in srgb, var(--tm-secondary) 55%, #0f172a) 100%
  );
  color: #fff;
}

.groot-theme .tm-blog__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.groot-theme .tm-blog__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.groot-theme .tm-blog__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.groot-theme .tm-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .groot-theme .tm-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .groot-theme .tm-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2rem;
    gap: 1.25rem;
  }
}

.groot-theme .tm-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.35rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.groot-theme .tm-blog-card:hover {
  border-color: color-mix(in srgb, var(--tm-primary) 35%, var(--tm-border));
  box-shadow: var(--tm-shadow);
  transform: translateY(-2px);
}

.groot-theme .tm-blog-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
  color: var(--tm-primary);
  font-size: 1rem;
}

.groot-theme .tm-blog-card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tm-secondary);
  background: color-mix(in srgb, var(--tm-secondary) 12%, #fff);
  border-radius: 999px;
}

.groot-theme .tm-blog-card__title {
  margin: 0.15rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tm-text);
}

.groot-theme .tm-blog-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tm-muted);
}

.groot-theme .tm-blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tm-primary);
}

/* —— Contact page —— */
.tm-contact {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  overflow: hidden;
}

.tm-contact__hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tm-primary) 92%, #0f172a) 0%,
    color-mix(in srgb, var(--tm-secondary) 55%, #0f172a) 100%
  );
  color: #fff;
}

.tm-contact__hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
}

.tm-contact__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.tm-contact__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tm-contact__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.tm-contact__body {
  padding: 1.75rem;
}

.tm-contact__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--tm-radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tm-contact__alert--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.tm-contact__alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.tm-contact__error-list {
  margin: 0;
  padding-left: 1.1rem;
}

.tm-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .tm-contact__grid {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: start;
  }
}

.tm-contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tm-contact__info-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
}

.tm-contact__info-card > i {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
  color: var(--tm-primary);
  font-size: 0.95rem;
}

.tm-contact__info-card h2 {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tm-contact__info-card p,
.tm-contact__info-card a {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--tm-text);
}

.tm-contact__info-card a {
  font-weight: 600;
  color: var(--tm-primary);
  text-decoration: none;
}

.tm-contact__info-card a:hover {
  text-decoration: underline;
}

.tm-contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
}

.tm-contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tm-contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tm-contact__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tm-muted);
}

.tm-contact__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--tm-text);
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-contact__input:focus {
  outline: none;
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 18%, transparent);
}

.tm-contact__textarea {
  resize: vertical;
  min-height: 8rem;
}

.tm-contact__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--tm-muted);
}

.tm-contact__word-count {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tm-muted);
}

.tm-contact__word-count.is-warning {
  color: #b45309;
}

.tm-contact__word-count.is-error {
  color: #b91c1c;
}

.tm-contact__word-count.is-ok {
  color: var(--tm-secondary);
}

.tm-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--tm-secondary);
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.tm-contact__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tm-secondary) 35%, transparent);
}

@media (max-width: 599px) {
  .tm-contact__hero {
    flex-direction: column;
    padding: 1.5rem;
  }

  .tm-contact__body {
    padding: 1.25rem;
  }
}

.groot-theme .tm-blog-card__cta i {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.groot-theme .tm-blog-card:hover .tm-blog-card__cta i {
  transform: translateX(3px);
}

/* [blogs] shortcode grid (WordPress feed) */
.groot-theme #blogs .tm-blog-shortcode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .groot-theme #blogs .tm-blog-shortcode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.groot-theme #blogs .tm-blog-shortcode-card {
  padding: 1.25rem;
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.groot-theme #blogs .tm-blog-shortcode-card:hover {
  border-color: color-mix(in srgb, var(--tm-primary) 30%, var(--tm-border));
  box-shadow: var(--tm-shadow);
}

.groot-theme #blogs .tm-blog-shortcode-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.groot-theme #blogs .tm-blog-shortcode-card__title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tm-text);
}

.groot-theme #blogs .tm-blog-shortcode-card__excerpt {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tm-muted);
}

.groot-theme #blogs .tm-blog-shortcode-loading {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--tm-muted);
  background: var(--tm-bg);
  border-radius: var(--tm-radius);
}

/* —— Fake name generator —— */
.tm-fakename-page-wrap {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.tm-fakename {
  max-width: 1100px;
  margin: 0 auto;
}

.tm-fakename__hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(
    135deg,
    var(--tm-primary) 0%,
    color-mix(in srgb, var(--tm-primary) 70%, #0f172a) 100%
  );
  border-radius: var(--tm-radius-lg);
  color: #fff;
  box-shadow: var(--tm-shadow-lg);
}

.tm-fakename__hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.35rem;
}

.tm-fakename__title {
  margin: 0 0 0.4rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tm-fakename__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
}

.tm-fakename__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .tm-fakename__grid {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: start;
  }
}

.tm-fakename__panel {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow);
  padding: 1.35rem 1.5rem;
}

.tm-fakename__panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tm-text);
}

.tm-fakename__panel-title i {
  color: var(--tm-primary);
  font-size: 0.95rem;
}

.tm-fakename__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tm-fakename__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tm-fakename__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tm-muted);
}

.tm-fakename__select {
  width: 100%;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--tm-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 10px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-fakename__select:focus {
  outline: none;
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 18%, transparent);
}

.tm-fakename__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--tm-secondary);
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tm-fakename__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tm-secondary) 35%, transparent);
  filter: brightness(1.05);
}

.tm-fakename__submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.tm-fakename__ad {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tm-border);
  text-align: center;
}

.tm-fakename__profile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tm-fakename__profile-block {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--tm-border);
}

.tm-fakename__profile-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tm-fakename__profile-heading {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tm-primary);
}

.tm-fakename__dl {
  margin: 0;
}

.tm-fakename__row {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 0.35rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.tm-fakename__row:last-child {
  border-bottom: none;
}

.tm-fakename__row dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tm-muted);
}

.tm-fakename__row dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tm-text);
  word-break: break-word;
}

.tm-fakename__value-wrap {
  min-width: 0;
}

.tm-fakename__value-wrap--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.tm-fakename__value-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.tm-fakename__value {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tm-text);
  word-break: break-word;
}

.tm-fakename__value.tm-fakename__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  word-break: break-all;
  padding: 0.35rem 0.55rem;
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
}

.tm-fakename__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: #fff;
  color: var(--tm-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tm-fakename__copy:hover {
  color: var(--tm-primary);
  border-color: var(--tm-primary);
  background: #f8fafc;
}

.tm-fakename__copy--done {
  color: #16a34a;
  border-color: #86efac;
  background: #f0fdf4;
}

.tm-fakename__copy i {
  font-size: 0.8rem;
  pointer-events: none;
}

.tm-fakename__row--wide {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.tm-fakename__row--wide dt {
  margin-bottom: 0.1rem;
}

@media (min-width: 600px) {
  .tm-fakename__row--wide {
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.35rem 1rem;
  }

  .tm-fakename__row--wide dt {
    margin-bottom: 0;
  }
}

.tm-fakename__mailbox-form {
  margin: 0;
}

.tm-fakename__mailbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--tm-primary);
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.tm-fakename__mailbox-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tm-fakename__mailbox-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 599px) {
  .tm-fakename__hero {
    flex-direction: column;
    padding: 1.25rem;
  }

  .tm-fakename__title {
    font-size: 1.375rem;
  }

  .tm-fakename__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* —— Hide ad placements on mobile (below md / 768px) —— */
@media (max-width: 767px) {
  .ads,
  .ads-one,
  .ads-two,
  .ads-three,
  .ads-four,
  .ads-five,
  .adsbyvli,
  ins.adsbygoogle {
    display: none !important;
  }

  /* Groot: hero + main side ad columns */
  .tm-hero-panel .ads,
  main .container.flex-col > [class*="md:w-1/6"],
  main .container.flex-col > [class*="md:w-1/4"]:not([class*="md:w-4"]) {
    display: none !important;
  }

  /* Groot: main content full width when side ads hidden */
  .groot-theme main .container.flex-col > [class*="md:w-4/6"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* —— Pricing page —— */
.tm-pricing {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  overflow: hidden;
}

.tm-pricing__hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tm-primary) 92%, #0f172a) 0%,
    color-mix(in srgb, var(--tm-secondary) 55%, #0f172a) 100%
  );
  color: #fff;
}

.tm-pricing__hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
}

.tm-pricing__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.tm-pricing__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tm-pricing__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.tm-pricing__body {
  padding: 1.75rem;
}

.tm-pricing__toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tm-pricing__interval {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
}

.tm-pricing__interval-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--tm-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tm-pricing__interval-btn.is-active {
  background: var(--tm-surface);
  color: var(--tm-text);
  box-shadow: var(--tm-shadow);
}

.tm-pricing__interval-save {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tm-secondary) 18%, #fff);
  color: var(--tm-secondary);
}

.tm-pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tm-pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tm-pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tm-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-border);
  background: var(--tm-surface);
}

.tm-price-card--featured {
  border-color: color-mix(in srgb, var(--tm-primary) 45%, var(--tm-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tm-primary) 35%, transparent), var(--tm-shadow-lg);
}

.tm-price-card--current {
  border-color: var(--tm-secondary);
}

.tm-price-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--tm-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tm-price-card__badge--free {
  background: var(--tm-secondary);
}

.tm-price-card__name {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.tm-price-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tm-muted);
  min-height: 2.625rem;
}

.tm-price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.5rem 0 0.35rem;
}

.tm-price-card__amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tm-price-card__suffix {
  font-size: 0.875rem;
  color: var(--tm-muted);
}

.tm-price-card__billed {
  margin: 0 0 1rem;
  min-height: 1.125rem;
  font-size: 0.75rem;
  color: var(--tm-muted);
}

.tm-price-card__features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
  font-size: 0.8125rem;
  color: var(--tm-muted);
}

.tm-price-card__features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
}

.tm-price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tm-secondary);
  font-weight: 700;
}

.tm-price-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--tm-radius-sm);
  background: var(--tm-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.tm-price-card__cta:hover {
  background: color-mix(in srgb, var(--tm-primary) 88%, #000);
  color: #fff;
  text-decoration: none;
}

.tm-price-card__cta--ghost {
  background: var(--tm-bg);
  color: var(--tm-text);
  border: 1px solid var(--tm-border);
}

.tm-price-card__cta--ghost:hover {
  background: var(--tm-surface);
  color: var(--tm-text);
}

.tm-pricing__empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  border-radius: var(--tm-radius);
  border: 1px dashed var(--tm-border);
  color: var(--tm-muted);
}

.tm-pricing-faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tm-border);
}

.tm-pricing-faq__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.tm-pricing-faq__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tm-primary);
}

.tm-pricing-faq__header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tm-pricing-faq__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tm-muted);
}

.tm-pricing-faq__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tm-pricing-faq__filter {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--tm-border);
  border-radius: 999px;
  background: var(--tm-surface);
  color: var(--tm-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tm-pricing-faq__filter:hover {
  color: var(--tm-text);
  border-color: color-mix(in srgb, var(--tm-primary) 35%, var(--tm-border));
}

.tm-pricing-faq__filter.is-active {
  background: var(--tm-primary);
  border-color: var(--tm-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--tm-primary-rgb), 0.25);
}

.tm-pricing-faq__groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tm-pricing-faq__group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tm-text);
}

.tm-pricing-faq__group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
  color: var(--tm-primary);
  font-size: 0.875rem;
}

.tm-pricing-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tm-pricing-faq__item {
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-surface);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tm-pricing-faq__item:has(.tm-pricing-faq__question.is-open) {
  border-color: color-mix(in srgb, var(--tm-primary) 35%, var(--tm-border));
  box-shadow: var(--tm-shadow);
}

.tm-pricing-faq__question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--tm-text);
  font: inherit;
}

.tm-pricing-faq__question-text {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.tm-pricing-faq__chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--tm-muted);
  transition: transform 0.2s ease;
}

.tm-pricing-faq__question.is-open .tm-pricing-faq__chevron {
  transform: rotate(180deg);
  color: var(--tm-primary);
}

.tm-pricing-faq__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tm-pricing-faq__badge--what {
  background: #dbeafe;
  color: #1d4ed8;
}

.tm-pricing-faq__badge--who {
  background: #ede9fe;
  color: #6d28d9;
}

.tm-pricing-faq__badge--why {
  background: #fef3c7;
  color: #b45309;
}

.tm-pricing-faq__badge--when {
  background: #fce7f3;
  color: #be185d;
}

.tm-pricing-faq__badge--where {
  background: #ccfbf1;
  color: #0f766e;
}

.tm-pricing-faq__badge--how {
  background: #dcfce7;
  color: #15803d;
}

.tm-pricing-faq__answer {
  padding: 0 1rem 1rem 4.5rem;
}

.tm-pricing-faq__answer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--tm-muted);
}

@media (max-width: 640px) {
  .tm-pricing-faq__badge {
    display: none;
  }

  .tm-pricing-faq__answer {
    padding-left: 1rem;
  }
}
