:root {
    color-scheme: light;
    --page: #fbfbfc;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --ink: #0f1117;
    --ink-soft: #262a35;
    --muted: #697386;
    --faint: #9aa3b2;
    --line: rgba(15, 17, 23, 0.11);
    --line-strong: rgba(15, 17, 23, 0.18);
    --accent: #0b74ff;
    --accent-deep: #0057d9;
    --accent-soft: rgba(11, 116, 255, 0.1);
    --success: #087f5b;
    --danger: #c23535;
    --warning: #9a6a12;
    --radius-xl: 34px;
    --radius-lg: 22px;
    --radius-md: 17px;
    --shadow: 0 30px 90px rgba(15, 23, 42, 0.11), 0 14px 34px rgba(15, 23, 42, 0.07);
    --shadow-soft: 0 18px 52px rgba(15, 23, 42, 0.09);
    --font: "SF Pro Text", "Inter", "Aptos", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --display-font: "SF Pro Display", "SF Pro Text", "Inter", "Aptos Display", "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
    --mono: "SF Mono", "Cascadia Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

@property --beam-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --shine-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

* {
    box-sizing: border-box;
}

*::selection {
    background: rgba(11, 116, 255, 0.14);
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    min-height: 100svh;
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    letter-spacing: 0;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at 18% 8%, rgba(11, 116, 255, 0.08), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(207, 221, 255, 0.45), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 46%, #f7f6f2 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
}

body::before {
    opacity: 0.56;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 78%);
}

body::after {
    z-index: -1;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

button,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    cursor: pointer;
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 64px));
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 58px) 0 24px;
}

.redeem-card {
    --beam-angle: 0deg;
    --shine-angle: 0deg;
    --pointer-x: 50%;
    --pointer-y: 50%;
    --pointer-opacity: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: clamp(22px, 3.4vw, 36px);
    padding: clamp(25px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68) 54%, rgba(250, 251, 255, 0.82)),
        linear-gradient(110deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
    box-shadow: var(--shadow);
    backdrop-filter: blur(30px) saturate(1.18);
    -webkit-backdrop-filter: blur(30px) saturate(1.18);
    animation: panelIn 620ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.redeem-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background:
        conic-gradient(from var(--beam-angle),
            transparent 0deg,
            transparent 205deg,
            rgba(11, 116, 255, 0.06) 236deg,
            rgba(11, 116, 255, 0.54) 255deg,
            rgba(255, 255, 255, 0.92) 270deg,
            transparent 300deg,
            transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    content: "";
    animation: borderBeam 8s linear infinite;
}

.redeem-card::after {
    position: absolute;
    top: -108px;
    right: -30px;
    z-index: -2;
    color: rgba(15, 17, 23, 0.035);
    content: "0";
    font-family: var(--display-font);
    font-size: clamp(230px, 31vw, 390px);
    font-weight: 820;
    line-height: 1;
    pointer-events: none;
}

.magic-spotlight,
.magic-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.magic-spotlight {
    opacity: var(--pointer-opacity);
    background:
        radial-gradient(520px circle at var(--pointer-x) var(--pointer-y),
            rgba(11, 116, 255, 0.11),
            rgba(255, 255, 255, 0.26) 22%,
            rgba(255, 255, 255, 0) 58%);
    transition: opacity 260ms ease;
}

.magic-grid {
    opacity: 0.34;
    background-image:
        linear-gradient(to right, rgba(11, 116, 255, 0.13) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 116, 255, 0.1) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image:
        radial-gradient(ellipse at 50% 28%, rgba(0, 0, 0, 0.68), transparent 62%),
        linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.65) 22%, transparent 88%);
    animation: gridDrift 18s linear infinite;
}

.topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.brand-lock {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 17, 23, 0.12);
    border-radius: 15px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.66)),
        linear-gradient(315deg, rgba(11, 116, 255, 0.12), rgba(255, 255, 255, 0));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.brand-lock::after {
    position: absolute;
    inset: -40%;
    transform: translateX(-68%) rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
    content: "";
    animation: logoShine 4.6s ease-in-out infinite;
}

.brand-lock span {
    position: relative;
    z-index: 1;
    color: var(--accent-deep);
    font-family: var(--display-font);
    font-size: 20px;
    font-weight: 820;
    line-height: 1;
}

.brand-row p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 820;
    line-height: 1;
    letter-spacing: 0.1em;
}

