/**
 * Trackify frontend — premium tracking page, 5 templates, 5 progress styles.
 * 100% responsive, no emoji, SVG icons only.
 */

.tfy {
    --tfy-primary: #1a6b47;
    --tfy-secondary: #145238;
    --tfy-ink: #0d1b2a;
    --tfy-muted: #64748b;
    --tfy-surface: #ffffff;
    --tfy-surface-2: #f6f9f7;
    --tfy-border: rgba(15, 23, 42, .09);
    --tfy-radius: 22px;
    --tfy-shadow: 0 24px 60px -28px rgba(13, 27, 42, .35);
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 44px) clamp(14px, 3vw, 28px) clamp(30px, 6vw, 60px);
    color: var(--tfy-ink);
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow: hidden;
}

.tfy *, .tfy *::before, .tfy *::after { box-sizing: border-box; }
.tfy__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tfy [hidden],
.tfy__sheet[hidden] { display: none !important; }

/* ── ambient aura ─────────────────────────────────────────── */
.tfy__aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.tfy__aura span {
    position: absolute;
    width: 46vw; height: 46vw;
    min-width: 260px; min-height: 260px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .3;
    animation: tfy-float 16s ease-in-out infinite;
}
.tfy__aura span:nth-child(1) { top: -18%; left: -10%; background: var(--tfy-primary); }
.tfy__aura span:nth-child(2) { top: 20%; right: -14%; background: var(--tfy-secondary); animation-delay: -5s; }
.tfy__aura span:nth-child(3) { bottom: -20%; left: 25%; background: var(--tfy-primary); opacity: .18; animation-delay: -9s; }

@keyframes tfy-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, -26px, 0) scale(1.08); }
}

/* ── hero ─────────────────────────────────────────────────── */
.tfy__hero { text-align: center; margin-bottom: clamp(18px, 3vw, 30px); }

.tfy__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 999px;
    background: color-mix(in srgb, var(--tfy-primary) 12%, transparent);
    color: var(--tfy-primary);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--tfy-primary) 24%, transparent);
}
.tfy__badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tfy-primary);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--tfy-primary) 55%, transparent);
    animation: tfy-pulse 1.9s infinite;
}
@keyframes tfy-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tfy-primary) 55%, transparent); }
    70%  { box-shadow: 0 0 0 12px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.tfy__hero-icon {
    width: clamp(56px, 12vw, 76px); height: clamp(56px, 12vw, 76px);
    margin: 16px auto 14px;
    display: grid; place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--tfy-primary), var(--tfy-secondary));
    box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--tfy-primary) 65%, transparent);
    animation: tfy-bob 4.5s ease-in-out infinite;
}
.tfy__hero-icon svg { width: 55%; height: 55%; }
@keyframes tfy-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.tfy__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 5.2vw, 42px);
    font-weight: 800; line-height: 1.22; letter-spacing: -.01em;
}
.tfy__subtitle { margin: 0 auto; max-width: 620px; color: var(--tfy-muted); font-size: clamp(14px, 2.4vw, 17px); }

/* ── search card ──────────────────────────────────────────── */
.tfy__searchcard {
    background: var(--tfy-surface);
    border: 1px solid var(--tfy-border);
    border-radius: var(--tfy-radius);
    padding: clamp(16px, 3.4vw, 28px);
    box-shadow: var(--tfy-shadow);
}
.tfy--shadow-none .tfy__searchcard, .tfy--shadow-none .tfy__card { box-shadow: none; }
.tfy--shadow-strong .tfy__searchcard { box-shadow: 0 34px 80px -30px rgba(13, 27, 42, .5); }

.tfy__searchlabel {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
    font-size: 13.5px; font-weight: 700; color: var(--tfy-primary);
}
.tfy__searchlabel svg { width: 16px; height: 16px; }

.tfy__searchrow { display: flex; gap: 12px; flex-wrap: wrap; }

.tfy__inputwrap { position: relative; flex: 1 1 240px; min-width: 0; }
.tfy__inputicon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--tfy-muted); pointer-events: none;
}
.tfy__inputicon svg { width: 19px; height: 19px; display: block; }

