/* Web cigar scanner (/en/scan/) and the "Identified from your photo" strip on cigar pages.
   Uses the web app tokens from app.css; no new look, only the scanner pieces. */
.main > .pad.sc-root, .main > .pad[data-page="cigar-live"] { max-width: 1320px; margin-inline: auto; width: 100%; }
.sc-root[data-device="mobile"] .sc-desk, .sc-root[data-device="desktop"] .sc-mobonly { display: none !important; }
.sc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sc-root label.btn { position: relative; cursor: pointer; }
.sc-root .btn svg { flex: none; }
.sc-h { margin: 8px 0 0; font-size: 18px; font-weight: 700; }

.sc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.sc-drop { position: relative; border-radius: 22px; background: var(--hero); border: 1.5px dashed rgba(226,196,122,.5); padding: 26px; display: flex; flex-direction: column; gap: 16px; min-height: 430px; overflow: hidden; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.sc-drop.over { border-color: var(--gl); box-shadow: 0 0 0 4px rgba(226,196,122,.18) inset; }
.sc-drop.dim { opacity: .45; }
.sc-stage { position: relative; flex: 1; min-height: 230px; display: flex; align-items: center; justify-content: center; }
.sc-stage .corners { position: absolute; inset: 6px 10%; }
.sc-stage .corners i { position: absolute; width: 34px; height: 34px; border-color: rgba(255,255,255,.85); border-style: solid; border-width: 0; }
.sc-stage .corners i:nth-child(1) { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 14px; }
.sc-stage .corners i:nth-child(2) { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 14px; }
.sc-stage .corners i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 14px; }
.sc-stage .corners i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 14px; }
.sc-stage img { width: 72%; max-width: 420px; opacity: .5; transform: rotate(-8deg); filter: drop-shadow(0 18px 18px rgba(0,0,0,.5)); }
.sc-drop h2 { margin: 0; font-size: 24px; font-weight: 700; text-align: center; }
.sc-drop p { margin: 0; text-align: center; color: var(--t2); }
.sc-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sc-row .btn { min-width: 200px; }

