/*
 * theimei2 — "Volt" home (index.tpl). Loaded only on the home page.
 *
 * Sections: hero with a live order console, services, the official-partner block
 * (replaces the Untitled-1.png banner) and Binance Auto Pay (replaces auto pay 2.png).
 * All motion is driven by volt.js and stops under prefers-reduced-motion.
 */

body.theimei2.page-index .body-container { overflow-x: clip; }

.vh-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
.vh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--v-mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--v-muted);
}
.vh-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--v-volt);
    box-shadow: 0 0 0 1px var(--v-line-2);
}
.vh-live {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    flex: none;
}
.vh-live::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #22C55E;
    animation: vhPing 2s var(--v-ease) infinite;
}
@keyframes vhPing {
    0% { transform: scale(.5); opacity: .9; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* ================================================================ hero */

.vh-hero {
    position: relative;
    padding: 88px 0 0;
    isolation: isolate;
}
.vh-grid-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(var(--v-dot) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 75%);
}
/* wires feeding current into the console: anchored to the console box so they always line up */
/* above the spec strip: its rising wire has to end behind the console (both blocks get their
   own stacking context from the entrance animations) */
.vh-console-wrap { position: relative; z-index: 2; }
.vh-wire {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background: var(--v-line-2);
}
.vh-wire::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    animation: vhWireX var(--t, 4s) cubic-bezier(.6, 0, .4, 1) infinite;
    animation-delay: var(--dl, 0s);
}
.vh-wire::before {
    /* solder point where the wire meets the console */
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1px solid var(--v-line-2);
    background: var(--v-bg);
}
.vh-wire-r {
    left: 100%;
    width: 50vw;
    height: 1px;
}
.vh-wire-r::after {
    background-image: linear-gradient(90deg, transparent, var(--v-signal), transparent);
    background-size: 140px 1px;
}
.vh-wire-r::before { left: 0; top: -3px; }
.vh-wire-r1 { top: 24%; }
.vh-wire-r2 { top: 71%; --dl: 1.9s; --t: 4.6s; }
/* rises from the spec strip and disappears under the console */
.vh-specs { position: relative; }
.vh-wire-b {
    bottom: 100%;
    left: 66%;
    width: 1px;
    height: 260px;
    --dl: .8s;
    --t: 3.6s;
}
.vh-wire-b::after {
    background-image: linear-gradient(180deg, transparent, var(--v-signal), transparent);
    background-size: 1px 70px;
    animation-name: vhWireY;
}
.vh-wire-b::before { bottom: -4px; left: -3px; }
html[data-theme="dark"] .vh-wire::after { filter: drop-shadow(0 0 3px rgba(255, 255, 10, .8)); }
@keyframes vhWireX {
    0% { background-position: calc(100% + 140px) 0; }
    60%, 100% { background-position: -140px 0; }
}
@keyframes vhWireY {
    0% { background-position: 0 calc(100% + 70px); }
    60%, 100% { background-position: 0 -70px; }
}

.vh-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 64px;
}
.vh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    padding: 6px 12px 6px 10px;
    border: 1px solid var(--v-line-2);
    border-radius: 999px;
    background: var(--v-surface);
    font-family: var(--v-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--v-ink-2);
}
.vh-title {
    margin: 0;
    font-size: clamp(46px, 6.6vw, 98px);
    line-height: .98;
    font-weight: 600;
    letter-spacing: -0.055em;
    color: var(--v-ink);
}
.vh-title .vh-dim { color: var(--v-faint); }
/* volt marker that charges under a word */
.vh-mark {
    position: relative;
    white-space: nowrap;
    background-image: linear-gradient(var(--v-volt), var(--v-volt));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 100% 38%;
    animation: vhMark 1.2s var(--v-ease) .75s both;
}
html[data-theme="dark"] .vh-mark { color: var(--v-volt); background-image: linear-gradient(rgba(255, 255, 10, .16), rgba(255, 255, 10, .16)); }
@keyframes vhMark { from { background-size: 0% 38%; } }

.vh-lead {
    max-width: 540px;
    margin: 28px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--v-muted);
}
.vh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}
.vh-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
}
.vh-btn svg { transition: transform .4s var(--v-ease); }
.vh-btn:hover svg { transform: translateX(4px); }
body.theimei2 .vh-btn-ghost {
    color: var(--v-ink) !important;
    border: 1px solid var(--v-line-2);
    transition: border-color .2s ease;
}
body.theimei2 .vh-btn-ghost:hover { border-color: var(--v-ink); }

