/* ═══════════════════════════════════════════════════════════════
   PUBLIC SITE — HEADER, PAGE OFFSET & MOTION
   Loaded only by _Layout.cshtml (CRM & CMS layouts are untouched).
   ═══════════════════════════════════════════════════════════════ */
.site-public {
  --header-h: 64px;
  --hdr-accent: var(--daleel-sky, rgb(var(--th-sky)));
  --hdr-accent-2: var(--daleel-green, #10B981);
  --hdr-ink: #0F1E3D;
  --hdr-muted: #52607A;
  --hdr-surface: rgba(255, 255, 255, 0.86);
  --hdr-surface-solid: rgba(255, 255, 255, 0.92);
  --hdr-line: rgba(15, 30, 61, 0.08);
  --hdr-chip: rgba(15, 30, 61, 0.045);
  --hdr-panel: #FFFFFF;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .site-public { --header-h: 84px; }
}

html.dark .site-public {
  --hdr-accent: color-mix(in srgb, rgb(var(--th-sky)) 80%, white);
  --hdr-ink: #F1F5FB;
  --hdr-muted: #9AA8C1;
  --hdr-surface: rgb(var(--th-d-bg) / 0.8);
  --hdr-surface-solid: rgba(13, 30, 56, 0.94);
  --hdr-line: rgba(255, 255, 255, 0.08);
  --hdr-chip: rgba(255, 255, 255, 0.05);
  --hdr-panel: #0D1E38;
}

html:has(.site-public) {
  scroll-padding-top: 100px;
}

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--hdr-accent);
  color: #fff !important;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ── Header shell ── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 0 10px;
  pointer-events: none;
  transition: padding 0.45s var(--ease-out);
  animation: header-in 0.8s var(--ease-out) both;
}

/* The fixed shell is click-through; only the bar and open menu are interactive */
.site-header__inner,
.mobile-nav.is-open { pointer-events: auto; }

/* Slide-in plays once per browsing session, not on every page load */
html.hdr-seen .site-header { animation: none; }

@keyframes header-in {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}

.site-header__inner {
  position: relative;
  max-width: 1440px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: height 0.45s var(--ease-out), max-width 0.45s var(--ease-out),
    background-color 0.35s ease, border-color 0.35s ease, border-radius 0.45s var(--ease-out),
    box-shadow 0.35s ease, transform 0.45s var(--ease-out);
}

@media (min-width: 640px) {
  .site-header__inner { padding: 0 22px; }
}

/* Scrolled: the bar detaches into a floating glass capsule */
.site-header[data-scrolled="true"] { padding: 10px 10px 0; }

.site-header[data-scrolled="true"] .site-header__inner {
  height: 64px;
  max-width: 1280px;
  border-radius: 20px;
  background: var(--hdr-surface);
  border-color: var(--hdr-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 12px 40px -12px rgba(15, 30, 61, 0.2);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

html.dark .site-header[data-scrolled="true"] .site-header__inner {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 48px -12px rgba(0, 0, 0, 0.65);
}

/* Hide when scrolling down, reveal when scrolling up */
.site-header[data-hidden="true"] .site-header__inner {
  transform: translateY(calc(-100% - 24px));
}

/* ── Brand ── */
.site-header__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-radius: 10px;
}

.site-header__logo {
  height: 36px;
  width: auto;
  transition: height 0.45s var(--ease-out), transform 0.3s var(--ease-out);
}

@media (min-width: 1024px) {
  .site-header__logo { height: 40px; }
  .site-header[data-scrolled="true"] .site-header__logo { height: 34px; }
}

.site-header__brand:hover .site-header__logo { transform: scale(1.03); }

/* ── Desktop nav: pill group + sliding indicator ── */
.site-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--hdr-chip);
  border: 1px solid var(--hdr-line);
}

@media (min-width: 1200px) {
  .site-nav { display: flex; }
}

.site-nav__indicator {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 30, 61, 0.08), 0 6px 16px -6px rgba(15, 30, 61, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.25s ease;
}