.sc-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-tip { border-radius: 16px; overflow: hidden; background: var(--s1); border: 1px solid var(--b1); }
.sc-tip .im { position: relative; height: 110px; overflow: hidden; }
.sc-tip .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-tip .im .mk { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #0A0A0F; }
.sc-tip.ok .mk { background: #7EE2A0; }
.sc-tip.no .mk { background: #F1A6A6; }
.sc-tip .tx { padding: 10px 12px; font-size: 13.5px; line-height: 1.35; }
.sc-tip .tx b { display: block; font-size: 14px; }
.sc-tip .tx span { color: var(--t3); }

.sc-phone { border-radius: 22px; background: var(--s1); border: 1px solid var(--b1); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.sc-phone h2 { margin: 0; font-size: 22px; font-weight: 700; }
.sc-phone .lead { margin: 0; color: var(--t2); font-size: 14.5px; }
.sc-ill { position: relative; height: 230px; border-radius: 18px; background: var(--tile); display: flex; align-items: center; justify-content: flex-start; padding-left: 28px; overflow: hidden; }
.sc-ill .qr { width: 150px; height: 150px; border-radius: 14px; background: #fff; padding: 8px; flex: none; }
.sc-ill .qr svg, .sc-ill .vf svg { display: block; width: 100%; height: 100%; }
.sc-ill .ph { position: absolute; right: 26px; top: 22px; width: 108px; height: 214px; border-radius: 22px; background: #0A0A0F; border: 5px solid #2A2A33; transform: rotate(8deg); box-shadow: 0 18px 30px rgba(0,0,0,.5); overflow: hidden; }
.sc-ill .ph .vf { position: absolute; left: 12px; right: 12px; top: 42px; height: 84px; border-radius: 10px; background: #fff; padding: 6px; }
.sc-ill .ph .vf::after { content: ""; position: absolute; inset: -6px; border: 2px solid #FFD60A; border-radius: 12px; }
.sc-ill .ph .pill { position: absolute; left: 8px; right: 8px; top: 140px; height: 24px; border-radius: 12px; background: #FFD60A; color: #111; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sc-ill .ph .shut { position: absolute; left: 50%; bottom: 10px; width: 30px; height: 30px; margin-left: -15px; border-radius: 15px; border: 3px solid #fff; }
.sc-ill .arrow { position: absolute; left: 180px; top: 114px; width: 70px; height: 2px; background: repeating-linear-gradient(90deg, var(--gl) 0 6px, transparent 6px 11px); }
.sc-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sc-steps li { display: flex; gap: 12px; align-items: flex-start; }
.sc-steps .n { flex: none; width: 30px; height: 30px; border-radius: 15px; background: rgba(201,168,76,.16); color: var(--gl); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sc-steps b { display: block; font-size: 15px; }
.sc-steps span { color: var(--t3); font-size: 13.5px; }
.sc-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px 10px; flex: 1; }
.sc-wait[hidden] { display: none; }
.sc-wait .ok { width: 58px; height: 58px; border-radius: 29px; background: rgba(126,226,160,.14); color: #7EE2A0; display: flex; align-items: center; justify-content: center; }
.sc-wait .ok svg { width: 28px; height: 28px; }
.sc-dots { display: flex; gap: 6px; }
.sc-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--gl); animation: sc-dot 1.2s infinite ease-in-out; }
.sc-dots i:nth-child(2) { animation-delay: .2s; }
.sc-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sc-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.sc-scan { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-photo { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--b1); background: #000; }
.sc-zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.5s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.sc-zoom img { position: absolute; max-width: none; }
.sc-photo .fr { position: absolute; border: 2px solid var(--gl); border-radius: 10px; box-shadow: 0 0 16px rgba(226,196,122,.75); opacity: 0; transform: scale(1.06); transition: opacity .38s ease, transform .38s ease; pointer-events: none; }
.sc-photo .fr.on { opacity: 1; transform: none; }
.sc-photo::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(226,196,122,.18), transparent); animation: sc-sweep 2.2s infinite ease-in-out; pointer-events: none; }
.sc-photo.read::after { display: none; }
@keyframes sc-sweep { 0% { top: -30%; } 100% { top: 100%; } }
.sc-prog { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sc-prog > div { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--t3); }
.sc-prog .d { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--b2); }
.sc-prog .d svg { display: none; }
.sc-prog .done { color: var(--tx); }
.sc-prog .done .d { background: rgba(126,226,160,.16); color: #7EE2A0; border-color: transparent; }
.sc-prog .done .d svg { display: block; }
.sc-prog .now { color: var(--tx); }
.sc-prog .now .d { border-color: var(--gl); border-top-color: transparent; animation: sc-spin .8s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-brand { border-radius: 20px; background: var(--s1); border: 1px solid var(--b1); padding: 18px; }
.sc-brand .eb { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--t3); }
.sc-brand .eb span { letter-spacing: 0; border: 1px solid rgba(201,168,76,.45); color: var(--gl); border-radius: 10px; padding: 2px 8px; font-size: 11px; }
.sc-brand h3 { font-size: 20px; margin: 10px 0 4px; }
.sc-brand .tag2 { font-family: 'Bodoni Moda', Georgia, serif; font-style: italic; color: var(--gl); font-size: 15px; margin: 0 0 10px; }
.sc-brand p { color: var(--t2); font-size: 14.5px; line-height: 1.6; margin: 0; }
.sc-brand p b { color: var(--tx); font-weight: 600; }
.sc-brand .caret { color: var(--gl); }
.sc-more { display: inline-block; margin-top: 12px; color: var(--gl); font-size: 14px; }
.sc-name { margin-top: 16px; }
.sc-name .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--t3); }
.sc-name b { display: block; font-size: 24px; margin-top: 4px; }
.sc-name span { color: var(--t2); }

.sc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sc-opt { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: var(--s1); border: 1px solid var(--b1); color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.sc-opt:hover { border-color: rgba(201,168,76,.45); }
.sc-opt .ph2 { flex: none; width: 76px; height: 56px; border-radius: 12px; background: var(--hero); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc-opt .ph2 img { width: 92%; height: 92%; object-fit: contain; transform: rotate(-14deg); }
.sc-opt .ph2 img.ill { opacity: .55; }
.sc-opt .tx2 { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-opt .tx2 small { color: var(--t3); font-size: 12.5px; }
.sc-opt .tx2 b { font-size: 15px; }
.sc-opt .tx2 span { color: var(--t2); font-size: 13px; }
.sc-opt .best { align-self: flex-start; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--gl); border: 1px solid rgba(201,168,76,.45); border-radius: 9px; padding: 1px 7px; width: max-content; }
.sc-opt.none { justify-content: center; color: var(--t2); border-style: dashed; min-height: 82px; }

.sc-msg { border-radius: 22px; background: var(--s1); border: 1px solid var(--b1); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 640px; }
.sc-msg h2 { margin: 0; font-size: 22px; }
.sc-msg p { margin: 0; color: var(--t2); }
.sc-msg .sc-row { justify-content: flex-start; }
.sc-about { margin-top: 28px; gap: 40px; }
.sc-about .more { color: var(--gl); font-size: 14px; }
.sc-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: sc; }
.sc-how li { counter-increment: sc; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--s1); border: 1px solid var(--b1); }
.sc-how li::before { content: counter(sc); width: 30px; height: 30px; border-radius: 15px; background: rgba(201,168,76,.16); color: var(--gl); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 4px; }
.sc-how b, .sc-facts b { font-size: 16px; }
.sc-how span, .sc-facts span { color: var(--t2); font-size: 14.5px; line-height: 1.55; }
.sc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.sc-facts li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--b1); }
.sc-facts a, .sc-app a:not(.btn), .faq a { color: var(--gl); }
.sc-app { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 22px; border-radius: 22px; background: var(--hero); border: 1px solid rgba(255,255,255,.06); }
.sc-app > div:first-child { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.sc-app p { margin: 0; max-width: 640px; }
.sc-app .sc-row .btn { min-width: 0; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--t2); line-height: 1.6; }

.sc-conn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(126,226,160,.08); border: 1px solid rgba(126,226,160,.35); font-size: 14px; }
.sc-conn[hidden] { display: none; }
.sc-conn .dot { width: 8px; height: 8px; border-radius: 4px; background: #7EE2A0; flex: none; }
.sc-conn.off { background: rgba(241,166,166,.08); border-color: rgba(241,166,166,.35); }
.sc-conn.off .dot { background: #F1A6A6; }

.sc-mob { display: flex; flex-direction: column; gap: 14px; }
.sc-mob .cam { position: relative; height: 300px; border-radius: 22px; background: var(--hero); overflow: hidden; }
.sc-mob .cam .sc-stage { position: absolute; inset: 0; min-height: 0; }
.sc-mob .cam .sc-stage .corners { inset: 24px 14%; }
.sc-mob .btn { width: 100%; min-height: 56px; font-size: 16.5px; border-radius: 28px; }
.sc-root[data-device="mobile"] .sc-tips { gap: 8px; }
.sc-root[data-device="mobile"] .sc-tip .im { height: 74px; }
.sc-root[data-device="mobile"] .sc-tip .tx { padding: 8px; font-size: 12px; }
.sc-root[data-device="mobile"] .sc-tip .tx b { font-size: 12.5px; }
.sc-root[data-device="mobile"] .sc-photo { aspect-ratio: 4 / 3; }
.sc-root[data-device="mobile"] .sc-scan { grid-template-columns: 1fr; }

/* Strip on the catalog page after a scan */
.sc-strip { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(120deg, rgba(201,168,76,.14), rgba(201,168,76,.04)); border: 1px solid rgba(201,168,76,.35); flex-wrap: wrap; }
.sc-strip img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.sc-strip .t { flex: 1; min-width: 180px; }
.sc-strip .t b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.sc-strip .t b svg { color: #7EE2A0; flex: none; }
.sc-strip .t span { color: var(--t2); font-size: 13.5px; }
.sc-strip .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-strip .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

@media (min-width: 1600px) {
  .sc-drop { min-height: 470px; }
  .sc-ill { height: 250px; }
}
@media (max-width: 1320px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-drop { min-height: 340px; }
  .sc-stage { min-height: 170px; }
  .sc-stage img { max-width: 360px; }
  .sc-phone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px 24px; }
  .sc-phone [data-sc-phone-idle] { display: contents; }
  .sc-phone [data-sc-phone-idle] > h2, .sc-phone [data-sc-phone-idle] > .lead { grid-column: 1 / -1; }
  .sc-wait { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sc-scan { grid-template-columns: 1fr; }
  .sc-how, .sc-facts { grid-template-columns: 1fr; }
  .sc-drop { min-height: 360px; }
}
@media (max-width: 640px) {
  .sc-phone { display: flex; }
  .sc-phone [data-sc-phone-idle] { display: flex; }
}
@media (max-width: 520px) {
  .sc-app .sc-row { width: 100%; }
  .sc-app .sc-row .btn { flex: 1; }
  .sc-mob .cam { height: 240px; }
  .sc-strip .acts { width: 100%; }
  .sc-strip .acts .btn { flex: 1; }
  .sc-tips { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-zoom, .sc-photo .fr { transition: none; }
  .sc-photo::after, .sc-dots i, .sc-prog .now .d { animation: none; }
}