.brand-row small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 560;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(15, 17, 23, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.site-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--muted);
    padding: 0 13px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 680;
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.site-nav a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.hero-copy {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
    gap: clamp(26px, 6vw, 78px);
    align-items: end;
    padding: clamp(18px, 2.4vw, 30px) 0 clamp(25px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
}

.service-shell {
    justify-content: center;
}

.service-desk {
    gap: clamp(24px, 3vw, 34px);
}

.service-hero {
    align-items: center;
}

.service-hero h1 {
    font-size: clamp(68px, 10vw, 132px);
}

.service-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service-guide > div {
    padding: 16px 18px;
    border: 1px solid rgba(15, 17, 23, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.48);
}

.service-guide span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.service-guide strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 16px;
}

.service-guide p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(15, 17, 23, 0.09);
    border-radius: 26px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
        radial-gradient(circle at 18% 8%, rgba(11, 116, 255, 0.08), transparent 42%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card::after {
    position: absolute;
    right: -28px;
    bottom: -50px;
    color: rgba(15, 17, 23, 0.035);
    content: "0";
    font-family: var(--display-font);
    font-size: 180px;
    font-weight: 850;
    line-height: 1;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(11, 116, 255, 0.22);
    box-shadow: 0 24px 62px rgba(15, 23, 42, 0.11);
}

.service-card.primary-service {
    color: #fff;
    background:
        linear-gradient(145deg, #111827, #0b1220 58%, #0b74ff),
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 42%);
}

.service-card.primary-service .service-index,
.service-card.primary-service p,
.service-card.primary-service b {
    color: rgba(255, 255, 255, 0.78);
}

.service-index {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 820;
    letter-spacing: 0.08em;
}

.service-card strong {
    position: relative;
    z-index: 1;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.service-card p {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.service-card b {
    position: relative;
    z-index: 1;
    color: var(--ink);
    font-size: 13px;
}

.hero-copy::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    transform: translateX(-58%);
    background: linear-gradient(90deg, transparent, rgba(11, 116, 255, 0.55), rgba(255, 255, 255, 0.9), transparent);
    content: "";
    animation: dividerBeam 6.4s ease-in-out infinite;
}

.eyebrow {
    width: max-content;
    margin: 0 0 14px;
    background: linear-gradient(90deg, var(--accent-deep), #111114 45%, var(--accent-deep));
    background-size: 180% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 12px;
    font-weight: 820;
    line-height: 1;
    letter-spacing: 0.14em;
    animation: textShimmer 5s ease-in-out infinite;
}

.hero-copy h1 {
    margin: 0;
    max-width: 650px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(60px, 8vw, 104px);
    font-weight: 820;
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 460;
    line-height: 1.9;
}

.hero-brief {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.tour-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 17, 23, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
        rgba(255, 255, 255, 0.7);
    color: var(--ink);
    padding: 0 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(15, 23, 42, 0.07);
    font: inherit;
    font-size: 13px;
    font-weight: 780;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tour-button:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.25);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.tour-button:active {
    transform: translateY(0);
}

.redeem-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 14px;
    align-items: end;
}

.form-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.form-head label {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 760;
}

.form-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 560;
}

.input-shell {
    position: relative;
    min-width: 0;
}

.input-shell::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: calc(var(--radius-md) + 1px);
    background:
        conic-gradient(from var(--shine-angle),
            rgba(255, 255, 255, 0.92),
            rgba(11, 116, 255, 0.18),
            rgba(255, 255, 255, 0.96),
            rgba(11, 116, 255, 0.26),
            rgba(255, 255, 255, 0.92));
    content: "";
    opacity: 0;
    transition: opacity 220ms ease;
}

.input-shell:focus-within::before {
    opacity: 1;
    animation: shineSpin 5.2s linear infinite;
}