.vh-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin-top: 22px;
    padding: 0 8px 0 18px;
    border: 1px solid var(--v-line-2);
    border-radius: 14px;
    background: var(--v-surface);
    color: var(--v-muted);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.vh-search:focus-within { border-color: var(--v-signal); box-shadow: 0 0 0 4px var(--v-focus); }
.vh-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--v-ink);
    font-size: 15px;
    padding: 16px 0;
}
.vh-search input::placeholder { color: var(--v-faint); }
.vh-search kbd {
    padding: 3px 8px;
    border: 1px solid var(--v-line-2);
    border-radius: 6px;
    background: var(--v-bg);
    color: var(--v-muted);
    font-size: 12px;
    box-shadow: none;
}

/* ------------------------------------------------ live order console */

.vh-console {
    --c-bg: #0B0B0C;
    --c-ink: #F2F2EE;
    --c-muted: rgba(242, 242, 238, .5);
    --c-line: rgba(255, 255, 255, .09);
    position: relative;
    border-radius: 20px;
    background: var(--c-bg);
    color: var(--c-ink);
    border: 1px solid var(--c-line);
    box-shadow: 0 40px 90px -40px rgba(11, 11, 12, .55);
    font-family: var(--v-mono);
    overflow: hidden;
    z-index: 2;
}
html[data-theme="dark"] .vh-console { --c-bg: #111113; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
/* current running around the console border */
.vh-console::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--v-angle), transparent 0 78%, rgba(255, 255, 10, .9) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: vOrbit 5s linear infinite;
    pointer-events: none;
}
.vh-console.is-flash::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--v-volt), inset 0 0 60px rgba(255, 255, 10, .12);
    animation: vhFlash .9s ease-out forwards;
    pointer-events: none;
}
@keyframes vhFlash { from { opacity: 1; } to { opacity: 0; } }

.vh-con-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-line);
    font-size: 12px;
    color: var(--c-muted);
}
.vh-con-dots { display: inline-flex; gap: 6px; }
.vh-con-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.vh-con-title { flex: 1; }
.vh-con-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-ink);
    letter-spacing: .08em;
}
.vh-con-body { padding: 22px 22px 8px; }
.vh-con-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.vh-con-service {
    min-height: 22px;
    font-family: var(--v-font);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    transition: opacity .3s ease, transform .4s var(--v-ease);
}
.vh-con-imei-wrap { margin-top: 20px; }
.vh-imei {
    display: flex;
    gap: 2px;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 500;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.vh-imei span {
    display: inline-block;
    width: .66em;
    text-align: center;
    color: var(--c-ink);
    transition: color .2s ease;
}
.vh-imei span.is-scramble { color: rgba(255, 255, 10, .75); }
.vh-imei span:nth-child(2n) { margin-right: 0; }
.vh-imei span:nth-child(8) { margin-left: .28em; }

.vh-con-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 26px;
    padding-top: 16px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.vh-con-track::before,
.vh-con-bar {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
}
.vh-con-bar {
    right: auto;
    width: 100%;
    background: var(--v-volt);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.1s var(--v-ease);
    box-shadow: 0 0 12px rgba(255, 255, 10, .6);
}
.vh-con-step { transition: color .3s ease; }
.vh-con-step:nth-of-type(2) { text-align: center; }
.vh-con-step:nth-of-type(3) { text-align: right; }
.vh-con-step.is-on { color: var(--c-ink); }

.vh-con-log {
    list-style: none;
    margin: 20px 0 0;
    padding: 14px 0 0;
    min-height: 98px;
    border-top: 1px dashed var(--c-line);
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--c-muted);
}
.vh-con-log li { animation: vhLog .45s var(--v-ease) both; }
.vh-con-log li b { color: var(--c-ink); font-weight: 500; }
.vh-con-log li.ok b { color: var(--v-volt); }
@keyframes vhLog { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.vh-con-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 18px 22px;
    font-size: 12px;
}
.vh-con-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-ink);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.vh-con-status.is-done {
    background: var(--v-volt);
    border-color: var(--v-volt);
    color: #0B0B0C;
    animation: vhPop .5s var(--v-ease);
}
@keyframes vhPop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.vh-con-time { color: var(--c-muted); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- spec strip */

.vh-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 88px;
    border-top: 1px solid var(--v-line);
    border-bottom: 1px solid var(--v-line);
}
.vh-spec {
    padding: 26px 24px 28px;
    border-right: 1px solid var(--v-line);
}
.vh-spec:first-of-type { padding-left: 0; }
.vh-spec:last-child { border-right: 0; }
.vh-spec b {
    display: block;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--v-ink);
}
.vh-spec span {
    display: block;
    margin-top: 4px;
    font-family: var(--v-mono);
    font-size: 12px;
    color: var(--v-muted);
}

