/* Kavvi Pro trial clock + card (trial-20261010, trial24-20261011). The card is always Pro's deep green, like the
   limit offer, so it reads the same on light and dark. The clock sits first in the top navigation's right group;
   its colours follow the theme. Calm mint while hours remain, amber from 6 hours, a soft pulse in the last hour. */

/* ------------------------------------------------------------------ the clock in the navigation */
.kvtt {
  --kvtt-ink: #dff7ec; --kvtt-sub: #8fc9b0; --kvtt-acc: #7de3b8; --kvtt-bg: rgba(125, 227, 184, .08); --kvtt-edge: rgba(125, 227, 184, .26);
  --kvtt-left: 100;
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; min-height: 0 !important; min-width: 0 !important;
  padding: 0 12px 0 7px; border: 1px solid var(--kvtt-edge); border-radius: 13px; background: var(--kvtt-bg); color: var(--kvtt-ink);
  font: 600 13px/1 'DM Sans', 'Plex Arabic', system-ui, sans-serif; cursor: pointer; box-sizing: border-box; aspect-ratio: auto !important;
  transition: background .2s, border-color .2s, transform .2s cubic-bezier(.2, .9, .3, 1.2);
  animation: kvtt-in .5s cubic-bezier(.2, .9, .3, 1.15) both;
}
:root[data-theme='light'] .kvtt { --kvtt-ink: #0d2a21; --kvtt-sub: #4b7666; --kvtt-acc: #17805a; --kvtt-bg: rgba(23, 128, 90, .07); --kvtt-edge: rgba(23, 128, 90, .24); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .kvtt { --kvtt-ink: #0d2a21; --kvtt-sub: #4b7666; --kvtt-acc: #17805a; --kvtt-bg: rgba(23, 128, 90, .07); --kvtt-edge: rgba(23, 128, 90, .24); }
}
.kvtt[data-mood='warm'], .kvtt[data-mood='hot'] { --kvtt-acc: #ffbe55; --kvtt-edge: rgba(255, 190, 85, .4); --kvtt-bg: rgba(255, 190, 85, .1); }
:root[data-theme='light'] .kvtt[data-mood='warm'], :root[data-theme='light'] .kvtt[data-mood='hot'] { --kvtt-acc: #b86a00; --kvtt-edge: rgba(184, 106, 0, .35); --kvtt-bg: rgba(255, 176, 50, .12); }
.kvtt:hover { background: color-mix(in srgb, var(--kvtt-acc) 16%, transparent); border-color: var(--kvtt-acc); }
.kvtt:active { transform: scale(.97); }
.kvtt:focus-visible { outline: 2px solid var(--kvtt-acc); outline-offset: 2px; }
.kvtt[aria-expanded='true'] { border-color: var(--kvtt-acc); }

.kvtt__ring { width: 26px; height: 26px; flex: none; overflow: visible; }
.kvtt__ring path { fill: none; stroke-linejoin: round; }
.kvtt__track { stroke: currentColor; stroke-width: 2.4; opacity: .16; }
.kvtt__left { stroke: var(--kvtt-acc); stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: calc(var(--kvtt-left) * 1px) 100px; transition: stroke-dasharray 1s linear; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--kvtt-acc) 55%, transparent)); }
.kvtt__core { fill: var(--kvtt-acc) !important; transform-origin: 16px 16px; animation: kvtt-beat 1s ease-in-out infinite; }
.kvtt__words { display: grid; gap: 3px; justify-items: start; text-align: start; }
.kvtt__label { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; color: var(--kvtt-acc); line-height: 1; }
.kvtt[dir='rtl'] .kvtt__label, :root[lang^='ar'] .kvtt__label { letter-spacing: 0; font-size: 11px; }
.kvtt__clock { font-size: 14px; font-weight: 700; color: var(--kvtt-ink); }
.kvtt[data-mood='hot'] { animation: kvtt-in .5s cubic-bezier(.2, .9, .3, 1.15) both, kvtt-hot 2s ease-in-out infinite; }
.kvtt.is-arriving { animation: kvtt-arrive .7s cubic-bezier(.2, .9, .25, 1.3) both; }
.kvtt.is-waiting { opacity: 0; animation: none; }
.kvtt.is-done { animation: kvtt-done .8s cubic-bezier(.5, 0, .7, .4) forwards; pointer-events: none; }

/* the rolling digits (shared by the clock in the card) */
.kvt-clock { display: inline-flex; align-items: center; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; line-height: 1; }
.kvt-clock__d { position: relative; display: inline-block; width: .62em; height: 1.08em; overflow: hidden; text-align: center; }
.kvt-clock__d i { position: absolute; inset: 0; font-style: normal; line-height: 1.08em; }
.kvt-clock__d i.is-in { animation: kvt-roll-in .38s cubic-bezier(.2, .9, .3, 1.1) both; }
.kvt-clock__d i.is-out { animation: kvt-roll-out .38s cubic-bezier(.5, 0, .7, .4) both; }
.kvt-clock__colon { display: inline-block; width: .32em; text-align: center; opacity: .55; transform: translateY(-.04em); }
.kvt-clock.is-no-seconds .kvt-clock__s { display: none; }

