/* NovaKeys functional upgrade — scoped to content. Original header, hero, page background, and footer intentionally untouched. */
/* Eliminate the moving white shine, without changing the site's button colours. */
#app .btn::after,#app .btn::before{content:none!important;animation:none!important}
#app .btn:hover{box-shadow:none!important;transform:none!important}
#app .btn:focus-visible,#app button:focus-visible,#app a:focus-visible{outline:2px solid #c79ef9;outline-offset:3px}

/* Walkthrough: retain the original hero/backdrop, show a single quiet divider instead of a full-width purple block */
#app .home-landing-page .nk-tutorial-section{background:transparent!important;border-top:1px solid rgba(205,173,233,.18)!important;padding-top:clamp(58px,6vw,82px)!important}
#app .home-landing-page .nk-tutorial-section::before{content:none!important}
#app .nk-tutorial-layout{gap:30px;align-items:start}
#app .tutorial-player{background:rgba(20,13,31,.85);border-color:rgba(219,188,255,.14);box-shadow:none;border-radius:18px}
#app .tutorial-player-top{background:rgba(255,255,255,.014)}
#app .tutorial-stage{background:none;min-height:310px}
#app .tutorial-stage-icon{border-radius:12px}
#app .tutorial-frame{animation:nkFrameEnter .42s cubic-bezier(.2,.8,.2,1) both}
@keyframes nkFrameEnter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
#app .tutorial-step-list{gap:0;border-top:1px solid rgba(208,184,239,.14)}
#app .tutorial-step{position:relative;display:grid;grid-template-columns:33px minmax(0,1fr);min-height:93px;align-items:center;gap:16px;border:0!important;border-bottom:1px solid rgba(208,184,239,.14)!important;border-radius:0!important;padding:17px 7px!important;background:transparent!important;box-shadow:none!important;transform:none!important;transition:color .2s ease,opacity .2s ease!important}
#app .tutorial-step:hover{background:rgba(183,135,242,.055)!important}
#app .tutorial-step.active{background:rgba(183,135,242,.07)!important;box-shadow:inset 3px 0 0 #bb94f5!important}
#app .tutorial-step-number{width:auto;height:auto;border:0!important;border-radius:0!important;background:none!important;font-size:.78rem;color:#ab8bd1}
#app .tutorial-step-copy{gap:5px}
#app .tutorial-step-copy b{font-size:.94rem}
#app .tutorial-step-copy small{font-size:.79rem;color:#ab9cba}
#app .tutorial-step-arrow{display:none!important}
#app .tutorial-guide-link{padding:16px 7px;min-height:48px;border-bottom:1px solid rgba(208,184,239,.14);color:#c2a8f6}
#app .tutorial-progress-track{height:3px;position:relative}
#app .tutorial-player.is-playing .tutorial-progress-track::after{content:"";display:block;position:absolute;inset:0;background:#d9b5ff;opacity:.36;transform-origin:left;animation:nkWalkDuration 3.9s linear infinite}
@keyframes nkWalkDuration{from{transform:scaleX(0)}to{transform:scaleX(1)}}
#app .tutorial-controls .btn{box-shadow:none!important}

