:root {
  color-scheme: dark;
  --bg: #070a0d;
  --panel: rgba(18, 24, 29, 0.86);
  --panel-deep: rgba(8, 12, 15, 0.86);
  --line: rgba(150, 175, 181, 0.17);
  --line-bright: rgba(72, 216, 208, 0.38);
  --text: #f3f7f6;
  --muted: #9ca9ad;
  --dim: #66757a;
  --green: #4ee0a0;
  --green-soft: rgba(78, 224, 160, 0.12);
  --blue: #55aaff;
  --purple: #8b5cf6;
  --lavender: #c4b5fd;
  --electric: #38bdf8;
  --danger: #ff7088;
  --cyan: #48d8d0;
  --amber: #f3c969;
  --gold: #fde68a;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scrollbar-color: rgba(72, 216, 208, 0.45) rgba(7, 10, 13, 0.85); scrollbar-width: thin; }
::selection { background: rgba(72, 216, 208, 0.28); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(7, 10, 13, 0.85); }
::-webkit-scrollbar-thumb { border: 3px solid rgba(7, 10, 13, 0.85); border-radius: 10px; background: rgba(72, 216, 208, 0.48); }
::-webkit-scrollbar-thumb:hover { background: rgba(243, 201, 105, 0.58); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(17, 78, 78, 0.42), transparent 34%),
    linear-gradient(35deg, rgba(61, 42, 122, 0.2), transparent 48%),
    linear-gradient(315deg, rgba(105, 76, 31, 0.16), transparent 44%),
    repeating-linear-gradient(0deg, rgba(118, 160, 161, 0.045) 0, rgba(118, 160, 161, 0.045) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, rgba(118, 160, 161, 0.045) 0, rgba(118, 160, 161, 0.045) 1px, transparent 1px, transparent 42px),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  animation: pageFade 0.55s ease-out both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 15%, rgba(72, 216, 208, 0.075) 35%, rgba(139, 92, 246, 0.05) 49%, rgba(243, 201, 105, 0.035) 58%, transparent 72%);
  background-size: 180% 100%;
  mix-blend-mode: screen;
  animation: ambientSweep 14s ease-in-out infinite alternate;
}

.data-field { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.data-field span { position: absolute; top: 110%; width: 3px; height: 3px; background: rgba(72, 216, 208, 0.58); box-shadow: 0 0 9px rgba(72, 216, 208, 0.72); animation: dataRise 16s linear infinite; }
.data-field span:nth-child(1) { left: 7%; animation-duration: 13s; animation-delay: -8s; }
.data-field span:nth-child(2) { left: 19%; animation-duration: 18s; animation-delay: -2s; background: rgba(69, 245, 156, 0.52); }
.data-field span:nth-child(3) { left: 34%; animation-duration: 15s; animation-delay: -11s; }
.data-field span:nth-child(4) { left: 52%; animation-duration: 20s; animation-delay: -5s; background: rgba(243, 201, 105, 0.48); }
.data-field span:nth-child(5) { left: 67%; animation-duration: 14s; animation-delay: -9s; }
.data-field span:nth-child(6) { left: 81%; animation-duration: 17s; animation-delay: -4s; background: rgba(69, 245, 156, 0.48); }
.data-field span:nth-child(7) { left: 94%; animation-duration: 16s; animation-delay: -12s; }

button, a, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.page-shell { position: relative; z-index: 1; width: min(1244px, calc(100% - 6px)); margin: 0 auto; padding: 34px 0 72px; }
.panel {
  position: relative;
  background: linear-gradient(140deg, rgba(24, 31, 36, 0.88), rgba(8, 12, 15, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.panel:hover { transform: translateY(-2px); border-color: var(--line-bright); box-shadow: 0 24px 62px rgba(0, 0, 0, 0.48), 0 0 30px rgba(72, 216, 208, 0.07), inset 0 1px rgba(255, 255, 255, 0.045); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.06) 49%, transparent 63%); translate: -140% 0; transition: translate 0.65s ease; }
.panel:hover::before { translate: 140% 0; }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(72, 216, 208, 0.055), transparent 30%, transparent 68%, rgba(139, 92, 246, 0.045));
}