html.dark .site-nav__indicator {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-nav__link {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--hdr-muted) !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

@media (min-width: 1280px) {
  .site-nav__link { padding: 8px 18px; font-size: 14px; }
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active { color: var(--hdr-ink) !important; }

.site-nav__link.is-active { font-weight: 600; }

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hdr-accent);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--hdr-accent);
}

/* Before JS runs, highlight the active link directly */
.site-nav:not(.is-ready) .site-nav__link.is-active { background: var(--hdr-surface-solid); }

/* ── Actions ── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--hdr-line);
  background: var(--hdr-chip);
  color: var(--hdr-muted) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.hdr-btn .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.5s var(--ease-out);
}

.hdr-btn:hover {
  color: var(--hdr-ink) !important;
  border-color: color-mix(in srgb, var(--hdr-accent) 45%, transparent);
  background: color-mix(in srgb, var(--hdr-accent) 10%, transparent);
}

.hdr-btn:active { transform: scale(0.94); }

#theme-toggle:hover .material-symbols-outlined { transform: rotate(-30deg) scale(1.08); }
.hdr-btn--lang:hover .material-symbols-outlined { transform: rotate(180deg); }

.hdr-btn--lang { padding: 0 12px 0 10px; }

.hdr-btn__text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 479px) {
  .hdr-btn--lang .material-symbols-outlined { display: none; }
  .site-header__actions { gap: 6px; }
}

/* ── Primary CTA ── */
.hdr-cta {
  position: relative;
  display: none;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, rgb(var(--th-sky)) 0%, rgb(var(--th-sky-deep)) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -8px rgb(var(--th-sky) / 0.8);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

@media (min-width: 640px) {
  .hdr-cta { display: inline-flex; }
}

.hdr-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.hdr-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px -10px rgb(var(--th-sky) / 0.9);
}

.hdr-cta:hover::before { transform: translateX(120%); }
.hdr-cta:active { transform: scale(0.97); }

.hdr-cta__arrow {
  font-size: 18px !important;
  transition: transform 0.3s var(--ease-out);
}

.hdr-cta:hover .hdr-cta__arrow { transform: translateX(3px); }
[dir="rtl"] .hdr-cta__arrow { transform: scaleX(-1); }
[dir="rtl"] .hdr-cta:hover .hdr-cta__arrow { transform: scaleX(-1) translateX(3px); }

/* ── Burger ── */
.hdr-burger { padding: 0; }

@media (min-width: 1200px) {
  .hdr-burger { display: none; }
}

.hdr-burger__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.hdr-burger__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.2s ease, width 0.3s ease;
}

.hdr-burger__bars i:nth-child(1) { top: 0; }
.hdr-burger__bars i:nth-child(2) { top: 5px; width: 65%; }
.hdr-burger__bars i:nth-child(3) { top: 10px; }
[dir="rtl"] .hdr-burger__bars i:nth-child(2) { left: auto; right: 0; }

.hdr-burger[aria-expanded="true"] .hdr-burger__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] .hdr-burger__bars i:nth-child(2) { opacity: 0; width: 0; }
.hdr-burger[aria-expanded="true"] .hdr-burger__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 1280px;
  margin: 8px auto 0;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.mobile-nav.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s;
}

@media (min-width: 1200px) {
  .mobile-nav { display: none; }
}

.mobile-nav__panel {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 20px;
  background: var(--hdr-panel);
  border: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: padding 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__panel {
  padding: 10px;
  border-color: var(--hdr-line);
  box-shadow: 0 24px 60px -20px rgba(15, 30, 61, 0.35);
}

.mobile-nav__link,
.mobile-nav .hdr-cta--block {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav.is-open .mobile-nav__link,
.mobile-nav.is-open .hdr-cta--block {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 40ms + 80ms);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hdr-ink) !important;
  text-decoration: none !important;
}

.mobile-nav__link:hover { background: var(--hdr-chip); }

.mobile-nav__link.is-active {
  color: var(--hdr-accent) !important;
  font-weight: 600;
  background: color-mix(in srgb, var(--hdr-accent) 10%, transparent);
}

.mobile-nav__chev { font-size: 20px !important; opacity: 0.45; }
[dir="rtl"] .mobile-nav__chev { transform: scaleX(-1); }