.tfy__input {
    width: 100%; height: 58px;
    padding: 0 44px 0 44px;
    border: 1.6px solid var(--tfy-border);
    border-radius: 16px;
    background: var(--tfy-surface-2);
    color: var(--tfy-ink);
    font-size: 16px; font-family: inherit; font-weight: 600;
    letter-spacing: .01em;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tfy__input::placeholder { color: color-mix(in srgb, var(--tfy-muted) 85%, transparent); font-weight: 500; }
.tfy__input:focus {
    outline: none;
    background: var(--tfy-surface);
    border-color: var(--tfy-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tfy-primary) 16%, transparent);
}

.tfy__clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; display: none; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(15, 23, 42, .06); color: var(--tfy-muted);
}
.tfy__clear svg { width: 14px; height: 14px; }
.tfy__inputwrap.has-value .tfy__clear { display: grid; }

.tfy__btn {
    position: relative;
    flex: 0 0 auto; min-width: 168px; height: 58px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0 26px;
    border: 0; border-radius: 16px; cursor: pointer;
    background: linear-gradient(135deg, var(--tfy-primary), var(--tfy-secondary));
    color: #fff; font-family: inherit; font-size: 16px; font-weight: 700;
    box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--tfy-primary) 75%, transparent);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
    overflow: hidden;
}
.tfy__btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%);
    transform: translateX(-120%);
}
.tfy__btn:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.tfy__btn:hover { transform: translateY(-2px); }
.tfy__btn:active { transform: translateY(0); }
.tfy__btn[disabled] { opacity: .7; cursor: not-allowed; transform: none; }
.tfy__btn--pill { border-radius: 999px; }
.tfy__btn--square { border-radius: 8px; }

.tfy__btnspin {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.4px solid rgba(255,255,255,.4); border-top-color: #fff;
    animation: tfy-spin .65s linear infinite;
}
@keyframes tfy-spin { to { transform: rotate(360deg); } }

.tfy__hint {
    margin: 12px 0 0; padding: 11px 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, .08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, .2);
    font-size: 14px; font-weight: 600;
}

/* ── results ──────────────────────────────────────────────── */
.tfy__results { margin-top: clamp(16px, 3vw, 26px); display: grid; gap: 14px; }

.tfy__resulthead {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--tfy-muted);
}
.tfy__resulthead strong { color: var(--tfy-ink); }

.tfy__card {
    background: var(--tfy-surface);
    border: 1px solid var(--tfy-border);
    border-radius: 20px;
    padding: clamp(14px, 2.6vw, 22px);
    box-shadow: 0 16px 40px -26px rgba(13, 27, 42, .32);
    animation: tfy-rise .42s cubic-bezier(.22,.9,.28,1) both;
}
@keyframes tfy-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tfy__cardtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tfy__ordno { margin: 0; font-size: clamp(16px, 2.6vw, 19px); font-weight: 800; }
.tfy__meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--tfy-muted); font-size: 13.5px; }
.tfy__meta svg { width: 15px; height: 15px; }

.tfy__status {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: #fff;
    white-space: nowrap;
}
.tfy__status svg { width: 15px; height: 15px; }

.tfy__cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.tfy__courier { display: inline-flex; align-items: center; gap: 8px; color: var(--tfy-muted); font-size: 13.5px; font-weight: 600; }
.tfy__courier svg { width: 17px; height: 17px; color: var(--tfy-primary); }

.tfy__link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border: 0; border-radius: 12px; cursor: pointer;
    background: color-mix(in srgb, var(--tfy-primary) 12%, transparent);
    color: var(--tfy-primary);
    font-family: inherit; font-size: 14px; font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}
.tfy__link:hover { background: color-mix(in srgb, var(--tfy-primary) 20%, transparent); transform: translateY(-1px); }
.tfy__link svg { width: 15px; height: 15px; }

.tfy__empty { text-align: center; padding: clamp(26px, 6vw, 46px) 18px; }
.tfy__empty-icon {
    width: 68px; height: 68px; margin: 0 auto 14px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(15, 23, 42, .05); color: var(--tfy-muted);
}
.tfy__empty-icon svg { width: 32px; height: 32px; }
.tfy__empty h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.tfy__empty p { margin: 0; color: var(--tfy-muted); font-size: 14.5px; }

.tfy__skeleton { display: grid; gap: 12px; }
.tfy__skel-row { height: 92px; border-radius: 20px; background: linear-gradient(90deg, rgba(15,23,42,.05) 25%, rgba(15,23,42,.1) 37%, rgba(15,23,42,.05) 63%); background-size: 400% 100%; animation: tfy-shimmer 1.3s ease infinite; }
@keyframes tfy-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ── tracking progress: shared ────────────────────────────── */
.tfy__progress { margin: 18px 0 4px; }
.tfy__progress-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--tfy-ink);
}
.tfy__progress-title svg { width: 16px; height: 16px; color: var(--tfy-primary); }