.top-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 22px; animation: panelReveal 0.5s ease-out both; }
.brand-card, .plus-card { min-height: 156px; border-radius: 24px; }
.brand-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.plus-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: linear-gradient(135deg, rgba(17, 70, 70, 0.58), rgba(37, 31, 72, 0.36), rgba(37, 31, 22, 0.42)); }
.plus-copy { min-width: 0; }
.plus-title { display: block; margin-bottom: 8px; font-family: "Orbitron", "Chakra Petch", sans-serif; font-size: 1.56rem; font-weight: 900; }
.plus-desc { display: block; font-size: 1.12rem; font-weight: 900; line-height: 1.55; }
.plus-desc em { color: var(--green); font-style: normal; }
.guide-panel { min-height: 388px; }

.topbar { min-height: 116px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; padding: 20px 26px; }
.brand { display: inline-flex; align-items: center; gap: 16px; width: fit-content; }
.brand-mark { position: relative; width: 69px; height: 69px; display: grid; place-items: center; overflow: hidden; border: 0; border-radius: 20px; background: linear-gradient(135deg, #2dd4bf, #a7f3d0 55%, #a78bfa); color: #041512; box-shadow: 0 0 26px rgba(45, 212, 191, 0.34), 0 0 20px rgba(139, 92, 246, 0.14); animation: chipPulse 3.4s ease-in-out infinite; }
.brand-mark::before { content: ""; position: absolute; width: 96px; height: 18px; background: linear-gradient(90deg, transparent, rgba(85, 170, 255, 0.45), transparent); animation: slowRotate 12s linear infinite; }
.brand-mark span { position: relative; z-index: 1; color: #06120a; font-family: "Orbitron", "Chakra Petch", sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.08em; }
.brand-copy { display: grid; gap: 5px; }
.brand-copy strong { font-family: "Orbitron", "Chakra Petch", "Noto Sans SC", sans-serif; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: 0.03em; }
.brand-copy small { color: #b8cbc9; font-size: 1.02rem; font-weight: 800; }
.relay-link { position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 68px; padding: 0 28px; border: 1px solid rgba(72, 216, 208, 0.48); border-radius: 18px; background: linear-gradient(120deg, rgba(72, 216, 208, 0.18), rgba(78, 224, 160, 0.2), rgba(139, 92, 246, 0.14)); color: #effff9; font-size: 1.16rem; font-weight: 950; box-shadow: 0 0 30px rgba(72, 216, 208, 0.16), 0 0 28px rgba(78, 224, 160, 0.14), inset 0 1px rgba(255, 255, 255, 0.12); white-space: nowrap; animation: relayPulse 2.25s ease-in-out infinite; transition: transform 160ms ease, border-color 160ms ease, box-shadow 180ms ease, color 160ms ease; }
.relay-link::before { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgba(7, 13, 16, 0.9), rgba(13, 25, 31, 0.76)); }
.relay-link::after { content: "HOT"; position: absolute; top: -12px; right: 18px; padding: 3px 8px; border: 1px solid rgba(78, 224, 160, 0.42); border-radius: 99px; background: linear-gradient(135deg, #48d8d0, #4ee0a0); color: #041512; font-family: "Rajdhani", "Inter", sans-serif; font-size: 0.68rem; font-weight: 950; box-shadow: 0 0 18px rgba(78, 224, 160, 0.28); }
.relay-link:hover { transform: translateY(-3px); border-color: rgba(78, 224, 160, 0.78); color: #ffffff; box-shadow: 0 15px 34px rgba(0, 0, 0, 0.34), 0 0 40px rgba(72, 216, 208, 0.24), 0 0 28px rgba(78, 224, 160, 0.22); }
.relay-link:active { transform: translateY(0) scale(0.985); }
.relay-link svg { width: 24px; height: 24px; color: #a7f3d0; stroke-width: 2.8; filter: drop-shadow(0 0 7px rgba(78, 224, 160, 0.45)); }
.relay-link span { display: grid; gap: 2px; line-height: 1.05; text-align: left; }
.relay-link strong { font-size: 1.18rem; letter-spacing: 0; }
.relay-link small { color: #a7f3d0; font-size: 0.68rem; font-weight: 900; }
.topbar-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.76rem; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.live-indicator i, .status-dot i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px var(--green); }
.topbar-time { color: #c6cdec; }
.topbar-action, .primary-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; color: #f7ffff; font-weight: 950; background: linear-gradient(120deg, #0f8a8c, #20b8ad, #3b82f6, #8b5cf6, #14a998); background-size: 260% 100%; box-shadow: 0 0 34px rgba(32, 184, 173, 0.27), 0 0 20px rgba(139, 92, 246, 0.12); animation: buttonFlow 4.6s linear infinite; transition: transform 140ms ease, box-shadow 180ms ease, filter 180ms ease; }
.topbar-action::before, .primary-button::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 38%); opacity: 0; transform: scale(0.2); transition: opacity 0.2s ease, transform 0.32s ease; }
.topbar-action::after, .primary-button::after { content: ""; position: absolute; inset: 1px; pointer-events: none; border-radius: inherit; border-top: 1px solid rgba(255, 255, 255, 0.34); }
.topbar-action:active::before, .primary-button:active::before { opacity: 1; transform: scale(1.9); }
.topbar-action > *, .primary-button > * { position: relative; z-index: 1; }
.topbar-action { min-width: 216px; min-height: 60px; padding: 0 22px; border-radius: 16px; white-space: nowrap; font-size: 1.02rem; }
.topbar-action:hover, .primary-button:hover { transform: translateY(-2px); filter: saturate(1.12) brightness(1.05); box-shadow: 0 17px 34px rgba(32, 184, 173, 0.28); }
.topbar-action:active, .primary-button:active { transform: translateY(1px) scale(0.985); }
.topbar-action svg, .primary-button svg { width: 17px; height: 17px; }
.primary-button.is-processing svg:first-of-type { animation: spin 0.8s linear infinite; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(280px, 0.72fr); gap: 24px; margin-top: 24px; align-items: start; }
.grid { display: grid; grid-template-columns: minmax(0, 876px) minmax(0, 340px); gap: 28px; margin-top: 22px; align-items: start; }
.main-column, .side-column { display: grid; gap: 18px; min-width: 0; }
.side-column { display: block; }
.side-column > * + * { margin-top: 18px; }
.side-column > .guide-panel { margin-top: 0; }
.status-panel, .info-panel { display: none; }
.product-panel { padding: 18px; border-radius: 18px; background: linear-gradient(145deg, rgba(15, 58, 59, 0.54), rgba(37, 29, 73, 0.2), rgba(8, 14, 18, 0.86)); }
.redeem-panel, .results-panel, .guide-panel { padding: 26px; border-radius: 24px; }
.redeem-panel h2, .results-panel h2 { display: none; }
.redeem-panel .section-head, .redeem-panel .section-head.compact { height: 35px; margin-bottom: 0; }
.results-panel .section-head { height: 40px; margin-bottom: 18px; }
.product-panel, .notice-strip, .redeem-panel, .results-panel, .guide-panel { animation: panelReveal 0.5s ease-out backwards; }
.product-panel { animation-delay: 0.07s; }.notice-strip { animation-delay: 0.14s; }.redeem-panel { animation-delay: 0.21s; }.results-panel { animation-delay: 0.28s; }.guide-panel { animation-delay: 0.18s; }
.section-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.section-head.compact { align-items: center; margin-bottom: 18px; }
.eyebrow { display: block; color: var(--electric); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 7px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Orbitron", "Chakra Petch", "Noto Sans SC", sans-serif; letter-spacing: 0.015em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h2 { font-size: clamp(1.08rem, 2vw, 1.36rem); }
.section-head p { color: var(--muted); font-size: 0.88rem; margin-top: 7px; }
.product-panel .section-head { margin-bottom: 14px; }
.product-panel h1 { margin: 5px 0; font-size: 1.7rem; line-height: 1.18; }
.product-panel .section-head p { font-size: 0.9rem; }
.text-link, .support-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.text-link svg, .support-link svg { width: 15px; height: 15px; transition: transform 0.16s ease; }
.text-link:hover, .support-link:hover { color: #d9fffb; }
.text-link:hover svg, .support-link:hover svg { transform: translate(2px, -2px); }

.inventory-strip { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 44px; margin: 0 0 14px; padding: 9px 12px; border-top: 1px solid rgba(56, 189, 248, 0.2); border-bottom: 1px solid rgba(139, 92, 246, 0.2); background: linear-gradient(90deg, rgba(56, 189, 248, 0.06), rgba(139, 92, 246, 0.08), rgba(78, 224, 160, 0.04)); }
.inventory-title { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--electric); font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.inventory-title svg { width: 16px; height: 16px; color: var(--cyan); }
.inventory-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; gap: 10px; min-width: 0; }
.inventory-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; color: var(--text); font-size: 0.82rem; }
.inventory-item strong { overflow: hidden; font-family: "Rajdhani", "Inter", sans-serif; font-size: 0.9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.inventory-item em { color: #a7f3d0; font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 0.82rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.product-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-height: 160px; padding: 22px 48px 20px 22px; display: flex; flex-direction: column; border: 1px solid rgba(173, 195, 198, 0.12); border-radius: 19px; background: linear-gradient(145deg, rgba(8, 11, 24, 0.96), rgba(15, 15, 42, 0.88), rgba(7, 10, 18, 0.96)); box-shadow: 0 0 20px rgba(72, 216, 208, 0.035), 0 0 24px rgba(139, 92, 246, 0.05), inset 0 1px rgba(255, 255, 255, 0.026); transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 180ms ease; }
.product-card:hover { border-color: rgba(78, 224, 160, 0.44); background: linear-gradient(145deg, rgba(10, 15, 31, 0.98), rgba(24, 25, 58, 0.9), rgba(8, 12, 22, 0.98)); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), 0 0 24px rgba(78, 224, 160, 0.11), 0 0 24px rgba(139, 92, 246, 0.08); transform: translateY(-3px); }
.product-card:active { transform: translateY(0) scale(0.992); }
.product-card-top { position: absolute; top: 25px; right: 24px; display: flex; align-items: center; color: #a7f3d0; }
.product-tag { display: none; }
.product-card-top svg { width: 22px; height: 22px; stroke-width: 3; transition: transform 0.16s ease; }
.product-card:hover .product-card-top svg { transform: translate(2px, -2px); }
.product-tag { font-family: "DM Mono", monospace; color: var(--dim); font-size: 0.62rem; letter-spacing: 0.1em; }
.product-card h2 { margin-top: 0; padding-right: 20px; font-size: 1.34rem; line-height: 1.18; }
.product-card p { margin-top: 13px; color: #aab4c2; font-size: 0.98rem; font-weight: 800; }
.card-stock { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 13px; color: #a7f3d0; font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 0.82rem; font-weight: 700; }
.card-stock svg { width: 15px; height: 15px; color: var(--electric); }
.product-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 14px; }
.product-price { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.product-price span { color: var(--gold); font-family: "Noto Sans SC", "Inter", sans-serif; font-size: 1.22rem; font-weight: 900; text-shadow: 0 0 12px rgba(253, 230, 138, 0.16); }
.product-price strong { color: var(--green); font-family: "Rajdhani", "Chakra Petch", "DM Mono", monospace; font-size: 3.05rem; font-weight: 900; line-height: 0.86; text-shadow: 0 0 18px rgba(78, 224, 160, 0.28); }
.product-price em { color: #d8deef; font-size: 1.08rem; font-style: normal; font-weight: 900; }
.shared-panel .product-grid { gap: 12px; }
.shared-panel .product-card { min-height: 108px; padding: 14px 15px 13px; border-radius: 15px; background: linear-gradient(145deg, rgba(7, 11, 14, 0.86), rgba(25, 24, 52, 0.62), rgba(22, 28, 31, 0.68)); }
.shared-panel .product-card-top { top: 14px; right: 15px; }
.shared-panel .product-card-top svg { width: 16px; height: 16px; stroke-width: 2; }
.shared-panel .product-card h2 { margin-top: 0; padding-right: 0; font-size: 1.06rem; }
.shared-panel .product-card p { margin-top: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.product-qq-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 58px; margin-top: 16px; padding: 0 18px; overflow: hidden; border: 1px solid rgba(72, 216, 208, 0.34); border-radius: 16px; background: linear-gradient(120deg, rgba(72, 216, 208, 0.12), rgba(78, 224, 160, 0.1), rgba(139, 92, 246, 0.11)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 22px rgba(72, 216, 208, 0.08); color: #eafffb; font-weight: 900; transition: transform 160ms ease, border-color 160ms ease, box-shadow 180ms ease; }
.product-qq-link::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(72, 216, 208, 0.12), transparent); translate: -100% 0; transition: translate 0.55s ease; }
.product-qq-link:hover { transform: translateY(-2px); border-color: rgba(78, 224, 160, 0.58); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 28px rgba(72, 216, 208, 0.14); }
.product-qq-link:hover::before { translate: 100% 0; }
.product-qq-link > * { position: relative; z-index: 1; }
.product-qq-link svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--cyan); }
.product-qq-link span { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.product-qq-link strong { color: var(--green); font-family: "DM Mono", monospace; font-size: 1.08rem; text-decoration: underline; text-decoration-color: rgba(78, 224, 160, 0.42); text-underline-offset: 4px; }
.product-qq-link em { margin-left: auto; color: #a7f3d0; font-size: 0.78rem; font-style: normal; font-weight: 800; }
.stock-line { display: inline-flex; align-items: center; gap: 4px; padding-bottom: 2px; color: #a7f3d0; font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.stock-line svg { width: 14px; height: 14px; color: var(--electric); }

.notice-strip { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 14px 18px; border: 1px solid rgba(243, 201, 105, 0.22); border-radius: 18px; background: rgba(243, 201, 105, 0.06); box-shadow: inset 0 0 22px rgba(243, 201, 105, 0.035); color: #f4e2ad; font-size: 0.82rem; }
.notice-strip svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--amber); }

.format-hint { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; }
.format-hint svg { width: 14px; height: 14px; }
.input-wrap { position: relative; z-index: 1; }
textarea { display: block; width: 100%; min-height: 172px; resize: vertical; caret-color: var(--cyan); border: 1px solid rgba(143, 171, 176, 0.22); border-radius: 18px; background: rgba(5, 9, 11, 0.86); color: var(--text); padding: 18px 19px; font-family: "DM Mono", monospace; font-size: 0.84rem; line-height: 1.75; transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
textarea::placeholder { color: #607074; }
textarea:focus { border-color: rgba(72, 216, 208, 0.62); background: rgba(6, 12, 14, 0.94); box-shadow: 0 0 0 3px rgba(72, 216, 208, 0.075), inset 0 0 28px rgba(72, 216, 208, 0.018); outline: none; }
.input-corner { position: absolute; right: 14px; bottom: 11px; color: var(--cyan); opacity: 0.72; font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; animation: readyPulse 2.4s ease-in-out infinite; }
.input-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; min-height: 46px; }
.count-line { color: var(--muted); font-size: 0.8rem; }
.count-line strong { display: inline-block; min-width: 24px; margin: 0 4px; padding: 3px 8px; border-radius: 99px; background: var(--green); color: #071124; font-family: "DM Mono", monospace; text-align: center; }
.counter-bump { animation: countPop 0.28s ease-out; }
.ghost-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(143, 171, 176, 0.2); border-radius: 9px; background: rgba(19, 29, 31, 0.55); color: var(--muted); font-size: 0.76rem; transition: transform 140ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease; }
.ghost-button:hover:not(:disabled) { border-color: rgba(72, 216, 208, 0.42); background: rgba(25, 48, 48, 0.62); color: var(--text); }
.ghost-button:active:not(:disabled) { transform: scale(0.97); }
.ghost-button:disabled { cursor: not-allowed; opacity: 0.42; }
.ghost-button svg { width: 14px; height: 14px; }
.primary-button { position: relative; z-index: 1; width: 100%; min-height: 54px; border-radius: 13px; font-size: 0.92rem; }
.button-state { position: absolute; right: 15px; padding: 3px 6px; border: 1px solid rgba(7, 17, 36, 0.2); border-radius: 5px; color: rgba(7, 17, 36, 0.74); font-family: "DM Mono", monospace; font-size: 0.62rem; }
.progress-track { position: relative; z-index: 1; height: 3px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: rgba(109, 143, 146, 0.16); }
.progress-track span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber)); transition: width 220ms ease; }

.results-head { margin-bottom: 16px; }
.metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { min-height: 112px; display: grid; place-content: center; gap: 9px; border: 1px solid rgba(143, 171, 176, 0.13); border-radius: 20px; background: rgba(6, 10, 13, 0.67); text-align: center; }
.metric strong { color: var(--blue); font-family: "DM Mono", monospace; font-size: 1.65rem; }
.metric span { color: var(--muted); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; }
.metric.success strong { color: var(--green); }.metric.failed strong { color: var(--danger); }
.result-log { position: relative; z-index: 1; height: 150px; min-height: 0; max-height: 290px; margin-top: 16px; overflow: auto; border: 1px dashed rgba(133, 178, 179, 0.22); border-radius: 18px; background: rgba(4, 8, 10, 0.46); }
.empty-state { min-height: 0; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: #bad6d4; text-align: center; }
.empty-state svg { width: 24px; height: 24px; color: #62aaa6; margin-bottom: 3px; }.empty-state strong { color: #d9d1ff; font-family: "Orbitron", "Chakra Petch", sans-serif; font-size: 0.92rem; letter-spacing: 0.08em; }.empty-state span { font-size: 0.75rem; }
.result-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid rgba(143, 171, 176, 0.12); }.result-item:last-child { border-bottom: 0; }
.result-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); }.result-item.failed .result-icon { background: rgba(255, 110, 146, 0.12); color: var(--danger); }.result-icon svg { width: 15px; height: 15px; }
.result-code { min-width: 0; overflow: hidden; color: #e7ecff; font-family: "DM Mono", monospace; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }.result-meta { display: block; margin-top: 4px; color: var(--dim); font-family: "DM Mono", monospace; font-size: 0.65rem; }.result-status { color: var(--green); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }.result-item.failed .result-status { color: var(--danger); }
.shipment-panel { position: relative; z-index: 1; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(56, 189, 248, 0.2); }
.shipment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.shipment-head > div { display: grid; gap: 4px; min-width: 0; }
.shipment-kicker { color: var(--electric); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; }
.shipment-head strong { color: var(--text); font-family: "Orbitron", "Chakra Petch", sans-serif; font-size: 0.98rem; letter-spacing: 0.04em; }
.shipment-head span:last-child { color: var(--muted); font-size: 0.75rem; }
.shipment-icon { width: 23px; height: 23px; flex: 0 0 auto; color: var(--cyan); }
.shipment-panel.is-packing .shipment-icon { animation: packPulse 0.9s ease-in-out infinite; }
.shipment-progress { height: 7px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: rgba(109, 143, 146, 0.16); }
.shipment-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--electric), var(--purple), var(--green)); background-size: 220% 100%; transition: width 220ms ease; }
.shipment-status { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; }
.shipment-mode { margin-top: 8px; color: #c4b5fd; font-size: 0.76rem; }
.shipment-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.format-select-wrap { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; max-width: 100%; padding: 0 10px; border: 1px solid rgba(143, 171, 176, 0.2); border-radius: 9px; background: rgba(19, 29, 31, 0.55); color: var(--muted); color-scheme: dark; font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 0.84rem; font-weight: 700; }
.format-select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.format-select-wrap select { width: min(250px, 100%); min-width: 0; padding: 4px 27px 4px 0; overflow: hidden; border: 0; outline: 0; appearance: none; -webkit-appearance: none; background: #101820; color: var(--text); color-scheme: dark; font: inherit; font-size: 0.86rem; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.format-select-wrap option { background-color: #101820; color: #f3f7f6; font-size: 0.86rem; }
.format-select-wrap option:checked { background-color: #24394a; color: #ffffff; }
.shipment-actions .primary-button { width: auto; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 0.78rem; }
.shipment-actions .ghost-button { min-height: 40px; }
.shipment-actions button[hidden] { display: none; }

.status-panel { background: linear-gradient(155deg, rgba(30, 29, 75, 0.82), rgba(24, 24, 43, 0.78)); }
.status-dot { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(69, 245, 156, 0.35); border-radius: 50%; background: var(--green-soft); }.status-dot i { width: 8px; height: 8px; }
.status-main { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 17px 0 14px; border-top: 1px solid rgba(132, 151, 214, 0.15); border-bottom: 1px solid rgba(132, 151, 214, 0.15); }.status-main span { color: var(--muted); font-size: 0.8rem; }.status-main strong { color: var(--green); font-family: "DM Mono", monospace; font-size: 0.78rem; }
.status-list { position: relative; z-index: 1; display: grid; gap: 11px; padding: 15px 0; }.status-list div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.76rem; }.status-list strong { color: #e0e7ff; font-family: "DM Mono", monospace; font-weight: 500; }.status-bar { position: relative; z-index: 1; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(78, 97, 160, 0.28); }.status-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 14px rgba(69, 245, 156, 0.45); }
.guide-panel { background: linear-gradient(155deg, rgba(22, 34, 45, 0.88), rgba(43, 28, 61, 0.52)); }
.guide-icon { width: 19px; height: 19px; color: var(--electric); }
.guide-list { position: relative; z-index: 1; display: grid; gap: 13px; margin: 0; padding: 4px 0 0; list-style: none; }
.guide-list li { display: block; padding: 0; border-bottom: 0; }
.guide-list strong { display: block; color: #e9efff; font-size: 1.02rem; font-weight: 950; line-height: 1.22; }
.support-link { position: relative; z-index: 1; width: 100%; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(132, 151, 214, 0.15); }.support-link span { margin-right: auto; }
.qq-group-link { min-height: 42px; padding-right: 8px; transition: color 160ms ease, transform 140ms ease, background 160ms ease; }
.qq-group-link span { display: inline-flex; align-items: baseline; gap: 6px; }
.qq-group-link strong { color: var(--green); font-family: "Rajdhani", "DM Mono", monospace; font-size: 1.22rem; font-weight: 900; letter-spacing: 0.02em; text-decoration: underline; text-decoration-color: rgba(69, 245, 156, 0.48); text-underline-offset: 4px; text-shadow: 0 0 14px rgba(78, 224, 160, 0.26); }
.qq-group-link:hover { background: linear-gradient(90deg, rgba(69, 245, 156, 0.06), transparent 70%); }
.qq-group-link:active { transform: scale(0.985); }
.info-panel { display: grid; gap: 15px; background: rgba(10, 22, 40, 0.72); }.info-row { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 11px; }.info-row > svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--green); }.info-row strong, .info-row span { display: block; }.info-row strong { font-size: 0.78rem; }.info-row span { margin-top: 4px; color: var(--muted); font-size: 0.7rem; }
.side-column .status-panel, .side-column .info-panel { display: none; }
.footer-line { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px 0; color: var(--dim); font-family: "Rajdhani", "DM Mono", sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 11px 15px; border: 1px solid rgba(72, 216, 208, 0.32); border-radius: 10px; background: rgba(8, 15, 16, 0.95); color: #e7fffc; box-shadow: 0 15px 40px rgba(0,0,0,0.42); font-size: 0.78rem; transition: opacity 180ms ease, transform 180ms ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pageFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ambientSweep { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes dataRise { from { top: 110%; transform: translateX(0); } to { top: -10%; transform: translateX(58px); } }
@keyframes panelReveal { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes chipPulse { 0%, 100% { transform: rotate(-1deg); box-shadow: 0 0 26px rgba(45, 212, 191, 0.34); } 50% { transform: rotate(1.5deg) scale(1.03); box-shadow: 0 0 42px rgba(45, 212, 191, 0.58); } }
@keyframes slowRotate { to { transform: rotate(360deg); } }
@keyframes buttonFlow { to { background-position: 220% 0; } }
@keyframes statusPulse { 0%, 100% { opacity: 0.65; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes scanLine { from { translate: -100% 0; } to { translate: 100% 0; } }
@keyframes terminalBlink { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes progressFlow { to { background-position: 200% 0; } }
@keyframes countPop { 0% { transform: scale(0.72); } 65% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes logEntry { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes readyPulse { 0%, 100% { opacity: 0.48; } 50% { opacity: 0.9; } }
@keyframes packPulse { 0%, 100% { transform: translateY(0) rotate(0); opacity: 0.68; } 50% { transform: translateY(-3px) rotate(-5deg); opacity: 1; } }
@keyframes relayPulse { 0%, 100% { box-shadow: 0 0 30px rgba(72, 216, 208, 0.16), 0 0 28px rgba(78, 224, 160, 0.14), inset 0 1px rgba(255, 255, 255, 0.12); } 50% { box-shadow: 0 0 42px rgba(72, 216, 208, 0.25), 0 0 40px rgba(78, 224, 160, 0.24), inset 0 1px rgba(255, 255, 255, 0.16); } }

.data-field span { animation-name: dataRise; }
.empty-state { position: relative; overflow: hidden; }
.empty-state::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(72, 216, 208, 0.085), transparent); translate: -100% 0; animation: scanLine 2.8s linear infinite; }
.empty-state > * { position: relative; z-index: 1; }
.empty-state svg { animation: terminalBlink 1.8s ease-in-out infinite; }
.result-item { animation: logEntry 0.34s ease-out both; }
.progress-track span, .status-bar span { background-size: 220% 100%; animation: progressFlow 1.6s linear infinite; }

@media (max-width: 1020px) {
  .dashboard { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .info-panel { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1021px) {
  .shared-panel .product-grid { grid-template-columns: minmax(0, 1fr); }
  .shared-panel .product-card { max-width: 320px; }
}
@media (max-width: 720px) {
  .page-shell { width: min(100% - 24px, 560px); padding-top: 12px; padding-bottom: 28px; }
  .top-grid { grid-template-columns: 1fr; gap: 12px; }
  .brand-card, .plus-card { min-height: 112px; border-radius: 20px; }
  .brand-card { align-items: stretch; flex-direction: column; padding: 16px; }
  .plus-card { padding: 17px; gap: 12px; }
  .plus-title { font-size: 1.2rem; }
  .plus-desc { font-size: 0.78rem; line-height: 1.45; }
  .topbar-action { min-height: 46px; padding: 0 13px; font-size: 0.75rem; }
  .plus-card .topbar-action { min-width: 0; width: 145px; flex: 0 0 145px; padding: 0 10px; font-size: 0.76rem; }
  .plus-card .topbar-action span { display: inline; }
  .topbar-action span { display: inline; }
  .topbar { grid-template-columns: 1fr auto; gap: 15px; min-height: 90px; padding: 15px; }.topbar-meta { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; padding-top: 2px; }.topbar-action { grid-column: 2; grid-row: 1; min-height: 42px; padding: 0 12px; }.topbar-action span { display: none; }.brand-mark { width: 52px; height: 52px; border-radius: 15px; }.brand-copy strong { font-size: 1.15rem; }.brand-copy small { font-size: 0.72rem; }.relay-link { width: 100%; min-height: 64px; border-radius: 16px; padding: 0 18px; font-size: 1rem; background: linear-gradient(120deg, rgba(72, 216, 208, 0.24), rgba(78, 224, 160, 0.26), rgba(139, 92, 246, 0.16)); box-shadow: 0 0 34px rgba(72, 216, 208, 0.22), 0 0 28px rgba(78, 224, 160, 0.2), inset 0 1px rgba(255, 255, 255, 0.14); }.relay-link::after { top: -10px; right: 12px; }.relay-link svg { width: 22px; height: 22px; }.relay-link span { flex: 1; }.relay-link strong { font-size: 1.13rem; }.relay-link small { font-size: 0.7rem; }
  .dashboard { gap: 15px; margin-top: 15px; }.main-column, .side-column { gap: 15px; }.product-panel, .redeem-panel, .results-panel, .status-panel, .guide-panel, .info-panel { padding: 18px; }.section-head { gap: 12px; margin-bottom: 18px; }.section-head p { font-size: 0.82rem; }.text-link span { display: none; }.inventory-strip { align-items: flex-start; flex-direction: column; gap: 7px; padding: 10px 12px; }.inventory-list { width: 100%; gap: 6px; }.inventory-item { align-items: flex-start; flex-direction: column; gap: 1px; font-size: 0.76rem; }.inventory-item strong, .inventory-item em { font-size: 0.78rem; }.product-grid { gap: 9px; }.product-card { min-height: 145px; padding: 14px; }.product-card h2 { font-size: 0.94rem; margin-top: 14px; }.product-card p { font-size: 0.74rem; }.product-qq-link { align-items: flex-start; flex-wrap: wrap; min-height: 76px; padding: 13px 14px; gap: 8px 10px; }.product-qq-link span { width: calc(100% - 34px); }.product-qq-link em { width: 100%; margin-left: 30px; font-size: 0.72rem; }.product-qq-link svg:last-child { position: absolute; top: 16px; right: 14px; }.card-stock { padding-top: 11px; font-size: 0.78rem; }.card-stock svg { width: 14px; height: 14px; }.notice-strip { align-items: flex-start; font-size: 0.72rem; padding: 12px 13px; }.format-hint { display: none; }textarea { min-height: 150px; padding: 14px; font-size: 0.8rem; }.button-state { display: none; }.side-column { grid-template-columns: 1fr; }.info-panel { grid-template-columns: 1fr; }.footer-line { flex-direction: column; gap: 7px; font-size: 0.56rem; padding-top: 16px; }.result-item { grid-template-columns: auto 1fr; }.result-status { grid-column: 2; }.metrics { gap: 8px; }.metric { min-height: 90px; }.metric strong { font-size: 1.4rem; }.shipment-actions { flex-direction: column; }.shipment-actions > button, .shipment-actions > .format-select-wrap { width: 100%; }.shipment-actions .primary-button { width: 100%; }.format-select-wrap select { width: 100%; min-width: 0; flex: 1; }
  .shared-panel .product-card:last-child { grid-column: 1 / -1; }
  .guide-list { gap: 11px; }
  .guide-list strong { font-size: 0.98rem; line-height: 1.2; }
  .qq-group-link strong { font-size: 1.12rem; }
}

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