.mobile-nav .hdr-cta--block {
  display: flex;
  justify-content: center;
  height: 48px;
  margin-top: 8px;
}

/* Keep the header visible while the mobile menu is open */
.site-header.menu-open .site-header__inner { transform: none; }
.site-header.menu-open .site-header__inner {
  background: var(--hdr-panel);
  border-color: var(--hdr-line);
  border-radius: 20px;
}
.site-header.menu-open { padding-top: 10px; }

/* ── Scroll progress line (sits on the capsule's bottom edge) ── */
.scroll-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header[data-scrolled="true"]:not([data-hidden="true"]) .scroll-progress { opacity: 1; }

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgb(var(--th-sky)), #10B981, #F9A01B);
}

[dir="rtl"] .scroll-progress span { transform-origin: right; }

/* ── Focus rings ── */
.site-public a:focus-visible,
.site-public button:focus-visible,
.site-public input:focus-visible,
.site-public select:focus-visible,
.site-public textarea:focus-visible {
  outline: 2px solid var(--hdr-accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE OFFSET — page content no longer hides under the navbar
   ═══════════════════════════════════════════════════════════════ */
.site-main > section:first-of-type:not(#main-scrolly) {
  padding-top: calc(var(--header-h) + 56px) !important;
}

@media (min-width: 1024px) {
  .site-main > section:first-of-type:not(#main-scrolly) {
    padding-top: calc(var(--header-h) + 72px) !important;
  }
}

#main-scrolly > div:first-child {
  padding-top: calc(var(--header-h) + 24px);
}

/* Hero slides sit in a fixed-height box; keep the headline small enough
   that tall slides never spill up under the header. */
@media (min-width: 768px) {
  #main-scrolly .story-slide h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.75rem);
    line-height: 1.2;
  }
}

/* Simple content pages (Privacy / Error) */
.page-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 96px;
}

/* ═══════════════════════════════════════════════════════════════
   MOTION & POLISH
   ═══════════════════════════════════════════════════════════════ */
.site-public ::selection {
  background: rgb(var(--th-sky) / 0.22);
}

/* Additional reveal type */
[data-animate="blur-in"] {
  filter: blur(12px);
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
[data-animate="blur-in"].is-visible { filter: none; }

/* Cards lift consistently across public pages */
/* `translate` composes with Tailwind's `transform` (e.g. lg:scale-105) instead of replacing it */
.site-main .glass-card {
  transition: translate 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s ease,
    border-color 0.3s ease, background-color 0.3s ease;
}

@media (hover: hover) {
  .site-main .glass-card:not([class*="hover:-translate"]):hover {
    translate: 0 -4px;
  }
  .site-main .glass-card:hover {
    box-shadow: 0 22px 44px -18px rgb(var(--th-sky) / 0.3);
    border-color: rgb(var(--th-sky) / 0.3);
  }
}

/* ── Card spotlight: a soft light that follows the cursor (cards tagged by site-header.js) ── */
.fx-card {
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
}

.fx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* above the card background, below its content */
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(var(--th-sky) / 0.09), transparent 45%);
  transition: opacity 0.5s ease;
}

html.dark .fx-card::after {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(51, 196, 242, 0.1), transparent 45%);
}

/* Hairline border that brightens near the cursor */
.fx-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgb(var(--th-sky) / 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.5s ease;
}

@media (hover: hover) {
  .fx-card:hover::after,
  .fx-card:hover::before { opacity: 1; }
}

/* Icons inside cards: calm lift on card hover */
.fx-card .material-symbols-outlined {
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .fx-card:hover .material-symbols-outlined { transform: translateY(-2px) scale(1.06); }
}

/* Card images: slow zoom */
.fx-card img {
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) {
  .fx-card:hover img { transform: scale(1.04); }
}

/* ── Logo: a light sweep masked to the logo's own shape ── */
.logo-shine {
  position: relative;
  line-height: 0; /* display is left to Tailwind's hidden / dark:block */
}

.logo-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask: var(--logo-src) center / contain no-repeat;
  mask: var(--logo-src) center / contain no-repeat;
  animation: logo-sweep 1.6s var(--ease-out) 0.9s both;
}