/* steps */
.tfy-steps { display: flex; align-items: flex-start; gap: 0; }
.tfy-steps__item { position: relative; flex: 1 1 0; text-align: center; min-width: 0; }
.tfy-steps__dot {
    position: relative; z-index: 2;
    width: 46px; height: 46px; margin: 0 auto 10px;
    display: grid; place-items: center; border-radius: 50%;
    background: #fff; color: #94a3b8;
    border: 2.4px solid rgba(15, 23, 42, .12);
    transition: all .4s ease;
}
.tfy-steps__dot svg { width: 20px; height: 20px; }
.tfy-steps__line {
    position: absolute; top: 23px; left: 50%; width: 100%; height: 4px;
    background: rgba(15, 23, 42, .1); border-radius: 4px; overflow: hidden; z-index: 1;
}
.tfy-steps__item:last-child .tfy-steps__line { display: none; }
.tfy-steps__line i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--tfy-primary), var(--tfy-secondary));
    border-radius: 4px;
    transition: width .9s cubic-bezier(.3,.9,.3,1);
}
.tfy-steps__item.is-done .tfy-steps__line i, .tfy-steps__item.is-active .tfy-steps__line i { width: 100%; }
.tfy-steps__item.is-active .tfy-steps__line i { width: 55%; }
.tfy-steps__item.is-done .tfy-steps__dot,
.tfy-steps__item.is-active .tfy-steps__dot {
    background: linear-gradient(135deg, var(--tfy-primary), var(--tfy-secondary));
    border-color: transparent; color: #fff;
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--tfy-primary) 80%, transparent);
}
.tfy-steps__item.is-active .tfy-steps__dot { animation: tfy-ring 2s infinite; }
@keyframes tfy-ring {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tfy-primary) 45%, transparent); }
    70%  { box-shadow: 0 0 0 14px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.tfy-steps__label { font-size: 12.8px; font-weight: 700; color: var(--tfy-muted); padding: 0 4px; }
.tfy-steps__item.is-done .tfy-steps__label, .tfy-steps__item.is-active .tfy-steps__label { color: var(--tfy-ink); }

/* bar */
.tfy-bar__track { height: 14px; border-radius: 999px; background: rgba(15, 23, 42, .09); overflow: hidden; }
.tfy-bar__fill {
    height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--tfy-primary), var(--tfy-secondary));
    position: relative;
    transition: width 1.1s cubic-bezier(.3,.9,.3,1);
}
.tfy-bar__fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    animation: tfy-slide 1.8s linear infinite;
}
@keyframes tfy-slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.tfy-bar__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.tfy-bar__meta span:last-child { color: var(--tfy-primary); }
.tfy-bar__labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--tfy-muted); font-weight: 600; }