/* Key workspace: meaningful layout improvement, not just enlarged controls */
#app .workspace-page-only-panel{padding-top:clamp(35px,5vw,62px)}
#app .workspace-page-only-panel .workspace-container{width:min(920px,calc(100% - 32px));max-width:920px}
#app .workspace-shell{background:rgba(19,13,30,.91)!important;border-color:rgba(215,184,246,.17)!important;box-shadow:0 18px 52px -42px rgba(0,0,0,.9)!important}
#app .workspace-content{padding:clamp(22px,3.6vw,45px)!important}
#app .workspace-tabs{display:flex!important;gap:25px!important;padding:0!important;margin-bottom:34px!important;border:0!important;border-bottom:1px solid rgba(206,181,238,.16)!important;border-radius:0!important;background:transparent!important}
#app .workspace-tab{position:relative;flex:0 1 auto;min-height:48px;padding:7px 1px 16px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#aa9ab9!important;font-size:.88rem;font-weight:600;box-shadow:none!important}
#app .workspace-tab::after{content:"";height:2px;position:absolute;bottom:-1px;left:0;right:0;background:#bd8ef6;transform:scaleX(0);transition:transform .2s ease}
#app .workspace-tab:hover{color:#e9dbf7!important;background:transparent!important;transform:none!important}
#app .workspace-tab.active{color:#f2e8fc!important;background:transparent!important;box-shadow:none!important}
#app .workspace-tab.active::after{transform:scaleX(1)}
#app .workspace-label-row{margin-bottom:13px}
#app .nk-workspace-title{font-size:clamp(1.7rem,3vw,2.2rem);margin:2px 0 7px;font-weight:720;letter-spacing:-.045em;line-height:1.2}
#app .nk-workspace-subtitle{max-width:570px;margin:0 0 30px;font-size:.94rem;line-height:1.7;color:#aa9bb9}
#app .workspace-form,#app .redeem-form{max-width:none}
#app .workspace-input-wrap,#app .redeem-input-shell{border-radius:12px!important;min-height:59px!important;background:rgba(7,5,13,.58)!important;border-color:rgba(209,174,249,.27)!important;box-shadow:none!important}
#app .workspace-input-wrap:focus-within,#app .redeem-input-shell:focus-within{border-color:#ac7ef1!important;box-shadow:0 0 0 3px rgba(172,126,241,.12)!important}
#app #ccode,#app #code{min-height:57px;font-size:1rem!important;font-family:var(--font-mono,monospace);letter-spacing:.01em}
#app .nk-icon-action{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:0;border-radius:8px;color:#baa5d0;background:transparent;cursor:pointer}
#app .nk-icon-action:hover{background:rgba(167,121,228,.13);color:#f0e5fc}
#app .nk-icon-action .i{width:16px;height:16px}
#app .workspace-submit,#app .redeem-actions .btn{min-height:49px!important;border-radius:10px!important;font-weight:650}
#app .workspace-submit .workspace-submit-arrow{display:none!important}
#app .redeem-workspace-services{margin-top:24px}
#app .workspace-footer{border-top-color:rgba(205,171,238,.12)!important;background:rgba(5,3,13,.23)!important}
#app .workspace-info-panel,#app .workspace-login-card{border-radius:13px;box-shadow:none}
#app .workspace-output,#app .redeem-output{margin-top:25px}
#app .nk-query-status{padding:14px 0;color:#bfa9d0;font-size:.89rem}
#app .nk-verify-result,#app .nk-info-result,#app .nk-confirm-panel,#app .nk-redeemed{border:1px solid rgba(207,174,238,.17);border-radius:15px;background:rgba(15,10,24,.9);padding:clamp(17px,3vw,27px);animation:nkFrameEnter .24s ease both}
#app .nk-verify-head{display:flex;align-items:flex-start;gap:14px}
#app .nk-verify-mark{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:11px;background:rgba(230,147,147,.08);color:#e7a2a8}
#app .nk-valid .nk-verify-mark{background:rgba(87,206,153,.1);color:#83d9b2}
#app .nk-verify-head>div{min-width:0;flex:1}
#app .nk-kicker{display:block;font-size:.65rem;font-weight:800;letter-spacing:.12em;color:#ba9ddb}
#app .nk-verify-head h3,#app .nk-redeemed-top h3,#app .nk-confirm-title h3{font-size:1.45rem;margin:6px 0 6px!important;letter-spacing:-.04em}
#app .nk-verify-head p,#app .nk-redeemed-top p{font-size:.88rem;color:#b9aabe;margin:0;line-height:1.65}
#app .nk-result-badge{white-space:nowrap;font-size:.72rem;color:#d6b7bc;padding:6px 8px;border:1px solid rgba(229,173,174,.23);border-radius:7px}
#app .nk-valid .nk-result-badge{color:#a9e3c9;border-color:rgba(112,217,169,.26)}
#app .nk-product-summary{display:flex;align-items:center;gap:14px;margin:19px 0;border-top:1px solid rgba(208,181,239,.13);border-bottom:1px solid rgba(208,181,239,.13);padding:17px 0}
#app .nk-product-summary img,#app .nk-product-fallback{width:52px;height:52px;flex:0 0 52px;object-fit:contain;background:rgba(166,128,216,.1);border-radius:10px;padding:8px;display:grid;place-items:center}
#app .nk-product-summary>div{min-width:0}
#app .nk-product-summary b{display:block;font-size:1.02rem}
#app .nk-product-summary small{display:block;font-size:.82rem;margin-top:4px;color:#afa1ba}
#app .nk-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border-radius:10px;overflow:hidden;border:1px solid rgba(209,183,239,.14);background:rgba(209,183,239,.14);margin-top:18px}
#app .nk-stat-grid>div{background:rgba(12,7,20,.96);padding:13px 15px;min-width:0}
#app .nk-stat-grid span{display:block;color:#9f90ac;font-size:.72rem;margin-bottom:8px}
#app .nk-stat-grid b{display:block;color:#ece3f3;font-size:.91rem;overflow-wrap:anywhere}
#app .nk-result-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px}
#app .nk-result-actions .btn{min-height:43px;border-radius:10px}
#app .nk-info-result .nk-info-top{display:flex;align-items:center;gap:13px;color:#94dfb8}
#app .nk-info-top .i{flex:0 0 22px;width:22px;height:22px}
#app .nk-info-top b{display:block;color:#e7f9ee;font-size:1rem}
#app .nk-info-top span{color:#aca4b5;font-size:.81rem}
#app .nk-info-product{padding:19px 0 0;display:flex;flex-direction:column;gap:6px}
#app .nk-info-product span{color:#aa9ab9;font-size:.86rem}
#app .nk-confirm-title{display:flex;gap:14px;align-items:center}
#app .nk-confirm-title>.i{height:33px;width:33px;color:#d9baf7}
#app .nk-confirm-panel>p{color:#b8abca;font-size:.91rem;line-height:1.72;margin:19px 0}
#app .nk-confirm-reminder{display:flex;align-items:flex-start;gap:10px;border-top:1px solid rgba(210,185,244,.14);padding-top:18px;font-size:.86rem;color:#e2c5ad;line-height:1.6}
#app .nk-confirm-reminder>.i{width:20px;flex:0 0 20px}
#app .nk-confirm-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}
#app .nk-redeemed-top{display:flex;align-items:center;gap:15px;padding-bottom:17px;border-bottom:1px solid rgba(205,173,240,.15);margin-bottom:20px}
#app .nk-redeemed-top>.i{color:#91dfb2;width:37px;height:37px;flex:0 0 37px}
#app .nk-redeemed>h4{font-size:1.04rem;margin:25px 0 12px}
#app .nk-redeemed>h4 small{margin-left:8px;color:#a89ab5;font-size:.73rem;font-weight:500}
#app .nk-delivered-items{display:grid;gap:9px}
#app .nk-delivered-item{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid rgba(214,179,247,.14);border-radius:10px;background:rgba(6,4,12,.58)}
#app .nk-delivered-item pre{min-width:0;flex:1;overflow-wrap:anywhere;white-space:pre-wrap;font-size:.87rem;margin:0}
#app .nk-private-note{font-size:.78rem;color:#a59aad;margin:13px 0 0}
#app .nk-redeemed .detail-section,#app .nk-confirm-panel .detail-section,#app .nk-verify-result .detail-section,#app .nk-info-result .detail-section{background:rgba(7,5,13,.37);border-radius:10px;padding:15px;margin:15px 0}

