/* Smart Chip Dynamic QR frontend v1.2 */
.scdq-shell{--purple:#7c3aed;max-width:760px;margin:34px auto;padding:0 16px;color:#f8f8fc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.scdq-activation{overflow:hidden;background:radial-gradient(ellipse at 100% 0%,rgba(51,65,85,.48),transparent 38%),linear-gradient(145deg,#1b1b25,#101015 75%);border:1px solid #353540;border-radius:28px;box-shadow:0 28px 80px rgba(0,0,0,.24);color:#f8f8fc}
.scdq-brand{display:flex;align-items:center;gap:13px;padding:22px 26px;background:linear-gradient(105deg,rgba(124,58,237,.13),rgba(14,165,233,.08));border-bottom:1px solid rgba(255,255,255,.08)}
.scdq-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#090a10;border:1px solid #343442;color:#a78bfa;font-size:25px}.scdq-mark svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.scdq-brand>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.scdq-brand strong{font-size:16px;letter-spacing:-.3px}.scdq-brand small{font-size:11px;color:#a5a5b3;letter-spacing:.5px;text-transform:uppercase}.scdq-secure{margin-left:auto;color:#aaa8b8;font-size:11px;white-space:nowrap}
.scdq-main{padding:34px 30px 28px}.scdq-eyebrow{display:flex;align-items:center;gap:8px;color:#a78bfa;font-size:11px;font-weight:800;letter-spacing:1.8px}.scdq-eyebrow span{width:7px;height:7px;border-radius:50%;background:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.15)}
.scdq-main h2{margin:12px 0 8px!important;color:#fff!important;font-size:clamp(28px,5vw,39px)!important;line-height:1.1!important;letter-spacing:-1.3px!important;font-weight:800!important}.scdq-intro{margin:0 0 26px!important;color:#a4a4b1!important;font-size:15px!important;line-height:1.65!important}
.scdq-form{display:flex;flex-direction:column;gap:18px}.scdq-field{display:block;margin:0!important;color:#f1f1f6!important;font-weight:600;font-size:14px}.scdq-field-title{display:flex;align-items:center;gap:10px;margin-bottom:9px}.scdq-field-title em{font-style:normal;color:#898896;font-size:10px;letter-spacing:1px}.scdq-step{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#8150ec;color:#fff;font-size:12px;font-weight:800}
.scdq-field input{display:block;width:100%;box-sizing:border-box;min-height:54px;margin:0;padding:14px 16px;border:1px solid #3a3a45;border-radius:14px;background:#0d0d12;color:#fff;font:inherit;font-size:15px;outline:none;transition:border-color .2s,box-shadow .2s}.scdq-field input:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.16)}.scdq-field input::placeholder{color:#696977}.scdq-help{display:block;margin-top:9px;color:#92929f;font-size:12px;line-height:1.5;font-weight:400}
.scdq-serial-box{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #343440;border-radius:15px;background:rgba(8,8,13,.6)}.scdq-serial-box>div{display:flex;flex-direction:column;gap:5px;min-width:0}.scdq-serial-box small{font-size:10px;color:#92929f;letter-spacing:1.3px;font-weight:800}.scdq-serial-box strong{font-size:14px;letter-spacing:.4px;overflow-wrap:anywhere}.scdq-lock{margin-left:auto;color:#86efac;font-size:20px}
.scdq-section-heading{display:flex;align-items:center;gap:11px;margin:3px 0 -5px}.scdq-section-heading div{display:flex;flex-direction:column;gap:4px}.scdq-section-heading strong{font-size:15px;color:#f7f7fb}.scdq-section-heading small{font-size:12px;color:#9393a0}
.scdq-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.scdq-option{position:relative;display:flex;min-height:112px;box-sizing:border-box;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:15px 16px;border:1px solid #353540;border-radius:16px;background:rgba(11,11,16,.64);cursor:pointer;transition:.18s ease}.scdq-option input{position:absolute;opacity:0;pointer-events:none}.scdq-option>span:not(.scdq-option-icon){font-size:14px;font-weight:750;color:#f3f2f8}.scdq-option small{font-size:11px;color:#92929f}.scdq-option-icon{display:grid;place-items:center;width:30px;height:30px;color:#b9a0ff;font-size:26px;line-height:1}.scdq-option:hover{border-color:#7560a8}.scdq-option.is-selected{border:2px solid #8b5cf6;padding:14px 15px;background:linear-gradient(135deg,rgba(124,58,237,.19),rgba(124,58,237,.07));box-shadow:0 0 0 3px rgba(124,58,237,.08)}.scdq-option-wide{grid-column:1/-1;min-height:86px;flex-direction:row;justify-content:flex-start;align-items:center}.scdq-option-wide small{margin-left:auto}
.scdq-button{display:flex!important;align-items:center;justify-content:center;gap:12px;width:100%;min-height:62px;margin:4px 0 0!important;padding:16px 22px!important;border:0!important;border-radius:999px!important;background:linear-gradient(100deg,#7c3aed,#6d28d9)!important;color:#fff!important;font-size:16px!important;font-weight:800!important;box-shadow:0 12px 30px rgba(109,40,217,.25);cursor:pointer;transition:transform .18s,filter .18s}.scdq-button:hover{filter:brightness(1.08);transform:translateY(-1px)}.scdq-button b{font-size:22px}
.scdq-footnote{margin:0!important;color:#92929f!important;font-size:11px!important;line-height:1.55!important}.scdq-error{margin:14px 0;padding:13px 15px;border:1px solid rgba(248,113,113,.28);border-radius:12px;background:rgba(127,29,29,.2);color:#fecaca;font-size:13px;line-height:1.5}
.scdq-success{padding:24px;border:1px solid rgba(74,222,128,.28);border-radius:18px;background:rgba(20,83,45,.16);text-align:center}.scdq-success h3{margin:8px 0;color:#fff;font-size:22px}.scdq-success p{color:#b9c9bd;font-size:14px;line-height:1.6}.scdq-success input{width:100%;box-sizing:border-box;padding:13px;border:1px solid #3e5948;border-radius:10px;background:#101a14;color:#fff}.scdq-success-icon{display:grid;place-items:center;width:48px;height:48px;margin:auto;border-radius:50%;background:#166534;color:#dcfce7;font-size:26px;font-weight:800}.scdq-bottom-note{text-align:center;color:#858592;font-size:11px;margin:13px 0 0}.scdq-bottom-note strong{color:#b7b4c5}
.scdq-admin .scdq-panel{background:#fff;border:1px solid #dcdcde;padding:18px;margin:18px 0;max-width:900px}.scdq-admin form label{margin-right:14px}.scdq-inline{display:inline-block}.scdq-admin details{margin-bottom:8px}.scdq-admin details input,.scdq-admin details select{margin:5px 0}.scdq-admin-qr{background:#fff;width:124px;min-height:124px;padding:6px;margin:8px 0;display:flex;align-items:center;justify-content:center}.scdq-admin-qr img{max-width:112px}.scdq-admin td{vertical-align:top}
@media(max-width:600px){.scdq-shell{margin:12px auto;padding:0 10px}.scdq-activation{border-radius:21px}.scdq-brand{padding:17px 18px}.scdq-main{padding:27px 18px 22px}.scdq-secure{font-size:0}.scdq-options{gap:8px}.scdq-option{min-height:104px;padding:12px}.scdq-option.is-selected{padding:11px}.scdq-option>span:not(.scdq-option-icon){font-size:13px}.scdq-option small{font-size:10px}.scdq-option-wide{min-height:75px}}

.scdq-stats{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:18px 0}.scdq-stats>div{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:5px}.scdq-stats strong{font-size:25px;color:#1d2327}.scdq-stats span{font-size:12px;color:#646970}.scdq-filter{display:flex;gap:8px;align-items:center;margin:12px 0 16px}.scdq-filter input[type=search]{min-width:260px}@media(max-width:782px){.scdq-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.scdq-filter{flex-wrap:wrap}.scdq-filter input[type=search]{min-width:100%}}

/* Customer account portal */
.scdq-account-gate,.scdq-customer-dashboard{max-width:760px;margin:28px auto;padding:24px;border:1px solid #343440;border-radius:22px;background:linear-gradient(145deg,#1b1b25,#101015);color:#f8f8fc;font-family:Inter,system-ui,sans-serif;box-shadow:0 18px 55px rgba(0,0,0,.16)}
.scdq-account-gate h2,.scdq-account-gate h3,.scdq-customer-dashboard h2,.scdq-customer-dashboard h3{color:#fff}.scdq-account-gate p,.scdq-customer-dashboard p{color:#a4a4b1;line-height:1.6}
.scdq-account-gate .scdq-button{max-width:360px;text-decoration:none}.scdq-customer-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.scdq-customer-heading>div>span{color:#a78bfa;font-size:10px;font-weight:800;letter-spacing:1.5px}.scdq-customer-heading h2{margin:7px 0;font-size:29px}.scdq-customer-heading p{margin:0;font-size:13px}.scdq-customer-heading>a{color:#c4b5fd;text-decoration:none;font-size:13px}
.scdq-customer-card{margin:13px 0;padding:18px;border:1px solid #383844;border-radius:16px;background:#17171f}.scdq-customer-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.scdq-customer-card-top>div{display:flex;flex-direction:column;gap:5px;min-width:0}.scdq-customer-card-top strong{color:#fff;font-size:15px;overflow-wrap:anywhere}.scdq-customer-card-top small{color:#92929f;font-size:11px}.scdq-customer-status{padding:5px 9px;border-radius:30px;background:rgba(34,197,94,.12);color:#86efac;font-size:9px;font-weight:800;letter-spacing:1px}.scdq-customer-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin:15px 0;color:#a3a3af;font-size:11px}
.scdq-customer-edit{border-top:1px solid #343440;padding-top:12px;color:#d8d5e3}.scdq-customer-edit summary{cursor:pointer;color:#c4b5fd;font-size:13px;font-weight:700}.scdq-customer-edit form{display:grid;gap:12px;margin-top:14px}.scdq-customer-edit label{display:grid;gap:6px;color:#c9c7d2;font-size:12px}.scdq-customer-edit input,.scdq-customer-edit select{box-sizing:border-box;width:100%;min-height:45px;padding:10px 12px;border:1px solid #3b3b47;border-radius:10px;background:#0d0d12;color:#fff}.scdq-customer-edit .scdq-button{min-height:48px;font-size:14px!important}.scdq-account-empty{padding:28px 18px;text-align:center;border:1px dashed #484454;border-radius:15px}.scdq-account-empty h3{margin:0 0 8px}.scdq-saved-notice{padding:12px 14px;border:1px solid rgba(74,222,128,.25);border-radius:12px;background:rgba(20,83,45,.18);color:#bbf7d0!important;font-size:13px}
@media(max-width:600px){.scdq-account-gate,.scdq-customer-dashboard{margin:12px 10px;padding:18px}.scdq-customer-heading{flex-direction:column}.scdq-customer-meta{flex-direction:column;gap:7px}}

.scdq-label-tools label{display:inline-flex;flex-direction:column;gap:5px;margin:6px 12px 10px 0;font-weight:600}.scdq-label-tools input{min-width:210px}.scdq-label-tools .button{margin-top:8px}

/* v1.7 inventory panel */
.scdq-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;margin:14px 0}.scdq-inventory-grid>div{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #dcdcde;border-radius:9px;background:#f8f9fa}.scdq-inventory-grid strong{font-size:23px;color:#1d2327}.scdq-inventory-grid span{font-size:12px;color:#646970}.scdq-low-stock{padding:10px 12px;border-left:4px solid #dba617;background:#fcf9e8;color:#5e4b10}.scdq-threshold-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #eee}.scdq-threshold-form label{display:flex;flex-direction:column;gap:5px}.scdq-threshold-form input{max-width:130px}@media(max-width:600px){.scdq-inventory-grid{grid-template-columns:1fr 1fr}}

/* v1.9 analytics */
.scdq-analytics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}
.scdq-analytics-grid>div{background:#f6f7f7;border:1px solid #dcdcde;border-radius:8px;padding:16px}
.scdq-analytics-grid strong{display:block;font-size:24px;line-height:1.3;color:#1d2327}
.scdq-analytics-grid span{display:block;color:#646970;margin-top:4px}
.scdq-analytics h3{margin-top:22px}
.scdq-dest-pill{display:inline-block;padding:6px 10px;margin:3px;border-radius:20px;background:#f0f0f1;border:1px solid #dcdcde}

/* v2.0 customer dashboard */
.scdq-customer-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.scdq-customer-stats>div{padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.scdq-customer-stats strong{display:block;font-size:25px;line-height:1.2;color:#171717}
.scdq-customer-stats span,.scdq-customer-qr-link small{display:block;color:#6b7280;font-size:12px;margin-top:5px}
.scdq-customer-qr-link{padding:10px 12px;background:#f8fafc;border-radius:8px;margin:10px 0;overflow-wrap:anywhere}
.scdq-customer-qr-link a{font-size:12px}
.scdq-dashboard-settings label{display:block;margin:12px 0}
.scdq-dashboard-settings input,.scdq-dashboard-settings textarea{display:block;width:100%;max-width:620px;margin-top:5px}
@media(max-width:640px){.scdq-customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.1 scan history and replacement workflow */
.scdq-scan-history,.scdq-replacement-form{border:1px solid #e5e7eb;border-radius:9px;padding:11px 13px;margin:10px 0;background:#fff}
.scdq-scan-history summary,.scdq-replacement-form summary{cursor:pointer;font-weight:600}
.scdq-scan-history ul{padding-left:20px}
.scdq-scan-history li{margin:7px 0;font-size:13px;color:#4b5563}
.scdq-replacement-form label{display:block;margin:12px 0}
.scdq-replacement-form textarea{display:block;width:100%;max-width:100%;margin-top:5px}
.scdq-pending-request{font-size:13px;color:#92400e;background:#fffbeb;padding:9px 12px;border-radius:8px}
.scdq-replacement-admin{margin:18px 0}
.scdq-replacement-admin form{display:flex;gap:6px;flex-wrap:wrap}

/* v2.3 dashboard additions */
.scdq-customer-scan-filter,.scdq-replacement-history{margin:14px 0;padding:14px 16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.scdq-customer-scan-filter summary,.scdq-replacement-history summary{cursor:pointer;font-weight:700}
.scdq-customer-scan-filter form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:12px}
.scdq-customer-scan-filter label{display:grid;gap:5px;font-size:13px}
.scdq-replacement-history ul{padding-left:18px}
.scdq-replacement-line{font-size:13px;color:#555}

/* v2.4 activation-code handling */
.scdq-created-secret{padding:14px 18px!important;border-left-color:#16834b!important;background:#f0fff7!important}
.scdq-created-secret p{margin:8px 0}
.scdq-created-secret .scdq-secret-code{display:inline-block;font-size:16px;letter-spacing:1.5px;padding:7px 11px;background:#fff;border:1px solid #b7e2ca;border-radius:6px;color:#125d36}
.scdq-created-secret .scdq-copy-code{margin-left:8px}
.scdq-inline{margin:6px 0}
.scdq-inline .button{white-space:nowrap}
