/* ============================================================
   Ziatan — Provider Cards
   Tier-grouped carrier cards, ziatan-orange accents.
   ============================================================ */

/* ─── Tier section header ────────────────────────────────────── */
.zt-tier-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 28px 0 14px;
    padding: 0 4px 6px;
    position: relative;
}
.zt-tier-header:first-child { margin-top: 0; }
.zt-tier-header__label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    will-change: transform, opacity;
}
.zt-tier-header__count {
    color: var(--accent-primary-hi);
    margin-left: 6px;
    font-weight: 800;
}
.zt-tier-header__underline {
    height: 6px;
    width: 100%;
    pointer-events: none;
    overflow: visible;
}
.zt-tier-header__underline path {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 2.4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(243,107,31,0.5));
}

/* ─── Card shell ─────────────────────────────────────────────── */
.zt-card {
    position: relative;
    background:
        linear-gradient(160deg, rgba(31,14,74,0.72) 0%, rgba(12,8,32,0.92) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform var(--t-power), border-color var(--t-smooth), box-shadow var(--t-smooth);
    will-change: transform;
    box-shadow: var(--shadow-card);
    transform-origin: center;
}
.zt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(243,107,31,0.0), rgba(243,107,31,0.0), rgba(243,107,31,0.0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    transition: background var(--t-smooth);
}
.zt-card:hover {
    border-color: var(--card-accent, var(--accent-primary));
    box-shadow:
        0 0 0 1px var(--card-accent, var(--accent-primary)),
        0 18px 56px rgba(0,0,0,0.45),
        0 0 80px -10px var(--card-accent, var(--accent-primary));
}
.zt-card:hover::before {
    background: linear-gradient(135deg,
        var(--card-accent, var(--accent-primary)) 0%,
        rgba(243,107,31,0.15) 50%,
        var(--card-accent, var(--accent-primary)) 100%);
}

/* Ambient blob — pulsed by reveal.js */
.zt-card__glow {
    position: absolute;
    top: -60%;
    right: -20%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    opacity: 0.10;
    filter: blur(60px);
    pointer-events: none;
    transition: opacity var(--t-smooth);
    will-change: transform, opacity;
}
.zt-card:hover .zt-card__glow { opacity: 0.18; }

/* ─── Top row: brand + CTA ──────────────────────────────────── */
.zt-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px 16px;
    position: relative;
    z-index: 1;
}
.zt-card__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.zt-card__logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border: 1.5px solid;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
    will-change: transform;
}
.zt-card:hover .zt-card__logo {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 24px var(--card-accent, var(--accent-primary));
}
.zt-card__monogram {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
}
.zt-card__name-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.zt-card__name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zt-card__type {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.zt-card__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.01em;
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
    white-space: nowrap;
    will-change: transform;
}
.zt-card__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, transparent 55%);
    pointer-events: none;
}
.zt-card__cta:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.40);
}

/* ─── Speed badge ───────────────────────────────────────────── */
.zt-card__speed {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 26px 12px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.zt-speed-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: rgba(243,107,31,0.12);
    border: 1px solid rgba(243,107,31,0.35);
    color: var(--accent-primary-hi);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.01em;
}
.zt-speed-pill svg { stroke: var(--accent-primary-hi); }
.zt-speed-num {
    font-variant-numeric: tabular-nums;
}
.zt-speed-coverage {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* ─── Divider ───────────────────────────────────────────────── */
.zt-card__divider {
    height: 1px;
    margin: 0 26px;
    background: linear-gradient(90deg,
        rgba(243,107,31,0) 0%,
        rgba(243,107,31,0.35) 50%,
        rgba(243,107,31,0) 100%);
}

/* ─── Detail grid ───────────────────────────────────────────── */
.zt-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    padding: 6px 14px;
    position: relative;
    z-index: 1;
}
.zt-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast);
}
.zt-card__detail:hover { background: rgba(255,255,255,0.04); }
.zt-card__detail svg { flex-shrink: 0; margin-top: 2px; }
.zt-card__detail > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.zt-card__label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
}
.zt-card__value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

/* ─── Promo pills row ───────────────────────────────────────── */
.zt-card__promos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 26px 22px;
    position: relative;
    z-index: 1;
}
.zt-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid;
    background: rgba(255,255,255,0.04);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background var(--t-fast), transform var(--t-fast);
    will-change: transform;
}
.zt-promo-pill:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}
.zt-promo-pill svg { flex-shrink: 0; }