/* History: user-driven search, filters, copy, reveal/hide and export */
#app .nk-history-page{padding:clamp(35px,6vw,76px) 0 96px}
#app .nk-history-wrap{max-width:1050px;width:calc(100% - 38px)}
#app .nk-history-heading{margin-bottom:31px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
#app .nk-history-heading h1{font-size:clamp(2rem,4.1vw,3.2rem);margin:10px 0 9px;letter-spacing:-.05em}
#app .nk-history-heading p{color:#ad9dbc;font-size:.94rem;margin:0}
#app .nk-history-tools{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:14px 0 17px;border-top:1px solid rgba(214,184,246,.14);border-bottom:1px solid rgba(214,184,246,.14);margin:0 0 20px}
#app .nk-history-search{display:flex;align-items:center;gap:9px;flex:1 1 220px;max-width:none;min-height:43px;border-radius:9px;border:1px solid rgba(211,183,238,.23);padding:0 13px;background:rgba(13,7,21,.55);color:#ab9ac0}
#app .nk-history-search input{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;min-height:40px;width:100%;font-size:.86rem}
#app .nk-history-tools select{appearance:none;min-width:116px;min-height:43px;padding:0 25px 0 13px;border-radius:9px;background:#20162b;border:1px solid rgba(214,183,246,.21);color:#f0e5fa;font:500 .8rem var(--font-body,sans-serif);cursor:pointer}
#app .nk-history-count{color:#a795b5;font-size:.8rem;white-space:nowrap}
#app .nk-history-list{display:grid;gap:14px}
#app .nk-history-item{border:1px solid rgba(209,180,239,.16);border-radius:14px;background:rgba(21,14,33,.88);overflow:hidden}
#app .nk-history-item-head{display:flex;align-items:center;gap:14px;padding:17px 20px;border-bottom:1px solid rgba(211,179,239,.11)}
#app .nk-history-product-img{width:45px;height:45px;flex:0 0 45px;border-radius:10px;object-fit:contain;background:rgba(190,148,226,.11);padding:6px}
#app .nk-history-fallback{display:grid;place-items:center;color:#c7a4f0}
#app .nk-history-product-title{flex:1;min-width:0}
#app .nk-history-product-title h3{font-size:1rem;margin:0 0 4px!important}
#app .nk-history-product-title p{font-size:.76rem;color:#ac9eb8;margin:0;overflow-wrap:anywhere}
#app .nk-hist-actions{display:flex;flex-wrap:wrap;gap:6px}
#app .nk-hist-actions .btn{font-size:.77rem;min-height:34px;padding:7px 9px;white-space:nowrap}
#app .nk-history-delivery{padding:14px 20px 18px}
#app .nk-history-delivery h4{margin:0 0 12px;font-size:.84rem}
#app .nk-history-delivery h4 span{color:#a494b3;margin-left:5px}
#app .nk-history-delivery .items{display:grid;gap:7px}
#app .nk-history-delivery .item{display:flex;align-items:center;gap:12px;border:1px solid rgba(210,174,243,.1);background:rgba(9,6,17,.55);border-radius:9px;padding:10px 12px}
#app .nk-history-delivery .item pre{min-width:0;flex:1;overflow-wrap:anywhere;white-space:pre-wrap;font-size:.83rem}
#app .nk-history-concealed:not(.nk-history-revealed) .item pre{filter:blur(5px);user-select:none}
#app .nk-history-more{border-top:1px solid rgba(214,182,240,.12)}
#app .nk-history-more summary{padding:14px 20px;cursor:pointer;color:#c9afe8;font-weight:600;font-size:.85rem}
#app .nk-history-more summary:hover{background:rgba(182,122,235,.05)}
#app .nk-history-details{display:grid;gap:11px;padding:6px 20px 20px}
#app .nk-history-details .detail-section{background:rgba(6,4,14,.37);border-radius:10px;padding:13px;margin:0}
#app .nk-history-empty{text-align:center;padding:38px 25px;border:1px solid rgba(211,182,238,.17);border-radius:13px}
#app .nk-history-empty>.i{color:#ae89db;width:30px;height:30px}
#app .nk-history-inline{margin-top:22px}
#app .nk-history-inline .nk-history-item-head{flex-wrap:wrap}