/* ============================================================ sections */

.vh-section { padding: 120px 0 0; }
.vh-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}
.vh-h2 {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: var(--v-ink);
}
.vh-p {
    max-width: 480px;
    margin: 0;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--v-muted);
}

/* ------------------------------------------------------------ services */

.vh-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.vh-svc {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 24px;
    border: 1px solid var(--v-line);
    border-radius: var(--v-radius-lg);
    background: var(--v-surface);
    color: var(--v-ink) !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .45s var(--v-ease), border-color .3s ease;
}
.vh-svc::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--v-angle), transparent 0 70%, var(--v-signal) 86%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.vh-svc:hover { transform: translateY(-4px); border-color: var(--v-line-2); }
.vh-svc:hover::after { opacity: 1; animation: vOrbit 2.2s linear infinite; }
.vh-svc-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--v-mono);
    font-size: 12px;
    color: var(--v-muted);
}
.vh-svc-go {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin: -8px -8px 0 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--v-line-2);
    color: var(--v-ink);
    transition: background-color .3s ease, transform .5s var(--v-ease), border-color .3s ease;
}
.vh-svc:hover .vh-svc-go {
    background: var(--v-volt);
    border-color: var(--v-volt);
    color: #0B0B0C;
    transform: rotate(-45deg);
}
.vh-svc-icon {
    width: 56px;
    height: 56px;
    margin: auto 0 26px;
    color: var(--v-ink);
    transition: color .3s ease;
}
.vh-svc-icon * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s var(--v-ease) calc(var(--d, 0s) + .3s);
}
/* drawn in when the tile scrolls into view (only while volt.js runs the reveal) */
.v-reveal .vh-svc:not(.is-in) .vh-svc-icon * { stroke-dashoffset: 1; }
.vh-svc:hover .vh-svc-icon { color: var(--v-signal); }
.vh-svc:hover .vh-svc-icon .vh-blink { animation: vhBlink .9s steps(2, end) infinite; }
@keyframes vhBlink { 50% { opacity: 0; } }
.vh-svc-title {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.vh-svc-sub {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--v-muted);
}

/* ------------------------------------------- official partner (banner 1) */