/* circular */
.tfy-ring { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); flex-wrap: wrap; }
.tfy-ring__chart { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.tfy-ring__chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tfy-ring__bg { fill: none; stroke: rgba(15, 23, 42, .1); stroke-width: 10; }
.tfy-ring__val { fill: none; stroke: url(#tfyGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.3,.9,.3,1); }
.tfy-ring__pct {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 26px; font-weight: 800; color: var(--tfy-primary);
}
.tfy-ring__list { flex: 1 1 200px; display: grid; gap: 10px; min-width: 0; }
.tfy-ring__row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--tfy-muted); }
.tfy-ring__row i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,23,42,.07); color: #94a3b8; flex: 0 0 auto; }
.tfy-ring__row i svg { width: 14px; height: 14px; }
.tfy-ring__row.is-on { color: var(--tfy-ink); }
.tfy-ring__row.is-on i { background: linear-gradient(135deg, var(--tfy-primary), var(--tfy-secondary)); color: #fff; }

/* vertical */
.tfy-vert { position: relative; padding-left: 8px; }
.tfy-vert__item { position: relative; padding: 0 0 22px 46px; }
.tfy-vert__item:last-child { padding-bottom: 0; }
.tfy-vert__item::before {
    content: ''; position: absolute; left: 17px; top: 34px; bottom: -4px; width: 3px;
    background: rgba(15, 23, 42, .1); border-radius: 3px;
}
.tfy-vert__item:last-child::before { display: none; }
.tfy-vert__item.is-done::before { background: linear-gradient(180deg, var(--tfy-primary), var(--tfy-secondary)); }
.tfy-vert__dot {
    position: absolute; left: 0; top: 0;
    width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%;
    background: #fff; border: 2.4px solid rgba(15,23,42,.12); color: #94a3b8;
}
.tfy-vert__dot svg { width: 17px; height: 17px; }
.tfy-vert__item.is-done .tfy-vert__dot, .tfy-vert__item.is-active .tfy-vert__dot {
    background: linear-gradient(135deg, var(--tfy-primary), var(--tfy-secondary)); border-color: transparent; color: #fff;
}
.tfy-vert__item.is-active .tfy-vert__dot { animation: tfy-ring 2s infinite; }
.tfy-vert__label { font-size: 15px; font-weight: 800; margin: 6px 0 2px; }
.tfy-vert__sub { font-size: 13px; color: var(--tfy-muted); font-weight: 600; }

/* rail */
.tfy-rail { position: relative; padding-top: 42px; }
.tfy-rail__road { position: relative; height: 10px; border-radius: 999px; background: repeating-linear-gradient(90deg, rgba(15,23,42,.12) 0 14px, transparent 14px 26px); }
.tfy-rail__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--tfy-primary), var(--tfy-secondary)); transition: width 1.2s cubic-bezier(.3,.9,.3,1); }
.tfy-rail__van {
    position: absolute; top: -34px; left: 0;
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, var(--tfy-primary), var(--tfy-secondary));
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--tfy-primary) 80%, transparent);
    transform: translateX(-50%);
    transition: left 1.2s cubic-bezier(.3,.9,.3,1);
    animation: tfy-bob 2.4s ease-in-out infinite;
}
.tfy-rail__van svg { width: 22px; height: 22px; }
.tfy-rail__stops { display: flex; justify-content: space-between; margin-top: 14px; gap: 8px; }
.tfy-rail__stop { flex: 1 1 0; text-align: center; font-size: 12.6px; font-weight: 700; color: var(--tfy-muted); }
.tfy-rail__stop.is-on { color: var(--tfy-primary); }

/* ── details sheet ────────────────────────────────────────── */
.tfy__sheet { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; }
.tfy__sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 26, .62); backdrop-filter: blur(5px); animation: tfy-fade .25s ease both; }
@keyframes tfy-fade { from { opacity: 0; } to { opacity: 1; } }

.tfy__sheet-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 660px; max-height: 90vh; overflow-y: auto;
    background: var(--tfy-surface); color: var(--tfy-ink);
    border-radius: 24px; padding: clamp(18px, 3.4vw, 30px);
    box-shadow: 0 40px 90px -30px rgba(8, 15, 26, .7);
    animation: tfy-pop .32s cubic-bezier(.22,.9,.28,1) both;
    -webkit-overflow-scrolling: touch;
}
@keyframes tfy-pop { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

.tfy__sheet-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(15, 23, 42, .07); color: var(--tfy-muted);
}
.tfy__sheet-close svg { width: 16px; height: 16px; }

.tfy__section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--tfy-border); }
.tfy__section:first-of-type { border-top: 0; padding-top: 0; }
.tfy__section h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14.5px; font-weight: 800; }
.tfy__section h4 svg { width: 16px; height: 16px; color: var(--tfy-primary); }

.tfy__kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tfy__kv div { background: var(--tfy-surface-2); border: 1px solid var(--tfy-border); border-radius: 14px; padding: 10px 13px; }
.tfy__kv span { display: block; font-size: 12px; color: var(--tfy-muted); font-weight: 700; }
.tfy__kv strong { font-size: 14.5px; font-weight: 700; word-break: break-word; }

.tfy__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--tfy-border); }
.tfy__item:last-child { border-bottom: 0; }
.tfy__item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--tfy-surface-2); }
.tfy__item-body { flex: 1 1 auto; min-width: 0; }
.tfy__item-body strong { display: block; font-size: 14.5px; font-weight: 700; }
.tfy__item-body small { color: var(--tfy-muted); font-size: 12.5px; }
.tfy__item-price { font-weight: 800; font-size: 14.5px; white-space: nowrap; }