/* Help Centre — no extra navigation sections or giant pill-bars */
#app .nk-help2{padding:clamp(45px,7vw,90px) 0 105px;min-height:60vh}
#app .nk-help2-wrap{max-width:960px;width:calc(100% - 38px)}
#app .nk-help2-head{margin-bottom:28px}
#app .nk-help2-head h1{font-size:clamp(2.1rem,4.5vw,3.5rem);line-height:1.1;letter-spacing:-.05em;margin:13px 0 14px}
#app .nk-help2-head p{color:#ad9ebc;max-width:670px;font-size:.95rem;line-height:1.7}
#app .nk-help2-actions{display:flex;gap:12px 26px;align-items:center;flex-wrap:wrap}
#app .nk-help2-actions a{display:inline-flex;align-items:center;gap:8px;font-size:.87rem;font-weight:620;color:#d1b8f2;text-decoration:none;min-height:40px}
#app .nk-help2-actions a:hover{color:#fff}
#app .nk-help2-actions a .i{width:17px;height:17px}
#app .nk-help2-divider{height:1px;background:rgba(212,179,238,.18);margin:26px 0 27px}
#app .nk-help2-tools{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:17px}
#app .nk-help2-search{display:flex;align-items:center;gap:9px;min-height:47px;flex:1 1 225px;border:1px solid rgba(213,186,244,.21);border-radius:10px;background:rgba(9,6,18,.53);padding:0 14px;color:#ac9cbe}
#app .nk-help2-search input{flex:1;min-width:0;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;color:white!important;font-size:.9rem}
#app .nk-help2-filter{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
#app .nk-help2-filter button{border:0;border-radius:8px;padding:9px 11px;color:#af9dbd;background:transparent;font-size:.82rem;font-weight:650;cursor:pointer}
#app .nk-help2-filter button.active{background:rgba(188,140,246,.14);color:#e1c4ff}
#app .nk-help2-filter button:hover{color:#fff}
#app .nk-help2-list{border-top:1px solid rgba(217,188,248,.15)}
#app .nk-help2-item{border-bottom:1px solid rgba(217,188,248,.15);background:transparent!important}
#app .nk-help2-item[hidden]{display:none!important}
#app .nk-help2-item summary{display:flex;justify-content:space-between;gap:14px;align-items:center;list-style:none;padding:21px 7px;color:#eae2f1;font-weight:620;font-size:.94rem;cursor:pointer}
#app .nk-help2-item summary::-webkit-details-marker{display:none}
#app .nk-help2-item summary span{width:25px;height:25px;display:grid;place-items:center;color:#a98cca}
#app .nk-help2-item[open] summary span{transform:rotate(45deg)}
#app .nk-help2-item p{margin:0;padding:0 7px 23px;max-width:790px;color:#a99cb7;line-height:1.75;font-size:.9rem}
#app .nk-help2-no-results{color:#ab9bb6;padding:30px 0}