.vh-partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.vh-tools {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    border-top: 1px solid var(--v-line);
}
.vh-tool {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 14px 15px 18px;
    border-bottom: 1px solid var(--v-line);
    color: var(--v-muted);
    cursor: default;
    transition: color .3s ease, background-color .3s ease;
}
.vh-tool::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--v-volt);
    box-shadow: 0 0 0 1px var(--v-line-2);
    transform: scaleY(0);
    transition: transform .45s var(--v-ease);
}
.vh-tool-mark {
    width: 36px;
    height: 36px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--v-line-2);
    font-family: var(--v-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--v-ink);
    transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.vh-tool-name {
    flex: 1;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.vh-tool-tag {
    font-family: var(--v-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s ease, transform .4s var(--v-ease);
}
.vh-tool-meter {
    position: absolute;
    left: 18px;
    right: 14px;
    bottom: -1px;
    height: 1px;
    background: var(--v-signal);
    transform: scaleX(0);
    transform-origin: left;
}
.vh-tool.is-on { color: var(--v-ink); background: var(--v-surface); }
.vh-tool.is-on::before { transform: scaleY(1); }
.vh-tool.is-on .vh-tool-mark { background: var(--v-hi-bg); border-color: var(--v-hi-bg); color: var(--v-volt); }
html[data-theme="dark"] .vh-tool.is-on .vh-tool-mark { color: #0B0B0C; }
.vh-tool.is-on .vh-tool-tag { opacity: 1; transform: none; }
.vh-tool.is-on .vh-tool-meter { animation: vhMeter var(--cycle, 3.4s) linear forwards; }
@keyframes vhMeter { to { transform: scaleX(1); } }
.vh-support {
    margin: 22px 0 0;
    font-family: var(--v-mono);
    font-size: 12px;
    color: var(--v-muted);
}
.vh-support b { color: var(--v-ink); font-weight: 500; }

/* phone stage */
.vh-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    border: 1px solid var(--v-line);
    border-radius: 28px;
    background: var(--v-surface-2);
    overflow: hidden;
    isolation: isolate;
}
.vh-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--v-dot) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
    mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.vh-stage-label {
    position: absolute;
    left: 22px;
    top: 20px;
    font-family: var(--v-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--v-muted);
}
.vh-stage-label + .vh-stage-label { left: auto; right: 22px; }

.vh-phone {
    position: relative;
    width: 270px;
    height: 548px;
    padding: 11px;
    border-radius: 46px;
    background: #0B0B0C;
    box-shadow: inset 0 0 0 1.5px #2A2A2E, 0 50px 80px -40px rgba(11, 11, 12, .55);
    animation: vhFloat 6s ease-in-out infinite;
}
html[data-theme="dark"] .vh-phone { box-shadow: inset 0 0 0 1.5px #34343A, 0 50px 80px -40px rgba(0, 0, 0, .9); }
@keyframes vhFloat { 50% { transform: translateY(-8px); } }
.vh-phone::before {
    /* side buttons */
    content: "";
    position: absolute;
    right: -3px;
    top: 130px;
    width: 3px;
    height: 64px;
    border-radius: 0 3px 3px 0;
    background: #1D1D21;
}
.vh-screen {
    position: relative;
    height: 100%;
    border-radius: 36px;
    background: #FFFFFF;
    color: #0B0B0C;
    overflow: hidden;
    font-family: var(--v-font);
}
html[data-theme="dark"] .vh-screen { background: #141416; color: #F2F2EE; }
.vh-island {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 84px;
    height: 24px;
    margin-left: -42px;
    border-radius: 20px;
    background: #0B0B0C;
    z-index: 3;
}
.vh-ph-status {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px 0;
    font-size: 12px;
    font-weight: 600;
}
.vh-ph-status i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; border: 1px solid currentColor; opacity: .7; }

.vh-ph-view {
    position: absolute;
    inset: 54px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .3s ease;
    pointer-events: none;
}
/* the outgoing view leaves first, the incoming one waits for it */
.vh-ph-view.is-on {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease .2s, transform .7s var(--v-ease) .2s;
}
.vh-ph-view strong { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin-top: 18px; }
.vh-ph-view p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; opacity: .6; }
.vh-ph-glyph { width: 54px; height: 54px; margin-top: 40px; }
.vh-ph-glyph * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vh-ph-field {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(11, 11, 12, .05);
    font-size: 12px;
    text-align: left;
}
html[data-theme="dark"] .vh-ph-field { background: rgba(255, 255, 255, .06); }
.vh-ph-field:first-of-type { margin-top: 26px; }
.vh-ph-field span { width: 64px; opacity: .55; }
.vh-ph-field i { flex: 1; height: 6px; border-radius: 4px; background: rgba(11, 11, 12, .1); }
html[data-theme="dark"] .vh-ph-field i { background: rgba(255, 255, 255, .1); }
.vh-ph-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #0B0B0C;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}
html[data-theme="dark"] .vh-ph-btn { background: #F2F2EE; color: #0B0B0C; }

.vh-ring { position: relative; width: 116px; height: 116px; margin-top: 46px; }
.vh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vh-ring circle { fill: none; stroke-width: 3; }
.vh-ring .vh-ring-track { stroke: rgba(11, 11, 12, .08); }
html[data-theme="dark"] .vh-ring .vh-ring-track { stroke: rgba(255, 255, 255, .1); }
.vh-ring .vh-ring-fill {
    stroke: #3A12E8;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
html[data-theme="dark"] .vh-ring .vh-ring-fill { stroke: var(--v-volt); }
.vh-ph-work.is-on .vh-ring-fill { animation: vhRing 1.5s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes vhRing { to { stroke-dashoffset: 0; } }
.vh-ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--v-mono);
    font-size: 20px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.vh-ph-code {
    margin-top: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    color: inherit;
    background: rgba(11, 11, 12, .05);
    font-family: var(--v-mono);
    font-size: 11px;
    letter-spacing: .04em;
}
html[data-theme="dark"] .vh-ph-code { background: rgba(255, 255, 255, .06); }

.vh-check {
    position: relative;
    width: 96px;
    height: 96px;
    margin-top: 56px;
    border-radius: 50%;
    background: var(--v-volt);
    color: #0B0B0C;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(.4);
    transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.vh-ph-done.is-on .vh-check { transform: scale(1); }
.vh-check::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid #0B0B0C;
    opacity: 0;
}
html[data-theme="dark"] .vh-check::after { border-color: var(--v-volt); }
.vh-ph-done.is-on .vh-check::after { animation: vhRipple 1.1s var(--v-ease) .15s; }
@keyframes vhRipple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.8); opacity: 0; } }
.vh-check svg { width: 40px; height: 40px; }
.vh-check path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.vh-ph-done.is-on .vh-check path { animation: vhRing .5s var(--v-ease) .3s forwards; }