.tfy__totals { display: grid; gap: 8px; }
.tfy__totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--tfy-muted); }
.tfy__totals div.is-grand { font-size: 17px; font-weight: 800; color: var(--tfy-ink); padding-top: 8px; border-top: 1px solid var(--tfy-border); }

.tfy__help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(18px, 3vw, 28px); color: var(--tfy-muted); font-size: 13.8px; text-align: center; }
.tfy__help svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ── templates ───────────────────────────────────────────── */
/* Glass */
.tfy--tpl-glass { --tfy-surface: rgba(255,255,255,.62); --tfy-surface-2: rgba(255,255,255,.5); --tfy-border: rgba(255,255,255,.7); }
.tfy--tpl-glass .tfy__searchcard,
.tfy--tpl-glass .tfy__card,
.tfy--tpl-glass .tfy__sheet-card { backdrop-filter: blur(18px) saturate(150%); }
.tfy--tpl-glass .tfy__aura span { opacity: .5; }

/* Minimal */
.tfy--tpl-minimal { --tfy-radius: 14px; --tfy-shadow: 0 8px 24px -18px rgba(13,27,42,.4); --tfy-surface-2: #f8fafc; }
.tfy--tpl-minimal .tfy__aura { display: none; }
.tfy--tpl-minimal .tfy__hero-icon { border-radius: 16px; animation: none; box-shadow: none; }
.tfy--tpl-minimal .tfy__card { border-radius: 14px; box-shadow: none; }
.tfy--tpl-minimal .tfy__btn { border-radius: 12px; box-shadow: none; }

/* Midnight */
.tfy--tpl-midnight {
    --tfy-ink: #eef4ff; --tfy-muted: #94a7c4;
    --tfy-surface: #131c2b; --tfy-surface-2: #0e1725;
    --tfy-border: rgba(255,255,255,.09);
    --tfy-shadow: 0 30px 70px -28px rgba(0,0,0,.85);
    background: radial-gradient(120% 90% at 50% 0%, #17233a 0%, #0a1220 60%, #070d18 100%);
    border-radius: 26px;
}
.tfy--tpl-midnight .tfy__input { color: var(--tfy-ink); }
.tfy--tpl-midnight .tfy-steps__dot, .tfy--tpl-midnight .tfy-vert__dot { background: #0e1725; border-color: rgba(255,255,255,.14); color: #64748b; }
.tfy--tpl-midnight .tfy__aura span { opacity: .34; }
.tfy--tpl-midnight .tfy__hint { background: rgba(239,68,68,.14); color: #fca5a5; }
.tfy--tpl-midnight .tfy__empty-icon, .tfy--tpl-midnight .tfy__sheet-close, .tfy--tpl-midnight .tfy__clear { background: rgba(255,255,255,.08); }

/* Royal */
.tfy--tpl-royal { --tfy-radius: 20px; --tfy-surface-2: #fdfaf3; }
.tfy--tpl-royal .tfy__searchcard,
.tfy--tpl-royal .tfy__card,
.tfy--tpl-royal .tfy__sheet-card { border: 1.6px solid rgba(184, 148, 74, .38); box-shadow: 0 20px 50px -30px rgba(120, 92, 30, .55); }
.tfy--tpl-royal .tfy__badge { border-color: rgba(184,148,74,.5); background: rgba(184,148,74,.14); color: #8a6a24; }
.tfy--tpl-royal .tfy__hero-icon { border-radius: 50%; }
.tfy--tpl-royal .tfy__title { font-weight: 800; letter-spacing: -.02em; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
    .tfy__btn { flex: 1 1 100%; }
    .tfy__cardtop { flex-direction: column; align-items: flex-start; }
    .tfy__cardfoot { flex-direction: column; align-items: stretch; }
    .tfy__link { justify-content: center; }
    .tfy-steps__label { font-size: 11.5px; }
    .tfy-steps__dot { width: 40px; height: 40px; }
    .tfy-steps__line { top: 20px; }
    .tfy__sheet { padding: 0; align-items: flex-end; }
    .tfy__sheet-card { max-width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: tfy-up .3s cubic-bezier(.22,.9,.28,1) both; }
    @keyframes tfy-up { from { transform: translateY(100%); } to { transform: none; } }
}

@media (max-width: 420px) {
    .tfy-steps { gap: 0; }
    .tfy-steps__label { font-size: 10.8px; }
    .tfy-ring__chart { width: 112px; height: 112px; }
    .tfy__input, .tfy__btn { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .tfy *, .tfy *::before, .tfy *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