@media(max-width:760px){
 #app .nk-tutorial-layout{grid-template-columns:1fr;gap:24px}
 #app .tutorial-step-list{display:flex;flex-direction:column}
 #app .tutorial-step{min-height:72px!important;padding:12px 9px!important}
 #app .workspace-tabs{gap:12px!important;justify-content:space-between}
 #app .workspace-tab{font-size:.78rem!important}
 #app .workspace-content{padding:18px!important}
 #app .nk-stat-grid{grid-template-columns:1fr 1fr}
 #app .nk-verify-head{flex-wrap:wrap}
 #app .nk-result-badge{margin-left:52px}
 #app .nk-history-item-head{flex-wrap:wrap;padding:15px}
 #app .nk-hist-actions{width:100%;justify-content:flex-start}
 #app .nk-history-delivery{padding:14px}
 #app .nk-history-more summary{padding:12px 14px}
 #app .nk-history-details{padding:6px 14px 14px}
 #app .nk-history-tools select{flex:1 1 115px}
 #app .nk-history-count{width:100%}
 #app .nk-help2-tools{align-items:stretch}
 #app .nk-help2-filter{width:100%}
 #app .nk-delivered-item{flex-wrap:wrap}
 #app .nk-delivered-item pre{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
 #app .tutorial-player.is-playing .tutorial-progress-track::after{animation:none}
 #app .tutorial-frame,#app .nk-redeemed,#app .nk-confirm-panel,#app .nk-verify-result{animation:none!important}
}

/* Older global rules give every button a 999px radius; beat those rules ONLY inside the guide. */
#app main .home-landing-page .nk-tutorial-layout button.tutorial-step:not(.userbtn):not(.redeem-clear):not(.workspace-clear):not(.reveal-toggle){
  border-radius:0!important;
  border:0!important;
  border-bottom:1px solid rgba(208,184,239,.14)!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}
#app main .home-landing-page .nk-tutorial-layout button.tutorial-step.active:not(.userbtn):not(.redeem-clear):not(.workspace-clear):not(.reveal-toggle){
  border-radius:0!important;
  background:rgba(183,135,242,.075)!important;
  box-shadow:inset 3px 0 0 #bb94f5!important;
}
#app main .home-landing-page .nk-tutorial-layout button.tutorial-step:hover:not(.userbtn):not(.redeem-clear):not(.workspace-clear):not(.reveal-toggle){
  background:rgba(183,135,242,.04)!important;
}
/* Tight desktop filter bar; global select rules must not turn every filter into a full row. */
@media(min-width:761px){
 #app main .nk-history-tools .nk-history-search{width:auto!important;min-width:210px;max-width:530px;flex:1 1 280px!important}
 #app main .nk-history-tools select{width:auto!important;max-width:190px;flex:0 0 145px!important}
 #app main .nk-history-tools #history-count{flex:0 0 auto;margin-left:auto}
}