/* scan beam across the screen while registering */
.vh-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(58, 18, 232, .14) 85%, #3A12E8);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}
html[data-theme="dark"] .vh-beam { background: linear-gradient(to bottom, transparent, rgba(255, 255, 10, .12) 85%, var(--v-volt)); }
.vh-phone.is-scan .vh-beam { animation: vhBeam 1.4s cubic-bezier(.65, 0, .35, 1); }
@keyframes vhBeam {
    0% { transform: translateY(-70px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(530px); opacity: 0; }
}

/* -------------------------------------------- Binance Auto Pay (banner 2) */

.vh-pay {
    --p-bg: #0B0B0C;
    --p-ink: #F2F2EE;
    --p-muted: rgba(242, 242, 238, .58);
    --p-line: rgba(255, 255, 255, .09);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    padding: 56px;
    border-radius: 32px;
    background: var(--p-bg);
    color: var(--p-ink);
    overflow: hidden;
    isolation: isolate;
}
html[data-theme="dark"] .vh-pay { --p-bg: #111113; border: 1px solid var(--v-line); }
.vh-pay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(var(--p-line) 1px, transparent 1px), linear-gradient(90deg, var(--p-line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(60% 80% at 20% 50%, #000, transparent);
    mask-image: radial-gradient(60% 80% at 20% 50%, #000, transparent);
}
.vh-pay .vh-kicker { color: var(--p-muted); }
.vh-pay .vh-kicker::before { box-shadow: none; }
.vh-pay .vh-h2 { color: var(--p-ink); }
.vh-pay .vh-h2 em { font-style: normal; color: var(--v-volt); }
.vh-pay .vh-p { color: var(--p-muted); margin-top: 20px; }
.vh-pay-list {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-family: var(--v-mono);
    font-size: 13px;
    color: var(--p-ink);
}
.vh-pay-list li { display: flex; align-items: center; gap: 12px; }
.vh-pay-list li::before {
    content: "";
    width: 14px;
    height: 2px;
    background: var(--v-volt);
}
.vh-pay-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
body.theimei2 .vh-pay .vh-btn-volt {
    background: var(--v-volt);
    color: #0B0B0C !important;
    transition: transform .3s var(--v-ease), box-shadow .3s ease;
}
body.theimei2 .vh-pay .vh-btn-volt:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255, 255, 10, .14); }
.vh-pay-help { font-family: var(--v-mono); font-size: 12px; color: var(--p-muted); }
.vh-pay-help b { color: var(--p-ink); font-weight: 500; }

.vh-pay-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 30px 0 70px;
}
.vh-qr-card {
    position: relative;
    width: min(320px, 100%);
    padding: 22px;
    border-radius: 24px;
    background: #FFFFFF;
    color: #0B0B0C;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
    transform: rotate(-3deg);
    transition: transform .8s var(--v-ease);
}
.vh-pay:hover .vh-qr-card { transform: rotate(0deg); }
/* stacked on the left: the balance chip owns the top-right corner, and translated
   labels ("Escanea para pagar") are long enough to run under it */
.vh-qr-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 16px;
    padding-right: 72px;
    font-family: var(--v-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(11, 11, 12, .55);
}
.vh-qr-top b { color: #0B0B0C; font-weight: 600; }
.vh-qr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 1px;
    aspect-ratio: 1;
}
.vh-qr i {
    border-radius: 1.5px;
    background: #0B0B0C;
    opacity: 0;
    transform: scale(.2);
    transition: opacity .3s ease, transform .4s var(--v-ease);
    transition-delay: var(--q, 0s);
}
.vh-qr i.o { background: transparent; }
.vh-qr.is-on i:not(.o) { opacity: 1; transform: scale(1); }
/* the logo is centered on the code itself, not on the whole card */
.vh-qr-box { position: relative; }
.vh-qr-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 12px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vh-qr-logo i {
    width: 22px;
    height: 22px;
    background: #F0B90B;
    transform: rotate(45deg);
    border-radius: 3px;
    box-shadow: inset 0 0 0 5px #F0B90B, inset 0 0 0 7px #FFFFFF;
}
.vh-qr-scan {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 52px;
    height: 2px;
    background: #3A12E8;
    box-shadow: 0 0 14px 2px rgba(58, 18, 232, .45);
    opacity: 0;
}
.vh-qr-card.is-scan .vh-qr-scan { animation: vhScan 1.4s cubic-bezier(.65, 0, .35, 1) 2 alternate; }
@keyframes vhScan {
    0% { top: 52px; opacity: 1; }
    100% { top: calc(100% - 22px); opacity: 1; }
}

.vh-toast {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    background: #FFFFFF;
    color: #0B0B0C;
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translate(-50%, 18px) scale(.96);
    transition: opacity .4s ease, transform .6s var(--v-ease);
}
.vh-toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.vh-toast .vh-toast-icon {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;   /* beats ".vh-toast span { display: block }" */
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--v-volt);
}
.vh-toast-icon svg { display: block; width: 18px; height: 18px; fill: none; stroke: #0B0B0C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vh-toast strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.vh-toast span { display: block; font-family: var(--v-mono); font-size: 11.5px; color: rgba(11, 11, 12, .6); }

/* balance chip pinned to the QR card's corner like a sticker */
.vh-balance {
    position: absolute;
    right: -46px;
    top: -26px;
    z-index: 2;
    padding: 11px 16px;
    border: 1px solid var(--p-line);
    border-radius: 14px;
    background: rgba(17, 17, 19, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    font-family: var(--v-mono);
    transform: rotate(3deg);
}
.vh-balance small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.vh-balance b {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    font-weight: 500;
    color: var(--p-ink);
    font-variant-numeric: tabular-nums;
    transition: color .3s ease;
}
.vh-balance.is-up b { color: var(--v-volt); }

/* --------------------------------------------- announcement modal (index.tpl) */

.va-modal .modal-dialog { max-width: 560px; }
.va-modal.fade .modal-dialog {
    transform: translateY(24px) scale(.97);
    opacity: 0;
    transition: transform .6s var(--v-ease), opacity .35s ease;
}
.va-modal.show .modal-dialog { transform: none; opacity: 1; }
body.theimei2 .va-modal .modal-content.va-card {
    position: relative;
    padding: 38px 36px 30px;
    border: 1px solid var(--v-line-2);
    border-radius: 26px;
    background: var(--v-surface);
    color: var(--v-ink);
    box-shadow: var(--v-shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.va-card::before {
    /* faint dot grid in the top-right corner */
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 60%;
    height: 70%;
    z-index: -1;
    background-image: radial-gradient(var(--v-dot) 1px, transparent 1px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
    mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
}
.va-spark {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--v-volt), transparent) no-repeat;
    background-size: 180px 2px;
    animation: vSpark 5s cubic-bezier(.6, 0, .4, 1) infinite;
}
.va-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--v-line-2);
    border-radius: 50%;
    background: transparent;
    color: var(--v-ink);
    cursor: pointer;
    transition: transform .4s var(--v-ease), border-color .2s ease;
}
.va-close:hover { transform: rotate(90deg); border-color: var(--v-ink); }
.va-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-family: var(--v-mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--v-muted);
}
.va-title {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: var(--v-ink);
}
.va-mark {
    background-image: linear-gradient(var(--v-volt), var(--v-volt));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0% 36%;
    transition: background-size 1s var(--v-ease) .35s;
}
.va-modal.show .va-mark { background-size: 100% 36%; }
html[data-theme="dark"] .va-mark { color: var(--v-volt); background-image: linear-gradient(rgba(255, 255, 10, .16), rgba(255, 255, 10, .16)); }
.va-lead {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--v-muted);
}
.va-lead b { color: var(--v-ink); font-weight: 600; }
.va-old {
    font-family: var(--v-mono);
    font-size: 13px;
    text-decoration: line-through;
    text-decoration-color: var(--v-bad);
}
.va-actions {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}
body.theimei2 .va-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
}
.va-btn > svg:first-child { width: 20px; height: 20px; flex: none; }
.va-btn span { flex: 1; }
.va-arrow { width: 16px; height: 16px; transition: transform .4s var(--v-ease); }
.va-btn:hover .va-arrow { transform: translate(3px, -3px); }
body.theimei2 .va-btn-tg > svg:first-child { color: #229ED9; }
body.theimei2 .va-btn-tg:hover > svg:first-child { color: #0B0B0C; }
body.theimei2 .va-btn-wa {
    border: 1px solid var(--v-line-2);
    color: var(--v-ink) !important;
    background: var(--v-surface-2);
    transition: border-color .2s ease, background-color .2s ease;
}
body.theimei2 .va-btn-wa:hover { border-color: #25D366; background: rgba(37, 211, 102, .08); }
body.theimei2 .va-btn-wa > svg:first-child { color: #25D366; }
.va-note {
    margin: 20px 0 0;
    font-family: var(--v-mono);
    font-size: 12px;
    color: var(--v-muted);
}
.va-note span { color: var(--v-ink); }
@media (max-width: 575px) {
    body.theimei2 .va-modal .modal-content.va-card { padding: 32px 22px 24px; border-radius: 22px; }
    .va-modal .modal-dialog { margin: 12px; }
}

/* ------------------------------------------------ admin-managed content */

.vh-admin {
    padding-top: 64px;
    color: var(--v-muted);
    text-align: center;
}
.vh-admin *:not(a) { color: inherit !important; font-size: inherit !important; font-family: inherit !important; }
.vh-admin a { color: var(--v-ink); text-decoration: underline; text-underline-offset: 3px; }
.vh-admin p:empty { display: none; }
.vh-admin img { max-width: 100%; height: auto; border-radius: var(--v-radius-lg); }

.vh-end { height: 120px; }

/* ========================================================== responsive */

@media (max-width: 1199px) {
    .vh-hero-inner { gap: 40px; }
    .vh-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vh-svc { min-height: 250px; }
    .vh-pay { padding: 44px; gap: 36px; }
}
@media (max-width: 991px) {
    .vh-hero { padding-top: 56px; }
    .vh-hero-inner,
    .vh-partner,
    .vh-pay { grid-template-columns: minmax(0, 1fr); }
    .vh-wire { display: none; }
    .vh-search { display: none; } /* the header search is always visible on phones */
    .vh-console { max-width: 560px; }
    .vh-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
    .vh-spec:nth-of-type(2) { border-right: 0; }
    .vh-spec:nth-of-type(-n+2) { border-bottom: 1px solid var(--v-line); }
    .vh-spec:nth-of-type(3) { padding-left: 0; }
    .vh-section { padding-top: 88px; }
    .vh-stage { min-height: 560px; }
    .vh-pay { padding: 36px 28px; }
    .vh-pay-visual { order: 2; }
}
@media (max-width: 575px) {
    .vh-wrap { padding: 0 16px; }
    .vh-title { letter-spacing: -0.05em; }
    .vh-lead { font-size: 16px; }
    .vh-btn { padding: 13px 18px; }
    .vh-search kbd { display: none; }
    .vh-con-body { padding: 18px 16px 6px; }
    .vh-imei { font-size: 20px; }
    .vh-spec { padding: 20px 14px 22px; }
    .vh-spec b { font-size: 22px; }
    .vh-svc-grid { grid-template-columns: minmax(0, 1fr); }
    .vh-svc { min-height: 220px; }
    .vh-stage { min-height: 520px; border-radius: 22px; }
    .vh-stage-label { display: none; }
    .vh-phone { transform: scale(.88); animation: none; }
    .vh-pay { padding: 30px 18px; border-radius: 24px; }
    .vh-balance { right: -8px; top: -30px; }
    .vh-pay-visual { flex-direction: column; align-items: center; padding-bottom: 80px; }
    .vh-tool-name { font-size: 17px; }
}