textarea {
    position: relative;
    width: 100%;
    min-height: 118px;
    resize: vertical;
    border: 1px solid rgba(15, 17, 23, 0.14);
    border-radius: var(--radius-md);
    outline: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
        rgba(255, 255, 255, 0.78);
    color: var(--ink);
    padding: 18px 19px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -18px 40px rgba(15, 23, 42, 0.035);
    font-family: var(--mono);
    font-size: clamp(17px, 1.55vw, 22px);
    font-weight: 560;
    line-height: 1.52;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

textarea::placeholder {
    color: rgba(105, 115, 134, 0.64);
}

textarea:focus {
    border-color: rgba(11, 116, 255, 0.42);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 0 0 5px rgba(11, 116, 255, 0.08),
        0 18px 38px rgba(15, 23, 42, 0.06);
}

.captcha-block {
    grid-column: 1 / -1;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
}

.captcha-block small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.redeem-button {
    --button-x: 50%;
    --button-y: 50%;
    --button-glow: 0;
    position: relative;
    display: inline-flex;
    min-width: 0;
    height: 60px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 87, 217, 0.26);
    border-radius: var(--radius-md);
    background:
        radial-gradient(180px circle at var(--button-x) var(--button-y), rgba(255, 255, 255, calc(var(--button-glow) * 0.34)), transparent 48%),
        radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.34), transparent 34%),
        linear-gradient(180deg, #2997ff 0%, var(--accent) 56%, var(--accent-deep) 100%);
    color: #fff;
    box-shadow: 0 20px 46px rgba(11, 116, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 15px;
    font-weight: 820;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.redeem-button::before {
    position: absolute;
    inset: 0;
    transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    content: "";
    transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.redeem-button::after {
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-md) - 1px);
    background:
        linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.34), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 58%);
    content: "";
    opacity: 0.68;
    pointer-events: none;
}

.redeem-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(0, 87, 217, 0.42);
    box-shadow: 0 26px 58px rgba(11, 116, 255, 0.29), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    filter: saturate(1.08);
}

.redeem-button:hover:not(:disabled)::before {
    transform: translateX(130%) skewX(-18deg);
}

.redeem-button:active:not(:disabled) {
    transform: translateY(0) scale(0.992);
    box-shadow: 0 14px 32px rgba(11, 116, 255, 0.22);
}

.redeem-button:disabled {
    cursor: progress;
    filter: grayscale(0.16) saturate(0.84);
    opacity: 0.86;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.button-label,
.button-loader {
    position: relative;
    z-index: 2;
}

.button-ripple {
    position: absolute;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.46);
    pointer-events: none;
    animation: rippleOut 620ms ease-out forwards;
}

.button-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 760ms linear infinite;
}

.redeem-button.is-loading .button-loader {
    display: inline-block;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-top: -6px;
    padding: 0 2px 0;
    color: var(--muted);
    transition: color 180ms ease, transform 180ms ease;
}

.status-line > div {
    min-width: 0;
}

.status-line strong,
.status-line small {
    display: block;
}

.status-line strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 780;
    line-height: 1.35;
}

.status-line small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.status-dot {
    position: relative;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #b4bbc7;
    box-shadow: 0 0 0 6px rgba(180, 187, 199, 0.14);
}

.status-line.working .status-dot {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(11, 116, 255, 0.12);
}

.status-line.working .status-dot::after {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(11, 116, 255, 0.32);
    border-radius: inherit;
    content: "";
    animation: dotPulse 1.35s ease-out infinite;
}

.status-line.success .status-dot {
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(8, 127, 91, 0.1);
}

.status-line.error .status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(194, 53, 53, 0.1);
}

.result-panel {
    display: grid;
    gap: 18px;
    padding-top: 0;
}

.batch-actions {
    padding: 0 0 6px;
}

.bundle-button {
    --button-x: 50%;
    --button-y: 50%;
    --button-glow: 0;
    position: relative;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 17, 23, 0.12);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(190px circle at var(--button-x) var(--button-y), rgba(11, 116, 255, calc(var(--button-glow) * 0.09)), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
        rgba(255, 255, 255, 0.64);
    color: var(--ink);
    padding: 0 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.bundle-button::before {
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(11, 116, 255, 0.09), transparent);
    content: "";
    transition: transform 640ms ease;
}

.bundle-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.28);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bundle-button:hover:not(:disabled)::before {
    transform: translateX(120%);
}

.bundle-button:disabled {
    cursor: progress;
    color: var(--faint);
}

.bundle-button span {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 760;
}

.bundle-button small {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 680;
}

.result-list {
    display: grid;
    overflow-wrap: anywhere;
    border-top: 1px solid var(--line);
}

.result-list.compact-list {
    gap: 0;
}

.empty-state {
    padding: 28px 0 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.redeem-result {
    position: relative;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    animation: resultIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.redeem-result.success::before,
.redeem-result.error::before {
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: -18px;
    width: 3px;
    border-radius: 999px;
    content: "";
}

.redeem-result.success::before {
    background: linear-gradient(var(--success), rgba(8, 127, 91, 0.28));
}

.redeem-result.error::before {
    background: linear-gradient(var(--danger), rgba(194, 53, 53, 0.28));
}

.redeem-result.compact {
    padding: 15px 0;
    display: grid;
    gap: 10px;
}

.compact-main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.55fr) auto;
    align-items: center;
    gap: 18px;
}