@keyframes kvt-roll-in { from { transform: translateY(80%); opacity: 0; filter: blur(1.5px); } }
@keyframes kvt-roll-out { to { transform: translateY(-80%); opacity: 0; filter: blur(1.5px); } }
@keyframes kvtt-in { from { opacity: 0; transform: translateY(-6px) scale(.92); } }
@keyframes kvtt-beat { 0%, 100% { transform: scale(1); opacity: 1; } 12% { transform: scale(1.18); } 40% { transform: scale(.94); opacity: .78; } }
@keyframes kvtt-hot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 190, 85, 0); } 50% { box-shadow: 0 0 0 5px rgba(255, 190, 85, .14); } }
@keyframes kvtt-arrive { 0% { transform: scale(.6); opacity: 0; } 55% { transform: scale(1.14); opacity: 1; box-shadow: 0 0 0 8px color-mix(in srgb, var(--kvtt-acc) 22%, transparent); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }
@keyframes kvtt-done { 30% { transform: scale(1.08); } to { transform: scale(.4); opacity: 0; filter: blur(4px); } }

/* phones: the five icons leave about 100px - the label goes, then (under 375px) the seconds */
@media (max-width: 760px) {
  .kvtt { height: 36px; gap: 6px; padding: 0 9px 0 5px; border-radius: 11px; }
  .kvtt__ring { width: 22px; height: 22px; }
  .kvtt__label { display: none; }
  .kvtt__clock { font-size: 13px; }
}
@media (max-width: 374px) { .kvtt__clock .kvt-clock__s { display: none; } }

/* ------------------------------------------------------------------ the card */
.kvtc {
  position: fixed; z-index: 2500; inset-inline-end: 22px; bottom: 22px; width: min(360px, calc(100vw - 32px));
  display: grid; gap: 10px; padding: 14px 16px 16px; border-radius: 18px; box-sizing: border-box;
  background: radial-gradient(120% 140% at 100% 0%, #1f6b4f 0%, #0d3a2c 55%, #0a2d22 100%); color: #e9fbf2;
  box-shadow: 0 18px 50px rgba(5, 30, 22, .35), 0 2px 6px rgba(0, 0, 0, .2); font: 500 14px/1.45 'DM Sans', 'Plex Arabic', system-ui, sans-serif;
  animation: kvtc-in .32s cubic-bezier(.2, .9, .3, 1.2);
}
.kvtc.is-leaving { animation: kvtc-out .2s ease-in forwards; }
@keyframes kvtc-in { from { transform: translateY(14px) scale(.98); opacity: 0; } }
@keyframes kvtc-out { to { transform: translateY(10px); opacity: 0; } }
.kvtc__head { display: flex; align-items: center; gap: 10px; }
.kvtc__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(125, 227, 184, .14); color: #7de3b8; }
.kvtc__title { flex: 1; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.kvtc__x { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 9px; background: transparent; color: #b9dccd; cursor: pointer; min-height: 0 !important; }
.kvtc__x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.kvtc__text { margin: 0; color: #bfe3d3; font-size: 13.5px; }
.kvtc__clock { justify-self: start; margin: 2px 0 0; font: 800 40px/1 'Syne', 'DM Sans', system-ui, sans-serif; letter-spacing: -.01em; color: #f2fff8; filter: drop-shadow(0 0 14px rgba(125, 227, 184, .35)); }
.kvtc[dir='rtl'] .kvtc__clock { justify-self: end; }
.kvtc__bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.kvtc__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7de3b8, #d9fbe9); transition: width 1s linear; }
.kvtc[dir='rtl'] .kvtc__bar i { margin-inline-start: auto; background: linear-gradient(270deg, #7de3b8, #d9fbe9); }
.kvtc--warm .kvtc__icon, .kvtc--hot .kvtc__icon { background: rgba(255, 196, 92, .18); color: #ffc45c; }
.kvtc--warm .kvtc__clock, .kvtc--hot .kvtc__clock { color: #ffe2ad; filter: drop-shadow(0 0 14px rgba(255, 196, 92, .35)); }
.kvtc--warm .kvtc__bar i, .kvtc--hot .kvtc__bar i { background: linear-gradient(90deg, #ffb347, #ffe2ad); }
.kvtc__go {
  display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(180deg, #d9fbe9, #8be3bb); color: #0a2d22 !important; font-weight: 800; font-size: 14.5px;
}
.kvtc__go:hover { filter: brightness(1.04); }
.kvtc--ended { background: radial-gradient(120% 140% at 100% 0%, #24493d 0%, #10251e 60%, #0b1c17 100%); }
.kvtc a:focus-visible, .kvtc button:focus-visible { outline: 2px solid #7de3b8; outline-offset: 2px; }
/* opened from the clock: hangs under it, with a little tip pointing up at it */
.kvtc--pop { bottom: auto; transform-origin: top; animation: kvtc-drop .26s cubic-bezier(.2, .9, .3, 1.15); }
.kvtc--pop::before { content: ''; position: absolute; top: -6px; inset-inline-end: calc(var(--kvtc-tip, 40px) - 6px); width: 12px; height: 12px; border-radius: 3px 0 0 0; background: #1d6449; transform: rotate(45deg); }
.kvtc--pop.is-leaving { animation: kvtc-lift .18s ease-in forwards; }
@keyframes kvtc-drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes kvtc-lift { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (max-width: 760px) {
  .kvtc { inset-inline: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .kvtc__clock { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .kvtc, .kvtc.is-leaving, .kvtt, .kvtt.is-arriving, .kvtt__core, .kvt-clock__d i { animation: none !important; }
}

/* trialgrant-20261012: more than 24 hours left - days and hours instead of the clock digits */
.kvt-clock__long { display: none; white-space: nowrap; unicode-bidi: isolate; }
.kvt-clock.is-long > :not(.kvt-clock__long) { display: none !important; }
.kvt-clock.is-long > .kvt-clock__long { display: inline; }
