/* AIX Live — scoped visual refinement. No network fonts or animation libraries. */
:root, :root[data-theme="dark"] {
  --text:#f6f8ff; --text-secondary:#d7dfef; --muted:#b5c1d6;
  --aix-green:#73ffad; --aix-glow:rgba(55,255,142,.32);
}
:root[data-theme="light"] {
  --text:#111827; --text-secondary:#334155; --muted:#526079;
  --aix-green:#087e42; --aix-glow:rgba(16,185,129,.18);
}
/* Reset the legacy body variable: otherwise children inherit dark green in both themes. */
body { --muted:inherit; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important; }
input,select,textarea,button {font-family:inherit!important}
body p,body small,body .subtle,body footer,body .card-eyebrow,
body .category-browser>summary>span,body .nav-item,body .sidebar-bottom,
body .support-link,body .auth-lead,body .bot-connect-box p {color:var(--muted)!important}
body input::placeholder,body textarea::placeholder {color:var(--muted)!important;opacity:1}
body input,body textarea,body select {color:var(--text)!important}
body .hero-search>svg {color:var(--muted)!important}
body .hero h1 .powered-aix {color:var(--aix-green)!important;-webkit-text-fill-color:var(--aix-green);background:none!important;text-shadow:0 0 18px var(--aix-glow)!important;animation:aix-breathe 3.6s ease-in-out infinite}
body .status-dot {background:#36f595!important;width:7px;height:7px;box-shadow:0 0 9px #36f595,0 0 0 4px #36f59524!important;position:relative}
.status-dot::after {content:"";position:absolute;inset:-4px;border:1px solid #36f59580;border-radius:50%;animation:aix-pulse 2.8s ease-out infinite}
body .mobile-brand .aix-wordmark small {color:var(--aix-green)!important;letter-spacing:.24em!important}
body .brand .aix-wordmark {letter-spacing:.08em!important}
body .mobile-nav .nav-item {color:var(--text-secondary)!important;gap:4px!important}
body .mobile-nav .nav-item.active {color:var(--text)!important;background:var(--accent-soft)!important}
body .mobile-nav .nav-glyph {display:block!important;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:25px!important;line-height:1.2;letter-spacing:0;margin:0!important;filter:drop-shadow(0 3px 5px #0003);transition:transform .18s ease}
.mobile-nav a:active .nav-glyph {transform:scale(.9)}
.mobile-nav .active .nav-glyph {transform:translateY(-2px)}
body .hero {position:relative;isolation:isolate;overflow:hidden!important}
body .hero-copy {position:relative;z-index:1}
.code-ambient {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;color:var(--aix-green);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.code-ambient span {position:absolute;opacity:.2;animation:aix-float 9s ease-in-out infinite}
.code-ambient span:nth-child(1) {font-size:64px;right:4%;top:8%;transform:rotate(-12deg)}
.code-ambient span:nth-child(2) {font-size:45px;right:30%;bottom:10%;animation-delay:-3s}
.code-ambient span:nth-child(3) {font-size:13px;right:6%;bottom:10%;animation-delay:-6s}
.code-ambient::before {content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 97%,#45df9510 97%),linear-gradient(0deg,transparent 97%,#45df9510 97%);background-size:32px 32px;mask-image:linear-gradient(90deg,transparent,black)}
body .code-pagination {display:flex;align-items:center;justify-content:center;gap:24px;margin:28px 0 10px;min-height:60px}
.code-token {font:600 32px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--aix-green);opacity:.65;animation:aix-float 7s ease-in-out infinite;pointer-events:none}
.code-token:last-child {animation-delay:-3s}
.code-signature {text-align:center;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted);padding:12px 0 20px;pointer-events:none}
.code-signature span {color:var(--accent)}
body .code-signature b {color:var(--aix-green)!important;font-weight:500}
.code-signature i {font-style:normal;animation:aix-cursor 1.4s steps(2,end) infinite}
/* Compact, logo-led cards: the artwork no longer reserves a large empty banner. */
body .product-card .product-art.brand-scene {height:76px!important;min-height:0!important;background:transparent!important;border:0!important;padding:14px 14px 0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;overflow:visible!important}
body .product-card .logo-plinth {width:60px!important;height:60px!important;min-width:60px;position:static!important;margin:0!important;padding:6px!important;border-radius:14px!important;box-shadow:0 3px 12px #0002!important}
body .product-card .logo-plinth .brand-logo {width:100%!important;height:100%!important;object-fit:contain!important}
body .product-card .custom-cover {height:112px!important}
body .product-card .product-info {padding:12px 14px 14px!important;gap:0!important}
body .product-card .product-info h3 {font-size:14px!important;font-weight:650!important;line-height:1.35!important;letter-spacing:-.2px!important;margin:9px 0!important;min-height:0!important;overflow-wrap:anywhere}
body .product-card .card-eyebrow {font-size:10px!important;gap:5px;flex-wrap:wrap}
body .product-card .stock {font-size:10px!important;padding:2px 6px!important;color:var(--aix-green)!important}
body .product-card .product-tags {gap:4px!important;min-height:0!important;margin-bottom:12px!important}
body .product-card .product-tags span {font-size:10px!important;line-height:1.45;padding:3px 5px!important}
body .product-card .card-price {padding-top:10px!important;gap:5px!important;flex-wrap:wrap}
body .product-card .card-price strong {font-size:19px!important;letter-spacing:-.5px;font-variant-numeric:tabular-nums lining-nums;font-weight:750!important}
body .product-card .card-price small {font-size:9px!important;letter-spacing:0;margin-left:3px}
body .product-card .buy-chip {font-size:11px!important;gap:3px}
body .product-card .buy-chip svg {width:13px;height:13px}
body .product-card .new-label {top:12px;right:10px;left:auto;font-size:8px!important}
body .product-card:hover {border-color:var(--accent-border)!important}
body .hero-search input {background:transparent!important;border:0!important;box-shadow:none!important;padding:6px!important;min-width:0}
body .hero-search {gap:6px!important}
body .hero-search button {flex-shrink:0}
@keyframes aix-breathe {0%,100%{filter:brightness(1)}50%{filter:brightness(1.18)}}
@keyframes aix-pulse {0%{transform:scale(.8);opacity:.8}100%{transform:scale(2.2);opacity:0}}
@keyframes aix-float {0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes aix-cursor {50%{opacity:0}}
@media(max-width:760px) {
 body .vibrant-hero {padding:22px 18px!important;min-height:0!important;margin-bottom:18px!important}
 body .hero h1 {font-size:30px!important;line-height:1.15!important;margin-bottom:12px!important;letter-spacing:-1px!important}
 body .hero .eyebrow {font-size:9px!important;letter-spacing:1.2px!important;margin-bottom:12px!important}
 body .hero p {font-size:13px!important;line-height:1.55!important;margin-bottom:16px!important}
 body .hero-search {padding:6px!important;margin-top:0!important}
 body .hero-search button {padding:8px 11px!important;min-height:38px!important;font-size:12px!important}
 body .benefits {gap:10px!important;padding:10px 0 18px!important;margin-bottom:18px!important}
 body .benefits span {font-size:11px!important;line-height:1.45}
 body .category-chips {margin:14px 0 22px!important;gap:8px!important}
 body .category-chip {padding:8px 10px!important;min-height:40px!important;font-size:12px!important}
 body .section-heading {margin:20px 0 14px!important}
 body .section-heading h2 {font-size:22px!important;margin-bottom:0!important}
 body .product-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body .product-card .product-info {padding:10px!important}
 body .product-card .product-art.brand-scene {padding:10px 10px 0!important;height:66px!important}
 body .product-card .logo-plinth {width:54px!important;height:54px!important;min-width:54px;padding:5px!important;border-radius:12px!important}
 body .product-card .product-info h3 {font-size:13px!important}
 body .mobile-nav {bottom:max(10px,env(safe-area-inset-bottom))!important;padding:7px 5px!important}
 body .mobile-nav .nav-item {padding:7px 3px!important;font-size:10px!important;min-width:0}
 .code-ambient span:nth-child(3) {display:none}
 body .top-actions {gap:6px!important}
}
@media(prefers-reduced-motion:reduce) {
 .code-ambient span,.status-dot::after,body .hero h1 .powered-aix,.code-token,.code-signature i {animation:none!important}
 body .product-card,body .nav-glyph {transition:none!important}
}
/* Keep the currency visible even on the narrowest supported phones. */
body .product-card .card-price small {display:inline!important}
body .product-card .product-info h3 {display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;overflow:visible!important}
body .balance-card p,body .payment-help,body .checkout-note,body .payment-text small {font-size:12px!important;line-height:1.6!important}
body .amount-presets .amount-preset {font-size:17px!important}
body .amount-presets .amount-preset small {font-size:10px!important}
body input.large-amount {font-size:32px!important;font-weight:700!important;letter-spacing:-1px;font-variant-numeric:tabular-nums}
body .round-close {background:var(--surface2)!important;color:var(--text)!important;border:1px solid var(--border)!important}

/* Subtle ambient motion and improved legibility. */
body.aix-vivid { position:relative; isolation:isolate; }
body.aix-vivid::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 10% 20%,rgba(59,130,246,.10),transparent 36%),radial-gradient(ellipse at 90% 75%,rgba(43,214,140,.08),transparent 35%); animation:aix-ambient 16s ease-in-out infinite alternate; }
body.page-wallet::before,body.page-checkout::before {background:radial-gradient(ellipse at 85% 20%,rgba(40,209,148,.12),transparent 40%),radial-gradient(ellipse at 15% 80%,rgba(59,130,246,.08),transparent 35%)}
body.page-account::before,body.auth-mode::before {background:radial-gradient(ellipse at 85% 20%,rgba(59,130,246,.12),transparent 40%),radial-gradient(ellipse at 10% 78%,rgba(112,153,255,.07),transparent 38%)}
@keyframes aix-ambient {from {transform:scale(1) translateY(0);opacity:.7} to {transform:scale(1.07) translateY(-1%);opacity:1}}
body.aix-vivid footer,body.aix-vivid footer a {font-weight:600;opacity:1;letter-spacing:.015em}
body.aix-vivid small,body.aix-vivid .subtle {font-weight:500}
body.aix-vivid .code-pagination {margin:30px 0 50px;min-height:48px}
@media (prefers-reduced-motion: reduce) {body.aix-vivid::before {animation:none}}

/* AIX account help cards */
body.aix-vivid .aix-support-card>a {display:flex; align-items:center; gap:14px; padding:18px 0; border-bottom:1px solid var(--border); text-decoration:none}
body.aix-vivid .aix-support-card .help-glyph {display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid var(--border);border-radius:14px;color:var(--accent);background:var(--surface2)}
body.aix-vivid .aix-support-card .help-copy {display:flex;flex:1;flex-direction:column;gap:3px}
body.aix-vivid .aix-support-card .help-copy small {color:var(--muted);font-weight:500}
body.aix-vivid .aix-support-card form {margin-top:18px}

/* Consistent outline icons for navigation and account controls */
body.aix-vivid .mobile-nav .nav-item svg {display:block;width:22px;height:22px;stroke-width:1.8;flex:none;transition:transform .2s ease,color .2s ease}
body.aix-vivid .mobile-nav .nav-item.active svg {color:var(--accent);transform:translateY(-2px)}
body.aix-vivid .mobile-nav .nav-item:active svg {transform:scale(.92)}
body.aix-vivid .mobile-nav .nav-item span {font-weight:600;letter-spacing:.01em}
@media (prefers-reduced-motion: reduce) {body.aix-vivid .mobile-nav .nav-item svg {transition:none}}

/* Keep customer navigation above decoration, with normal browser links. */
body.aix-vivid .mobile-nav {z-index:100;pointer-events:auto}
body.aix-vivid .mobile-nav a {position:relative;pointer-events:auto;touch-action:manipulation}
body.aix-vivid .topbar {z-index:90}
body.aix-vivid .code-ambient,body.aix-vivid .hero::before,body.aix-vivid .hero::after {pointer-events:none}
body.aix-vivid .help-card code {overflow-wrap:anywhere}

.customer-message{white-space:pre-wrap;overflow-wrap:anywhere}

/* Living AIX canvas: real brand assets, decorative motion, no input overlays. */
body.aix-vivid {--motion-rgb:112,245,143;--motion-cool:78,151,255;--motion-line:.16;--motion-wash:.11;--scene-angle:0deg}
:root[data-theme="light"] body.aix-vivid {--motion-rgb:24,143,77;--motion-cool:50,109,225;--motion-line:.19;--motion-wash:.10}
body.aix-vivid::before {content:none}
body.page-account {--scene-angle:-14deg}
body.page-wallet,body.page-checkout {--scene-angle:18deg}
body.auth-mode {--scene-angle:35deg}
body.page-orders,body.page-messages {--scene-angle:-28deg}
body.page-developer {--scene-angle:54deg}
.aix-motion-scene {position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:strict;color:rgb(var(--motion-rgb))}
.aix-aurora {position:absolute;width:90%;height:85%;border-radius:50%;background:radial-gradient(ellipse,rgba(var(--motion-rgb),.16),transparent 65%);animation:aix-aurora-flow 16s ease-in-out infinite alternate}
.aurora-one {left:-32%;top:0}
.aurora-two {right:-30%;bottom:-10%;background:radial-gradient(ellipse,rgba(var(--motion-cool),.13),transparent 65%);animation-delay:-8s;animation-direction:alternate-reverse}
.aix-scene-grid {position:absolute;inset:-10%;background-image:linear-gradient(rgba(var(--motion-rgb),.035) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--motion-rgb),.035) 1px,transparent 1px);background-size:72px 72px;transform:rotate(var(--scene-angle));mask-image:radial-gradient(ellipse,black,transparent 74%)}
.aix-circuit-field {position:absolute;inset:0;width:100%;height:100%;transform:rotate(var(--scene-angle));overflow:visible}
.aix-circuit {stroke:currentColor;stroke-opacity:var(--motion-line);stroke-width:1;vector-effect:non-scaling-stroke}
.aix-circuit-trail {stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-dasharray:8 92;stroke-opacity:.52;vector-effect:non-scaling-stroke;animation:aix-circuit-travel 12s linear infinite}
.trail-1 {animation-delay:-4s;animation-duration:17s}.trail-2 {animation-delay:-7s;animation-duration:19s}.trail-3 {animation-delay:-2s;animation-direction:reverse}
.aix-circuit-node {fill:var(--bg);stroke:currentColor;stroke-width:1.5;transform-box:fill-box;transform-origin:center;animation:aix-node-glow 4s ease-in-out infinite}
.node-2,.node-5 {animation-delay:-1.5s}.node-1,.node-6 {animation-delay:-3s}
body.aix-vivid .aix-motion-surface {position:relative;isolation:isolate}
.aix-surface-wash {position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;overflow:hidden;contain:paint}
.aix-surface-wash::before {content:"";position:absolute;inset:-25%;background:radial-gradient(ellipse at 15% 25%,rgba(var(--motion-rgb),var(--motion-wash)),transparent 48%),radial-gradient(ellipse at 85% 80%,rgba(var(--motion-cool),.07),transparent 45%);animation:aix-surface-drift 11s ease-in-out infinite alternate;animation-delay:var(--motion-phase,0s)}
.aix-surface-wash::after {content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 42%,rgba(var(--motion-rgb),.07) 42.2%,transparent 42.5%,transparent 66%,rgba(var(--motion-rgb),.04) 66.2%,transparent 66.5%);opacity:.65}
.aix-surface-sweep {position:absolute;inset:0 auto 0 -55%;width:45%;background:linear-gradient(100deg,transparent,rgba(var(--motion-rgb),.065),transparent);animation:aix-surface-sweep 10s ease-in-out infinite;animation-delay:var(--motion-phase,0s)}
.aix-surface-spark {position:absolute;right:12%;top:14px;width:3px;height:3px;border-radius:50%;background:rgb(var(--motion-rgb));box-shadow:0 0 0 4px rgba(var(--motion-rgb),.07),0 0 12px rgba(var(--motion-rgb),.3);animation:aix-node-glow 4s ease-in-out infinite;animation-delay:var(--motion-phase,0s);opacity:.4}
.aix-motion-surface:not([data-motion-active="true"]) .aix-surface-wash::before,.aix-motion-surface:not([data-motion-active="true"]) .aix-surface-sweep,.aix-motion-surface:not([data-motion-active="true"]) .aix-surface-spark {animation-play-state:paused}
body.aix-vivid footer {position:relative;isolation:isolate;background:transparent}
.aix-motion-coda {position:absolute;left:5%;right:5%;top:-64px;height:58px;display:flex;align-items:center;justify-content:center;gap:20px;pointer-events:none;color:rgb(var(--motion-rgb));opacity:.68}
.aix-coda-line {position:relative;max-width:210px;flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(var(--motion-rgb),.4));overflow:hidden}
.aix-coda-line:last-child {transform:rotate(180deg)}
.aix-coda-line::after {content:"";position:absolute;inset:0;width:28%;background:linear-gradient(90deg,transparent,currentColor,transparent);animation:aix-coda-stream 4s ease-in-out infinite}
.aix-coda-core {position:relative;width:58px;height:58px;display:grid;place-items:center}
.aix-coda-core svg {width:44px;height:44px;stroke:currentColor;stroke-width:1.2;animation:aix-emblem-float 6s ease-in-out infinite}
.aix-coda-core>span {position:absolute;inset:0;border:1px dashed rgba(var(--motion-rgb),.3);border-radius:50%;animation:aix-orbit 35s linear infinite}
/* Tangible marks: the actual logos stay recognizable throughout their motion. */
body.aix-vivid .logo-plinth,body.aix-vivid .payment-logo,body.aix-vivid .header-logo,body.aix-vivid .brand-logo {backface-visibility:hidden}
body.aix-vivid .product-card .logo-plinth {box-shadow:inset 0 1px 0 #ffffff70,0 3px 0 rgba(var(--motion-cool),.15),0 9px 15px #0003!important;animation:aix-logo-depth 7s ease-in-out infinite;animation-delay:var(--motion-phase,0s)}
body.aix-vivid .payment-logo {filter:drop-shadow(0 3px 0 rgba(var(--motion-cool),.18)) drop-shadow(0 7px 6px #0003)!important;animation:aix-payment-depth 6s ease-in-out infinite}
body.aix-vivid .payment-choice:nth-child(2) .payment-logo {animation-delay:-2s}
body.aix-vivid .payment-choice:nth-child(3) .payment-logo {animation-delay:-4s}
body.aix-vivid .help-glyph svg,body.aix-vivid .auth-icon-badge svg {animation:aix-icon-float 6s ease-in-out infinite}
body.aix-vivid .help-card>a:hover .help-glyph,body.aix-vivid .help-card>a:focus-visible .help-glyph {border-color:var(--accent);box-shadow:0 0 16px rgba(var(--motion-cool),.14);transform:translateY(-2px)}
body.aix-vivid .mobile-nav a:hover svg,body.aix-vivid .mobile-nav a:focus-visible svg {transform:translateY(-3px);filter:drop-shadow(0 4px 5px rgba(var(--motion-cool),.25))}
body.aix-vivid .button,body.aix-vivid button,body.aix-vivid .help-glyph {transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body.aix-vivid .button:active,body.aix-vivid button:active {transform:translateY(1px)}
body.aix-vivid .product-card:not([data-motion-active="true"]) .logo-plinth {animation-play-state:paused}
[data-motion-paused="true"] .aix-motion-scene *,[data-motion-paused="true"] .aix-motion-coda *,[data-motion-paused="true"] .aix-surface-wash *,[data-motion-paused="true"] .aix-surface-wash::before,[data-motion-paused="true"] body.aix-vivid .logo-plinth,[data-motion-paused="true"] body.aix-vivid .payment-logo {animation-play-state:paused!important}
@keyframes aix-aurora-flow {from{transform:translate(0,-3%) scale(.9)}to{transform:translate(14%,12%) scale(1.15)}}
@keyframes aix-circuit-travel {from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes aix-node-glow {0%,100%{opacity:.3;transform:scale(.85)}50%{opacity:.8;transform:scale(1.15)}}
@keyframes aix-surface-drift {from{transform:translate(-5%,-4%)}to{transform:translate(6%,8%)}}
@keyframes aix-surface-sweep {0%,15%{transform:translateX(0);opacity:0}30%{opacity:1}85%,100%{transform:translateX(350%);opacity:0}}
@keyframes aix-coda-stream {from{transform:translateX(-100%)}to{transform:translateX(450%)}}
@keyframes aix-emblem-float {0%,100%{transform:translateY(2px)}50%{transform:translateY(-3px)}}
@keyframes aix-orbit {to{transform:rotate(360deg)}}
@keyframes aix-logo-depth {0%,100%{translate:0 0;rotate:0 1 0 -8deg}50%{translate:0 -4px;rotate:0 1 0 10deg}}
@keyframes aix-payment-depth {0%,100%{transform:perspective(300px) translateY(1px) rotateY(-14deg) rotateZ(-3deg)}50%{transform:perspective(300px) translateY(-4px) rotateY(14deg) rotateZ(3deg)}}
@keyframes aix-icon-float {0%,100%{transform:translateY(1px)}50%{transform:translateY(-2px)}}
@media(max-width:760px){.aix-circuit-field{width:150%;max-width:none;left:-25%}.aix-motion-coda{gap:14px;top:-64px;height:58px}.aix-coda-core{width:48px;height:48px}.aix-coda-core svg{width:36px;height:36px}.aix-scene-grid{background-size:54px 54px}}
@media(prefers-reduced-motion:reduce){body.aix-vivid .aix-motion-scene *,body.aix-vivid .aix-motion-coda *,body.aix-vivid .aix-surface-wash *,body.aix-vivid .aix-surface-wash::before,body.aix-vivid .logo-plinth,body.aix-vivid .payment-logo,body.aix-vivid .help-glyph svg,body.aix-vivid .auth-icon-badge svg{animation:none!important;transform:none!important}.aix-circuit-trail{display:none}.aix-surface-sweep{display:none}}

body.aix-vivid .product-card .product-art {perspective:450px}
/* Give the closing emblem its own row, clear of every card and control. */
body.aix-vivid footer {flex-wrap:wrap}
body.aix-vivid footer>.aix-motion-coda {position:relative;inset:auto;flex:0 0 100%;height:62px;margin:0 0 12px}