.compact-main .state-pill {
    justify-self: end;
}

.compact-id {
    min-width: 0;
}

.compact-id strong {
    display: block;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 720;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.compact-id small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.compact-message {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.result-head strong {
    display: block;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(25px, 3.7vw, 38px);
    font-weight: 820;
    line-height: 1.1;
}

.result-head small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.45;
}

.state-pill {
    flex: none;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(8, 127, 91, 0.18);
    border-radius: 999px;
    background: rgba(8, 127, 91, 0.08);
    color: var(--success);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 780;
}

.redeem-result.error .state-pill {
    border-color: rgba(194, 53, 53, 0.18);
    background: rgba(194, 53, 53, 0.08);
    color: var(--danger);
}

.result-message {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.credential-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 0 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.credential-identity div {
    min-width: 0;
}

.credential-identity span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.04em;
}

.credential-identity strong {
    display: block;
    color: var(--ink);
    font-family: var(--mono);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 760;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.credential-identity button {
    flex: none;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(11, 116, 255, 0.2);
    border-radius: 999px;
    background: rgba(11, 116, 255, 0.08);
    color: var(--accent-deep);
    font: inherit;
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.credential-identity button:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.34);
    background: rgba(11, 116, 255, 0.12);
    box-shadow: 0 12px 26px rgba(11, 116, 255, 0.12);
}

.credential-identity button:active {
    transform: translateY(0);
}

.credential-identity button.is-copied {
    border-color: rgba(8, 127, 91, 0.24);
    background: rgba(8, 127, 91, 0.1);
    color: var(--success);
}

.file-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.compact-files {
    margin-top: 2px;
    border-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
}

.file-link {
    --button-x: 50%;
    --button-y: 50%;
    --button-glow: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    overflow: hidden;
    padding: 14px 16px;
    border: 1px solid rgba(15, 17, 23, 0.1);
    border-radius: 18px;
    background:
        radial-gradient(190px circle at var(--button-x) var(--button-y), rgba(11, 116, 255, calc(var(--button-glow) * 0.08)), transparent 58%),
        rgba(255, 255, 255, 0.58);
    color: var(--ink);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.file-link::before {
    position: absolute;
    inset: 0;
    transform: translateX(-115%);
    background: linear-gradient(90deg, transparent, rgba(11, 116, 255, 0.08), transparent);
    content: "";
    transition: transform 580ms ease;
}

.file-link:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.24);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.file-link:hover::before {
    transform: translateX(115%);
}

.compact-files .file-link {
    width: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 8px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 0 13px 0 0;
    margin-right: 13px;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.compact-files .file-link::before {
    display: none;
}

.compact-files .file-link:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.compact-files .file-link:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.file-link span,
.file-link strong,
.file-link small {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: block;
}

.file-link strong {
    font-size: 15px;
    font-weight: 760;
    line-height: 1.4;
}

.compact-files .file-link strong {
    display: inline;
    font-size: 13px;
}

.file-link small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.compact-files .file-link small {
    display: inline;
    margin: 0 0 0 5px;
    font-size: 12px;
}

.file-link b {
    position: relative;
    z-index: 1;
    flex: none;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    font-style: normal;
}

.file-link:hover b {
    transform: translateY(-1px);
    background: var(--accent-deep);
    box-shadow: 0 16px 30px rgba(11, 116, 255, 0.22);
}

.file-link b i {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.file-link b span {
    display: inline;
}

.compact-files .file-link b {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-deep);
    box-shadow: none;
    font-size: 13px;
    font-weight: 780;
}

.compact-files .file-link b i {
    display: none;
}

.tour-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

.tour-layer[hidden] {
    display: none;
}

.tour-focus {
    position: fixed;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow:
        0 0 0 9999px rgba(8, 13, 24, 0.5),
        0 22px 70px rgba(8, 13, 24, 0.28),
        inset 0 0 0 1px rgba(11, 116, 255, 0.3);
    transition: left 220ms ease, top 220ms ease, width 220ms ease, height 220ms ease;
}

.tour-card {
    position: fixed;
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.88)),
        rgba(255, 255, 255, 0.92);
    padding: 18px;
    box-shadow: 0 26px 76px rgba(8, 13, 24, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    pointer-events: auto;
    animation: tourCardIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    backdrop-filter: blur(24px) saturate(1.12);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
}

.tour-card-head {
    display: grid;
    gap: 7px;
}

.tour-card-head span {
    color: var(--accent-deep);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.08em;
}

.tour-card-head strong {
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.tour-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.tour-actions {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
}

.tour-actions button {
    min-height: 36px;
    border: 1px solid rgba(15, 17, 23, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink-soft);
    padding: 0 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 760;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tour-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.28);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
}

.tour-actions button:disabled {
    cursor: default;
    color: var(--faint);
    opacity: 0.62;
}

.tour-actions .tour-next {
    border-color: rgba(11, 116, 255, 0.2);
    background: var(--ink);
    color: #fff;
}

.tour-actions .tour-next:hover:not(:disabled) {
    background: var(--accent-deep);
    color: #fff;
}

.tour-counter {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 760;
}

.site-footer {
    padding-top: 22px;
    color: rgba(105, 115, 134, 0.78);
    text-align: center;
    font-size: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes borderBeam {
    to {
        --beam-angle: 360deg;
    }
}

@keyframes shineSpin {
    to {
        --shine-angle: 360deg;
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 54px 54px, 54px 54px;
    }
}

@keyframes dividerBeam {
    0%, 18% {
        transform: translateX(-60%);
        opacity: 0;
    }
    38%, 62% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(60%);
        opacity: 0;
    }
}

@keyframes rippleOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(18);
    }
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes logoShine {
    0%, 42% {
        transform: translateX(-68%) rotate(18deg);
    }
    70%, 100% {
        transform: translateX(68%) rotate(18deg);
    }
}