/* ─── Starting price + Special-promotions label + disclaimer ──── */
.zt-card__price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px;
    padding: 2px 26px 14px; position: relative; z-index: 1;
}
.zt-card__price-lead { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.zt-card__price-amt { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; }
.zt-card__price-star { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.zt-card__price-note { flex-basis: 100%; font-size: 11.5px; color: var(--text-faint); line-height: 1.5; font-weight: 500; }
.zt-card__promos-label {
    padding: 4px 26px 0; position: relative; z-index: 1;
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.zt-card__promos-label + .zt-card__promos { padding-top: 8px; }
/* Results-wide pricing disclaimer (under the cards) */
.zt-results-disc {
    max-width: 760px; margin: 4px auto 0; padding: 14px 18px;
    border: 1px dashed var(--border-glass); border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02); color: var(--text-faint);
    font-size: 12px; line-height: 1.6; text-align: center;
}
.zt-results-disc a { color: var(--accent-primary-hi); }

/* ─── Business-view block (replaces residential detail grid + promos) ───── */
.zt-card__bizblock {
    padding: 14px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.zt-biz-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.zt-biz-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(243,107,31,0.14);
    border: 1px solid rgba(243,107,31,0.42);
    color: var(--accent-primary-hi);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.zt-biz-tech {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}
.zt-biz-cov {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}
.zt-biz-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.zt-biz-note {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
    margin: 4px 0 0;
}
.zt-biz-note a {
    color: var(--accent-primary-hi);
    font-weight: 800;
    text-decoration: none;
}
.zt-biz-note a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .zt-card__bizblock { padding: 12px 20px 18px; }
    .zt-biz-cov { margin-left: 0; width: 100%; }
}

/* ─── Extras block (carriers without PROVIDER_DATA card) ───── */
.zt-extras {
    margin-top: 36px;
    padding: 26px;
    background: linear-gradient(160deg, rgba(31,14,74,0.55) 0%, rgba(12,8,32,0.85) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
}
.zt-extras__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--text-primary);
}
.zt-extras__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.zt-extra-card {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.zt-extra-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(243,107,31,0.30);
    transform: translateY(-1px);
}
.zt-extra-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.zt-extra-card__name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zt-extra-card__tier {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.zt-extra-card__stats {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.zt-extra-card__stats strong { color: var(--text-primary); font-weight: 800; }
.zt-extras__footer {
    color: var(--text-faint);
    font-size: 12px;
    margin: 16px 0 0;
}
.zt-extras__footer a {
    color: var(--accent-primary-hi);
    font-weight: 800;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .zt-card__top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px 20px 14px;
    }
    .zt-card__cta { align-self: stretch; justify-content: center; }
    .zt-card__grid { grid-template-columns: 1fr 1fr; padding: 4px 8px; }
    .zt-card__detail { padding: 10px 12px; }
    .zt-card__divider { margin: 0 20px; }
    .zt-card__speed { padding: 0 20px 12px; }
    .zt-card__promos { padding: 10px 20px 18px; }
    .zt-speed-coverage { margin-left: 0; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   Search card polish — one-shot hover effects, no looping
   ═══════════════════════════════════════════════════════════════════ */
.zt-card {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.zt-card::after {
    /* Metallic shine sweep on hover — one-shot left → right */
    content: '';
    position: absolute; top: 0; left: -120%;
    width: 70%; height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.06) 50%, transparent 80%);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
@media (hover: hover) {
    .zt-card:hover {
        transform: translateY(-3px);
        border-color: rgba(243, 107, 31, 0.35);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(243, 107, 31, 0.12);
    }
    .zt-card:hover::after { left: 120%; }
}

/* Speed number sweep — gradient fills on hover */
.zt-card .zt-speed-bar {
    position: relative;
    overflow: hidden;
}
.zt-card .zt-speed-bar::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(243,107,31,0.20), transparent);
    transform: translateX(-100%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
@media (hover: hover) {
    .zt-card:hover .zt-speed-bar::after { transform: translateX(100%); }
}

/* Brand monogram pop on row hover */
.zt-card__monogram { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease; }
@media (hover: hover) {
    .zt-card:hover .zt-card__monogram {
        transform: scale(1.08) rotate(-3deg);
    }
}

/* Reduced-motion override */
@media (prefers-reduced-motion: reduce) {
    .zt-card, .zt-card::after, .zt-card .zt-speed-bar::after, .zt-card__monogram {
        transition: none !important;
        transform: none !important;
    }
}