html.hdr-seen .logo-shine::after { animation: none; }

.site-header__brand:hover .logo-shine::after {
  animation: logo-sweep 1.2s var(--ease-out) both;
}

@keyframes logo-sweep {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

.site-header__logo {
  filter: drop-shadow(0 0 0 rgb(var(--th-sky) / 0));
  transition: height 0.45s var(--ease-out), transform 0.4s var(--ease-out), filter 0.4s ease;
}

.site-header__brand:hover .site-header__logo {
  filter: drop-shadow(0 4px 14px rgb(var(--th-sky) / 0.28));
}

/* Footer logo: gentle float on hover */
.site-footer img[width="150"] {
  transition: transform 0.6s var(--ease-out), filter 0.6s ease;
}

.site-footer img[width="150"]:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgb(var(--th-sky) / 0.22));
}

/* Buttons get a tactile press */
.site-main a[class*="rounded"][class*="bg-"]:active,
.site-main button[class*="rounded"][class*="bg-"]:active { transform: scale(0.97); }

/* Section headings: animated gradient on the brand-colored words */
.site-main .text-gradient {
  background-size: 200% auto;
  animation: gradient-pan 6s ease-in-out infinite alternate;
}

@keyframes gradient-pan {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

/* Footer links: animated underline */
.site-footer ul a {
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.3s var(--ease-out);
}

.site-footer ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

[dir="rtl"] .site-footer ul a::after { transform-origin: right; }
.site-footer ul a:hover::after { transform: scaleX(1); }
.site-footer ul a:hover { transform: translateX(3px); }
[dir="rtl"] .site-footer ul a:hover { transform: translateX(-3px); }

.site-footer a[title]:hover { transform: translateY(-3px); }

/* Back-to-top button */
.to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--hdr-line);
  background: var(--hdr-surface-solid);
  color: var(--hdr-ink);
  box-shadow: 0 10px 30px -10px rgba(15, 30, 61, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), color 0.2s, border-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  color: var(--hdr-accent);
  border-color: rgb(var(--th-sky) / 0.4);
  transform: translateY(-3px);
}

/* ── Chat: "taking you to page X" card ── */
.dalily-nav-card {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgb(var(--th-sky) / 0.25);
  background: linear-gradient(135deg, rgb(var(--th-sky) / 0.08), rgba(16, 185, 129, 0.06));
  animation: nav-card-in 0.45s var(--ease-out) both;
}

@keyframes nav-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dalily-nav-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
}

.dalily-nav-card__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px !important;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--th-sky)), rgb(var(--th-sky-deep)));
  box-shadow: 0 6px 14px -6px rgb(var(--th-sky) / 0.8);
}

[dir="rtl"] .dalily-nav-card__icon { transform: scaleX(-1); }

.dalily-nav-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.dalily-nav-card__label { font-size: 11px; color: #64748B; }
.dalily-nav-card__text strong { font-size: 13.5px; color: #0F1E3D; }
html.dark .dalily-nav-card__label { color: #94A3B8; }
html.dark .dalily-nav-card__text strong { color: #F1F5FB; }

.dalily-nav-card__go {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgb(var(--th-sky));
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.dalily-nav-card__go:hover { background: rgb(var(--th-sky-deep)); }
.dalily-nav-card__go:active { transform: scale(0.95); }

.dalily-nav-card__cancel {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748B;
  transition: background-color 0.2s, color 0.2s;
}

.dalily-nav-card__cancel .material-symbols-outlined { font-size: 18px; }
.dalily-nav-card__cancel:hover { background: rgba(15, 30, 61, 0.06); color: #0F1E3D; }
html.dark .dalily-nav-card__cancel:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.dalily-nav-card__bar {
  height: 3px;
  background: rgb(var(--th-sky) / 0.12);
}

.dalily-nav-card__bar span {
  display: block;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, rgb(var(--th-sky)), #10B981);
  animation: nav-card-progress linear forwards;
}

[dir="rtl"] .dalily-nav-card__bar span { transform-origin: right; }

@keyframes nav-card-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