@keyframes dotPulse {
    from {
        opacity: 0.9;
        transform: scale(0.68);
    }
    to {
        opacity: 0;
        transform: scale(1.8);
    }
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.992);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes tourCardIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 880px) {
    .shell {
        width: min(100% - 28px, 700px);
        justify-content: flex-start;
        padding-top: 20px;
    }

    .redeem-card {
        padding: 28px 22px 30px;
        border-radius: 28px;
    }

    .redeem-card::after {
        top: -44px;
        right: -34px;
        font-size: 260px;
    }

    .topline {
        align-items: flex-start;
    }

    .site-nav {
        flex: none;
    }

    .hero-copy {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-guide {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: clamp(54px, 16vw, 78px);
    }

    .redeem-form {
        grid-template-columns: 1fr;
    }

    .redeem-button {
        width: 100%;
    }

    .result-head {
        display: grid;
    }

    .state-pill {
        justify-self: start;
    }

    .credential-identity {
        display: grid;
        align-items: start;
    }

    .credential-identity button {
        justify-self: start;
    }

    .file-link {
        align-items: flex-start;
        padding: 14px;
    }

    .file-link:hover {
        transform: none;
    }

    .compact-main {
        grid-template-columns: 1fr auto;
        gap: 9px 12px;
    }

    .compact-main .state-pill {
        grid-column: 2;
        grid-row: 1;
    }

    .compact-message {
        grid-column: 1 / -1;
    }

    .compact-files .file-link {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 540px) {
    .shell {
        width: min(100% - 18px, 440px);
        padding-top: 10px;
    }

    .redeem-card {
        gap: 24px;
        padding: 23px 16px 26px;
        border-radius: 24px;
    }

    .topline {
        display: grid;
        gap: 16px;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav a {
        flex: 1;
        justify-content: center;
        padding: 0 8px;
        font-size: 12px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 210px;
    }

    .brand-lock {
        width: 42px;
        height: 42px;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 18vw, 64px);
    }

    .hero-copy p:not(.eyebrow) {
        font-size: 15px;
        line-height: 1.7;
    }

    .tour-actions {
        grid-template-columns: 1fr 1fr;
    }

    .tour-counter {
        grid-column: 1 / -1;
    }

    .tour-actions button {
        width: 100%;
    }

    .tour-close {
        grid-column: 1 / -1;
    }

    .form-head {
        display: grid;
        gap: 5px;
    }

    textarea {
        min-height: 146px;
        padding: 17px;
        font-size: 18px;
    }

    .redeem-button {
        height: 60px;
    }

    .status-line {
        align-items: flex-start;
        min-height: 0;
        margin-top: -2px;
    }

    .status-dot {
        margin-top: 4px;
    }

    .result-head strong {
        font-size: 24px;
    }

    .file-link {
        display: grid;
        gap: 10px;
    }

    .file-link b {
        justify-content: center;
        width: 100%;
    }
}

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