/* =========================================
   MaxManScents – Tools (shared styles)
   ========================================= */

.tool-hero { padding: calc(var(--nav-height) + 56px) 0 8px; text-align: center; }
.tool-hero .breadcrumb { justify-content: center; padding-top: 0; margin-bottom: 18px; }
.tool-hero .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.tool-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 16px; }
.tool-hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto; line-height: 1.6; }

.tool-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.tool-section { padding: 40px 0 80px; }

.tool-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.tool-field { margin-bottom: 22px; }
.tool-field:last-child { margin-bottom: 0; }
.tool-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.tool-field .hint { font-weight: 400; color: var(--gray); }
.tool-field input, .tool-field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text); -webkit-appearance: none; appearance: none;
}
.tool-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.tool-field input:focus, .tool-field select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(99,65,238,.12); }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.tool-result { margin-top: 28px; padding: 30px 24px; background: var(--bg-soft); border-radius: 16px; text-align: center; }
.tool-result-value { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--yellow); line-height: 1.05; }
.tool-result-label { font-size: 14px; color: var(--text-secondary); margin-top: 10px; line-height: 1.5; }
.tool-result-sub { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.tool-stat { background: #fff; border-radius: 12px; padding: 14px 18px; min-width: 110px; }
.tool-stat b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.tool-stat span { font-size: 12px; color: var(--text-secondary); }
.tool-note { font-size: 13px; color: var(--gray); margin-top: 18px; line-height: 1.6; text-align: center; }

/* Reset / add-row buttons */
.tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-family: inherit; transition: border-color .2s, background .2s; }
.tool-btn:hover { border-color: var(--yellow); }
.tool-btn-primary { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.tool-btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

/* Collection-value dynamic rows */
.tool-list-row { display: grid; grid-template-columns: 1fr 140px 44px; gap: 12px; margin-bottom: 12px; align-items: center; }
.tool-list-row4 { grid-template-columns: 1fr 112px 112px 40px; gap: 10px; }
.tool-list-row button { border: 0; background: none; color: var(--gray); cursor: pointer; font-size: 20px; line-height: 1; padding: 8px; border-radius: 8px; }
.tool-list-row button:hover { color: var(--yellow); background: var(--bg-soft); }

/* Content tables (guides) */
.tool-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-table th, .tool-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tool-table th { font-weight: 700; color: var(--text); background: var(--bg-soft); }
.tool-table td { color: var(--text-secondary); }
.tool-table tr:last-child td { border-bottom: 0; }
.tool-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }

/* Guide steps / tips */
.tool-tips { display: grid; gap: 16px; }
.tool-tip { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; }
.tool-tip h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.tool-tip p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* App CTA band on tool pages */
.tool-cta { background: var(--black); border-radius: 24px; padding: 40px; text-align: center; color: #fff; }
.tool-cta h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; color: #fff; }
.tool-cta p { font-size: 15px; color: rgba(255,255,255,.65); margin: 0 auto 26px; max-width: 460px; }

/* ===== Tools hub grid ===== */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tool-tile:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-tile-ico { width: 28px; height: 28px; color: var(--yellow); margin-bottom: 16px; }
.tool-tile h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.3; }
.tool-tile p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; flex: 1; }
.tool-tile-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-light); margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tool-row, .tool-row-3 { grid-template-columns: 1fr; }
  .tool-card { padding: 28px; }
}
@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-list-row { grid-template-columns: 1fr 100px 40px; }
  .tool-list-row4 { grid-template-columns: 1fr 1fr 40px; }
  .tool-list-row4 .rn { grid-column: 1 / -1; }
}

/* Pills, sliders & results grid (bottle calculator) */
.pill-group { display:flex; flex-wrap:wrap; gap:6px; }
.pill-group button { background:transparent; border:0; color:var(--gray-light); padding:9px 18px; border-radius:100px; font-weight:600; font-size:15px; cursor:pointer; font-family:inherit; transition:background .15s,color .15s; }
.pill-group button:hover { color:var(--text); }
.pill-group button.active { background:var(--bg-soft); color:var(--text); }
.tool-slider-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:2px; }
.tool-slider-head b { font-size:1.15rem; font-weight:800; color:var(--text); }
input[type=range] { -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:100px; background:var(--bg-soft); outline:none; margin:10px 0 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:26px; height:26px; border-radius:50%; background:#fff; border:1px solid var(--border); box-shadow:0 2px 7px rgba(0,0,0,.2); cursor:pointer; }
input[type=range]::-moz-range-thumb { width:26px; height:26px; border-radius:50%; background:#fff; border:1px solid var(--border); box-shadow:0 2px 7px rgba(0,0,0,.2); cursor:pointer; }
.tool-results-grid { display:grid; grid-template-columns:1fr 1fr; gap:26px 20px; margin-top:26px; padding-top:26px; border-top:1px solid var(--border); }
.tool-results-grid .lbl { font-size:14px; color:var(--text-secondary); margin-bottom:8px; }
.tool-results-grid .val { font-size:2rem; font-weight:800; letter-spacing:-.02em; color:var(--text); line-height:1; }
.tool-results-grid .sub { font-size:13px; color:var(--text-secondary); margin-top:4px; }

/* Dynamic rows (collection value) — match the standard input look */
.tool-list-row input { width:100%; padding:13px 15px; border:1.5px solid var(--border); border-radius:12px; font-size:16px; font-family:inherit; background:#fff; color:var(--text); }
.tool-list-row input:focus { outline:none; border-color:var(--yellow); box-shadow:0 0 0 3px rgba(99,65,238,.12); }
.tool-list-row input[type=number] { -moz-appearance:textfield; }
.tool-list-row select { width:100%; padding:13px 40px 13px 15px; border:1.5px solid var(--border); border-radius:12px; font-size:16px; font-family:inherit; color:var(--text); cursor:pointer; -webkit-appearance:none; -moz-appearance:none; appearance:none; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.tool-list-row select:focus { outline:none; border-color:var(--yellow); box-shadow:0 0 0 3px rgba(99,65,238,.12); }
.tool-list-row input[type=number]::-webkit-outer-spin-button,
.tool-list-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* ===== Guide / article pages ===== */
.guide-hero { padding: calc(var(--nav-height) + 52px) 0 6px; }
.guide-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.guide-cat { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin: 14px 0; }
.guide-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 18px; }
.guide-lead { font-size: 1.18rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.guide-body { padding: 36px 0 70px; }
.guide-prose { font-size: 1.05rem; line-height: 1.8; }
.guide-prose h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 42px 0 14px; color: var(--text); }
.guide-prose h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.guide-prose p { margin: 0 0 18px; color: var(--text-secondary); }
.guide-prose strong { color: var(--text); font-weight: 700; }
.guide-prose ul, .guide-prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-secondary); }
.guide-prose li { margin-bottom: 9px; line-height: 1.7; }
.guide-prose a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
.guide-callout { background: var(--bg-soft); border-left: 3px solid var(--yellow); border-radius: 12px; padding: 20px 24px; margin: 30px 0; font-size: 1rem; line-height: 1.7; color: var(--text); }
.guide-related { margin: 44px 0 0; }
.guide-related h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.guide-related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.guide-related a:last-child { border-bottom: 1px solid var(--border); }
.guide-related a:hover { color: var(--yellow); }
.guide-related svg { flex-shrink: 0; color: var(--gray-light); }
/* Guide hub */
.guide-group { margin-bottom: 48px; }
.guide-group > h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guide-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.guide-card:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.guide-card h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.35; }
.guide-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
@media (max-width: 680px) { .guide-cards { grid-template-columns: 1fr; } }

/* Guide figure (pulse-point diagram, etc.) */
.guide-figure { margin: 8px auto 30px; max-width: 440px; text-align: center; }
.guide-figure svg { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.guide-figure-legend { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; text-align: left; }
.guide-figure-legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); font-weight: 500; }
.guide-figure-legend li span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guide-figure figcaption { font-size: 13px; color: var(--gray); margin-top: 18px; line-height: 1.5; }
@media (max-width: 420px) { .guide-figure-legend { grid-template-columns: 1fr; } }

/* Full-body pulse-point infographic */
.guide-figure-body { max-width: 520px; }
.guide-figure-body svg { max-width: 520px; }

/* ===== Downloadable resources (print-optimized) ===== */
.res-section { padding: 10px 0 70px; }
.res-actions { max-width: 820px; margin: 0 auto 10px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.res-pdf-hint { max-width: 820px; margin: 0 auto 26px; text-align: center; font-size: 12.5px; color: var(--text-secondary); }
.res-pdf-hint b { color: var(--text); font-weight: 700; }
.res-sheet { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.res-sheet-inner { padding: 40px; }
.res-sheet-head { text-align: center; margin-bottom: 26px; }
.res-sheet-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.res-sheet-head p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.res-legend { font-size: 12px; color: var(--text-secondary); margin: 0 0 14px; }
.res-brand { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-light); text-align: center; margin-top: 22px; }
.res-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.res-table th, .res-table td { border: 1px solid #d9d9df; padding: 8px 10px; text-align: left; }
.res-table th { background: var(--bg-soft); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.res-table td { height: 28px; color: var(--text-secondary); }
.res-field { border-bottom: 1px solid #c9c9d1; min-height: 26px; }
.res-form-row { display: grid; grid-template-columns: 150px 1fr; gap: 0 14px; align-items: end; margin-bottom: 16px; }
.res-form-row label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text); padding-bottom: 4px; }
.res-scale { display: flex; gap: 5px; }
.res-scale span { width: 20px; height: 20px; border: 1px solid #c9c9d1; border-radius: 4px; }
.res-lines { border-bottom: 1px solid #d9d9df; height: 26px; }
.res-check { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid #ededf1; }
.res-check i { flex-shrink: 0; width: 17px; height: 17px; border: 1.6px solid var(--gray); border-radius: 4px; margin-top: 1px; }
.res-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); margin: 22px 0 8px; }
.res-cal { width: 100%; border-collapse: collapse; }
.res-cal th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); padding: 7px; font-weight: 700; }
.res-cal td { border: 1px solid #d9d9df; height: 74px; vertical-align: top; padding: 6px 7px; font-size: 11px; color: var(--gray-light); }
.res-conc-row { display: grid; grid-template-columns: 150px 1fr 86px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #ededf1; }
.res-conc-row b { font-size: 14px; }
.res-conc-row small { display: block; color: var(--text-secondary); font-weight: 400; font-size: 12px; }
.res-bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--yellow), #a98bff); }
.res-conc-time { font-size: 12px; color: var(--text-secondary); text-align: right; }

.res-editnote { font-size: 12.5px; color: var(--text-secondary); background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 20px; line-height: 1.5; }
.res-editnote b { color: var(--text); font-weight: 700; }
.res-chk-group { margin-bottom: 4px; }
.res-add { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 4px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--yellow); background: none; border: 1.5px dashed var(--border); border-radius: 9px; cursor: pointer; transition: border-color .15s, background .15s; font-family: inherit; }
.res-add:hover { border-color: var(--yellow); background: var(--bg-soft); }
.res-group-title[contenteditable="true"] { cursor: text; }

@media print {
  .nav, .mobile-menu, .footer, .res-hero, .res-howto, .tool-cta, .res-actions, .res-pdf-hint, .qr-widget, .custom-app-banner, .res-editnote, .res-add { display: none !important; }
  body { background: #fff !important; }
  main { padding: 0 !important; }
  .res-section { padding: 0 !important; }
  .res-sheet { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; max-width: 100% !important; }
  .res-sheet-inner { padding: 0 !important; }
  @page { margin: 13mm; }
}

/* Resource hub tiles reuse .tools-grid / .tool-tile */

/* Editable sheet fields */
[contenteditable="true"]:focus { outline: 2px solid var(--yellow); outline-offset: -2px; border-radius: 3px; }
.res-table td[contenteditable="true"], .res-cal td[contenteditable="true"], .res-field[contenteditable="true"], .res-lines[contenteditable="true"] { cursor: text; }
.res-check { cursor: pointer; }
.res-check input[type="checkbox"] { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--yellow); flex-shrink: 0; cursor: pointer; }
.res-scale span { cursor: pointer; }
.res-scale span.on { background: var(--yellow); border-color: var(--yellow); }
/* Logo on the printable */
.res-logo { height: 26px; width: auto; display: block; margin: 0 auto 16px; }
/* App-promo modal */
.res-modal { position: fixed; inset: 0; background: rgba(12,8,24,.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.res-modal[hidden] { display: none; }
.res-modal-card { background: #fff; border-radius: 24px; max-width: 400px; width: 100%; padding: 38px 32px 30px; text-align: center; position: relative; box-shadow: var(--shadow-lg); }
.res-modal-x { position: absolute; top: 12px; right: 15px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--gray); cursor: pointer; }
.res-modal-card .appicon { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 16px; display: block; box-shadow: var(--shadow); }
.res-modal-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.res-modal-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 22px; }
.res-modal-card .btn { width: 100%; justify-content: center; }
.res-modal-secondary { display: inline-block; margin-top: 15px; font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.res-modal-secondary:hover { color: var(--text); }
@media print { .res-modal { display: none !important; } }

/* Printable footer: logo left, website right */
.res-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid #ededf1; }
.res-foot img { height: 22px; width: auto; display: block; }
.res-foot span { font-size: 12px; letter-spacing: .06em; color: var(--gray-light); }

/* App image in the promo modal */
.res-modal-card { padding: 0 !important; overflow: hidden; }
.res-modal-img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.res-modal-body { padding: 26px 32px 30px; }
.res-modal-x { top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 2; }

/* oz alongside ml */
.pill-group button b { display:block; font-weight:700; }
.pill-group button small { display:block; font-size:11px; font-weight:600; opacity:.6; margin-top:1px; }
.oz-hint { display:block; font-size:12px; color:var(--gray); margin-top:6px; min-height:16px; }
.unit-toggle { display:inline-flex; background:var(--bg-soft); border:1px solid var(--border); border-radius:9px; padding:2px; gap:2px; }
.unit-toggle button { border:0; background:none; font:inherit; font-size:13px; font-weight:600; color:var(--text-secondary); padding:5px 14px; border-radius:7px; cursor:pointer; line-height:1.2; transition:background .15s, color .15s; }
.unit-toggle button.active { background:var(--yellow); color:#fff; }

/* ===== Section 5 "unusual" tools ===== */
.viz-fam { display:flex; align-items:center; gap:12px; margin:9px 0; }
.viz-fam-label { width:104px; font-size:13px; font-weight:600; color:var(--text); flex-shrink:0; }
.viz-fam-track { flex:1; background:var(--bg-soft); border-radius:6px; height:22px; overflow:hidden; }
.viz-fam-fill { display:block; height:100%; background:linear-gradient(90deg,var(--yellow),#a98bff); border-radius:6px; transition:width .3s; min-width:2px; }
.viz-fam-n { width:30px; text-align:right; font-weight:700; font-size:13px; color:var(--text); flex-shrink:0; }
.share-card { background:linear-gradient(135deg,#6341EE 0%,#9a7bff 100%); color:#fff; border-radius:20px; padding:34px 30px; text-align:center; box-shadow:var(--shadow-lg); }
.share-card h3 { color:#fff; font-size:1.35rem; font-weight:800; letter-spacing:-.02em; margin:0 0 4px; }
.share-card .share-sub { color:rgba(255,255,255,.82); font-size:13px; margin:0 0 24px; }
.share-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.share-stat { background:rgba(255,255,255,.12); border-radius:13px; padding:16px 12px; }
.share-stat b { display:block; font-size:1.7rem; font-weight:800; letter-spacing:-.02em; line-height:1.1; color:#fff; }
.share-stat span { display:block; font-size:11.5px; color:rgba(255,255,255,.8); margin-top:4px; text-transform:uppercase; letter-spacing:.04em; }
.share-hero { font-size:2.6rem; font-weight:900; letter-spacing:-.03em; margin:6px 0 2px; color:#fff; }
.share-foot { font-size:12px; color:rgba(255,255,255,.75); margin:22px 0 0; }
.share-foot-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:26px 0 0; }
.share-foot-logo { height:26px; width:auto; display:block; }
.share-foot-url { font-size:13px; font-weight:600; color:rgba(255,255,255,.9); letter-spacing:.01em; }
.share-dl-wrap { text-align:center; margin-top:18px; }
.share-dl-wrap .tool-btn { padding:13px 26px; font-size:15px; }
.share-tip { text-align:center; font-size:12.5px; color:var(--text-secondary); margin:14px 0 0; }
.pick-big { font-size:clamp(1.6rem,5vw,2.3rem); font-weight:800; letter-spacing:-.02em; color:var(--text); line-height:1.2; min-height:1.2em; }
.shelf-plan { display:flex; flex-direction:column; gap:10px; }
.shelf-row { background:var(--bg-soft); border:1px solid var(--border); border-radius:10px; padding:12px; display:flex; gap:7px; flex-wrap:wrap; align-items:flex-end; min-height:52px; }
.shelf-slot { width:22px; height:36px; background:linear-gradient(180deg,#a98bff,var(--yellow)); border-radius:4px 4px 2px 2px; }
.shelf-label { font-size:11px; font-weight:700; color:var(--text-secondary); text-transform:uppercase; letter-spacing:.04em; width:100%; margin-bottom:2px; }

/* ---- Shareable social card popup ---- */
.sc-modal { position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:20px; }
.sc-modal.open { display:flex; }
.sc-backdrop { position:absolute; inset:0; background:rgba(20,18,40,.55); backdrop-filter:blur(3px); }
.sc-panel { position:relative; background:#fff; border-radius:20px; max-width:430px; width:100%; max-height:92vh; overflow:auto; padding:22px; box-shadow:var(--shadow-lg); }
.sc-close { position:absolute; top:12px; right:12px; border:0; background:var(--bg-soft); width:34px; height:34px; border-radius:50%; font-size:15px; cursor:pointer; color:var(--text); line-height:1; }
.sc-close:hover { background:var(--border); }
.sc-title { margin:0 0 14px; font-size:19px; font-weight:700; }
.sc-preview { display:flex; justify-content:center; background:var(--bg-soft); border-radius:14px; padding:14px; }
.sc-canvas { max-width:100%; max-height:50vh; width:auto; height:auto; border-radius:10px; box-shadow:var(--shadow); }
.sc-row-label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-secondary); margin:16px 0 8px; }
.sc-formats { display:flex; gap:8px; }
.sc-fmt { flex:1; border:1.5px solid var(--border); background:#fff; border-radius:10px; padding:9px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; color:var(--text); }
.sc-fmt.active { border-color:var(--yellow); background:rgba(99,65,238,.08); color:var(--yellow-dark); }
.sc-swatches { display:flex; gap:10px; flex-wrap:wrap; }
.sc-swatch { width:40px; height:40px; border-radius:10px; border:2px solid transparent; cursor:pointer; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.sc-swatch.active { border-color:var(--text); }
.sc-actions { margin-top:18px; }
.sc-dl { width:100%; justify-content:center; }

/* ---- Curated collection pages ---- */
.fc-video { position:relative; max-width:760px; margin:0 auto; border-radius:18px; overflow:hidden; box-shadow:var(--shadow-lg); background:#000; }
.fc-video::before { content:""; display:block; padding-top:56.25%; }
.fc-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.fc-intro { max-width:720px; margin:26px auto 0; text-align:center; color:var(--text-secondary); font-size:17px; line-height:1.65; }
.fc-count { text-align:center; margin:44px 0 0; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--yellow); }
.fc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; margin-top:22px; }
.fc-card { background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s, transform .2s; }
.fc-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.fc-thumb { position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; background:var(--bg-soft); padding:16px; }
.fc-thumb img { max-width:100%; max-height:100%; object-fit:contain; }
.fc-ph { width:100%; height:100%; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; text-align:center; padding:14px; }
.fc-ph .fc-ph-brand { font-size:11px; letter-spacing:.08em; text-transform:uppercase; opacity:.85; font-weight:700; margin-bottom:9px; }
.fc-ph b { font-size:22px; font-weight:800; line-height:1.18; }
.fc-rank { position:absolute; top:10px; left:10px; min-width:30px; height:30px; padding:0 6px; border-radius:16px; background:var(--yellow); color:#fff; font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.fc-body { padding:14px 16px 18px; }
.fc-brand { font-size:12.5px; color:var(--gray-light); margin-bottom:3px; font-weight:600; }
.fc-name { font-size:15.5px; font-weight:700; line-height:1.3; color:var(--text); }
.fc-fam { display:inline-block; margin-top:10px; font-size:12px; font-weight:600; color:var(--text-secondary); background:var(--bg-soft); border-radius:20px; padding:3px 11px; }
.fc-note { max-width:720px; margin:34px auto 0; text-align:center; font-size:13.5px; color:var(--gray-light); }
/* collection index cards */
.fc-hub-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:22px; margin-top:28px; }
.fc-hub-card { display:block; background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; transition:box-shadow .2s, transform .2s; }
.fc-hub-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.fc-hub-thumb { position:relative; aspect-ratio:16/9; background:#000; }
.fc-hub-thumb img { width:100%; height:100%; object-fit:cover; }
.fc-hub-play { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.fc-hub-play span { width:56px; height:56px; border-radius:50%; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; }
.fc-hub-body { padding:16px 18px 20px; }
.fc-hub-body h3 { margin:0 0 6px; font-size:17px; }
.fc-hub-body p { margin:0; font-size:13.5px; color:var(--text-secondary); }
@media (max-width:560px){ .fc-grid { grid-template-columns:1fr 1fr; gap:12px; } .fc-ph b{font-size:22px;} }

/* ---- Video facade (click-to-play, avoids embed config errors) ---- */
.fc-video { cursor:pointer; }
.fc-video-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.fc-video-play { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); width:auto; height:auto; border:0; background:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s; }
.fc-video-play svg { width:80px; height:80px; margin:0; filter:drop-shadow(0 4px 16px rgba(0,0,0,.45)); }
.fc-video:hover .fc-video-play, .fc-video:focus-within .fc-video-play { transform:translate(-50%,-50%) scale(1.08); }
.fc-video-play svg { margin-left:5px; }
.fc-watch { display:block; text-align:center; margin:14px auto 40px; font-size:13.5px; font-weight:600; color:var(--text-secondary); }
.fc-watch a { color:var(--yellow-dark); }

/* ---- Collection post byline + app banner ---- */
.fc-byline { font-size:13.5px; color:var(--gray-light); margin-top:10px; }
.fc-byline strong { color:var(--text-secondary); font-weight:700; }
.fc-banner { margin:44px auto 0; max-width:900px; background:radial-gradient(130% 130% at 80% 0%, #2d1f66 0%, #17142f 48%, #0c0b18 100%); border-radius:24px; overflow:hidden; text-align:center; padding:42px 24px 0; box-shadow:var(--shadow-lg); }
.fc-banner h2 { color:#fff; font-size:27px; margin:0 0 12px; line-height:1.2; }
.fc-banner p { color:rgba(255,255,255,.82); font-size:15px; line-height:1.6; margin:0 auto 22px; max-width:520px; }
.fc-banner .btn { background:#fff; color:#15132b; }
.fc-banner .btn:hover { background:#ece9ff; }
.fc-banner-img { width:100%; max-width:760px; margin:28px auto 0; display:block; }
@media (max-width:560px){ .fc-banner { padding:34px 18px 0; } .fc-banner h2 { font-size:22px; } }

/* ---- Collection listicle items (blog-post style) ---- */
.col-item { display:flex; gap:22px; align-items:center; margin:26px 0; padding:20px; border:1px solid var(--border); border-radius:18px; background:#fff; }
.col-item-shot { flex:0 0 132px; width:132px; height:132px; border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--bg-soft); }
.col-item-shot img { max-width:100%; max-height:100%; object-fit:contain; }
.col-item-ph { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; text-align:center; padding:10px; }
.col-item-ph .b1 { font-size:10.5px; opacity:.85; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.col-item-ph .b2 { font-size:15px; font-weight:800; margin-top:5px; line-height:1.2; }
.col-item-body { flex:1; min-width:0; }
.col-item-body h3 { margin:0 0 6px; font-size:19px; line-height:1.25; }
.col-item-body h3 .num { color:var(--yellow); }
.col-fam { display:inline-block; font-size:12px; font-weight:600; color:var(--text-secondary); background:var(--bg-soft); border-radius:20px; padding:3px 11px; margin-bottom:9px; }
.col-item-body p { margin:0; color:var(--text-secondary); font-size:15px; line-height:1.6; }
@media (max-width:560px){ .col-item { flex-direction:column; text-align:center; padding:18px; } .col-item-shot { flex-basis:auto; } .col-fam { margin-left:auto; margin-right:auto; } }

/* ---- Collection newsletter form ---- */
.nl-form { display:flex; gap:10px; max-width:440px; margin:24px auto 0; }
.nl-form input { flex:1; padding:13px 16px; border:1.5px solid var(--border); border-radius:12px; font:inherit; font-size:15px; background:#fff; color:var(--text); }
.nl-form input:focus { outline:none; border-color:var(--yellow); box-shadow:0 0 0 3px rgba(99,65,238,.12); }
.nl-form button { padding:13px 22px; border:0; border-radius:12px; background:var(--yellow); color:#fff; font:inherit; font-weight:700; font-size:15px; cursor:pointer; white-space:nowrap; }
.nl-form button:hover { background:var(--yellow-dark); }
@media (max-width:480px){ .nl-form { flex-direction:column; } }

/* ---- Related articles (ported from blog inline styles for collection pages) ---- */
.related-section { background: #000; padding: 72px 0 80px; margin-top: 80px; }
.related-section .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.related-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; text-decoration: none; }
.related-eyebrow:hover { color: rgba(255,255,255,.75); }
.related-heading { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; color: #fff; letter-spacing: -.03em; margin-bottom: 48px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.related-card { display: flex; align-items: center; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); text-decoration: none; color: inherit; transition: opacity .2s; }
.related-card:hover { opacity: .7; }
.related-card:nth-child(odd) { padding-right: 40px; border-right: 1px solid rgba(255,255,255,.1); }
.related-card:nth-child(even) { padding-left: 40px; }
.related-card-thumb { width: 120px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.related-card-body { flex: 1; min-width: 0; }
.related-card-meta { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 8px; }
.related-card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #fff; }
@media (max-width: 680px) { .related-grid { grid-template-columns: 1fr; } .related-card:nth-child(odd) { padding-right: 0; border-right: none; } .related-card:nth-child(even) { padding-left: 0; } }

/* ---- Inviting newsletter card ---- */
.nl-card { background: linear-gradient(135deg, #f1edff 0%, #faf9ff 60%, #fff 100%); border:1px solid #e7e1ff; border-radius:24px; padding:44px 32px; text-align:center; box-shadow:0 14px 44px rgba(99,65,238,.10); }
.nl-icon { width:58px; height:58px; border-radius:50%; background:linear-gradient(135deg,var(--yellow),#9b6dff); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; box-shadow:0 6px 18px rgba(99,65,238,.32); }
.nl-card h2 { margin:0 0 8px; font-size:25px; }
.nl-card > p { color:var(--text-secondary); font-size:15px; line-height:1.55; margin:0 auto; max-width:430px; }
.nl-fine { font-size:12px; color:var(--gray-light); margin-top:14px; }

/* ---- Collection as a written article (no boxes) ---- */
.prose .col-brand { font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--yellow-dark); margin:36px 0 2px; }
.prose .col-h { margin:0 0 12px; font-size:21px; line-height:1.3; }
.prose .col-entry { padding-top:34px; padding-bottom:34px; }
.prose .col-entry + .col-entry { border-top:1px solid var(--border); }
.prose .col-entry .col-brand { margin-top:0; }
.prose .col-entry > p:last-child { margin-bottom:0; }
.prose img.col-shot { float:right; width:124px; height:124px; object-fit:contain; margin:4px 0 14px 24px; background:var(--bg-soft); border-radius:14px; padding:10px; }
@media (max-width:560px){ .prose img.col-shot { float:none; display:block; margin:0 auto 14px; } }

/* ---- QR divider banner ---- */
.qr-banner { position:relative; overflow:hidden; box-sizing:border-box; width:auto; margin:52px 0; padding:52px 30px; background:#1a1430; border-radius:22px; text-align:center; color:#fff; clear:both; box-shadow:0 18px 44px rgba(23,20,47,.3); }
.qr-banner::before { content:""; position:absolute; inset:0; z-index:0; background-image:linear-gradient(135deg, rgba(13,10,28,.68) 0%, rgba(32,21,70,.62) 100%), url('../images/maxmanscents-fragrance-app-iphone.jpg'); background-size:cover; background-position:center 30%; }
.qr-banner > * { position:relative; z-index:1; }
@media (min-width:920px){ .qr-banner { margin-left:-72px; margin-right:-72px; } }
.qr-code { box-sizing:border-box; width:168px; height:168px; margin:0 auto 20px; background:#fff; border-radius:18px; padding:14px; box-shadow:0 10px 30px rgba(0,0,0,.34); }
.qr-code img, .qr-code svg { width:100%; height:100%; display:block; object-fit:contain; }
.qr-banner h3 { color:#fff !important; margin:0 0 8px; font-size:22px; }
.qr-banner p { color:rgba(255,255,255,.85) !important; margin:0 auto; font-size:15px; line-height:1.55; max-width:380px; }
/* App Store CTA (mobile): a QR is useless on the phone you'd scan it with */
.qr-cta { display:none; align-items:center; justify-content:center; gap:9px; margin:20px auto 0; padding:15px 26px; background:#fff; color:#15132b !important; border-radius:100px; font-weight:700; font-size:15px; text-decoration:none !important; box-shadow:0 8px 24px rgba(0,0,0,.28); }
.qr-cta svg { flex:0 0 auto; }
.qr-mobile-only { display:none; }
@media (max-width:600px){
  .qr-banner { margin:36px 0; padding:38px 24px; }
  .qr-only { display:none !important; }
  h3.qr-mobile-only { display:block; }
  p.qr-mobile-only { display:block; }
  a.qr-cta.qr-mobile-only { display:inline-flex; }
}

/* ===== Collection: dark "Never miss an update" newsletter ===== */
.col-updates { background:#000; color:#fff; padding:40px 0 96px; margin-top:0; }
.col-updates .col-updates-inner { text-align:center; max-width:720px; margin:0 auto; }
.col-updates h2 { color:#fff; font-size:clamp(1.6rem,3vw,2.3rem); font-weight:700; letter-spacing:-.02em; margin:0; }
.col-updates p.sub { color:rgba(255,255,255,.5); font-size:1.1rem; line-height:1.6; margin:16px auto 0; max-width:600px; }
.col-updates .updates-form { display:flex; gap:8px; max-width:480px; margin:32px auto 0; }
.col-updates .updates-form input { flex:1; padding:14px 20px; border-radius:100px; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.07); color:#fff; font-size:15px; outline:none; font-family:inherit; }
.col-updates .updates-form input::placeholder { color:rgba(255,255,255,.35); }
.col-updates .updates-form input:focus { border-color:rgba(255,255,255,.35); }
.col-updates .updates-form button { padding:14px 28px; border-radius:100px; background:#fff; color:#000; font-weight:700; font-size:15px; border:none; cursor:pointer; white-space:nowrap; font-family:inherit; transition:background .15s; }
.col-updates .updates-form button:hover { background:#e8e8e8; }
.col-updates .form-msg { color:rgba(255,255,255,.7); margin-top:14px; font-size:14px; }
@media (max-width:560px){ .col-updates .updates-form { flex-direction:column; } }

/* ---- Card generator: live dual-size premium cards ---- */
.cardgen-preview { margin-top:26px; }
.cardgen-swatches { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:0 0 24px; }
.cardgen-swatch { width:34px; height:34px; border-radius:10px; border:2px solid transparent; cursor:pointer; padding:0; box-shadow:0 2px 6px rgba(0,0,0,.14); transition:transform .12s ease, box-shadow .12s ease; }
.cardgen-swatch:hover { transform:translateY(-2px); }
.cardgen-swatch.active { border-color:#fff; box-shadow:0 0 0 2px var(--yellow); }
.cardgen-cards { display:flex; gap:24px; justify-content:center; align-items:flex-start; flex-wrap:wrap; }
.cardgen-card { margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; }
.cardgen-canvas { height:440px; width:auto; max-width:100%; border-radius:20px; display:block; box-shadow:0 18px 44px rgba(23,20,47,.34); }
.cardgen-card figcaption { font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--text-secondary); }
.cardgen-dl { width:auto; padding-left:28px; padding-right:28px; }
@media (max-width:600px){
  .cardgen-canvas { height:auto; width:100%; max-width:300px; }
  .cardgen-cards { gap:34px; }
}

/* ---- Card generator: app-promo popup after download ---- */
.promo-modal { position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; padding:20px; }
.promo-modal[hidden] { display:none; }
.promo-backdrop { position:absolute; inset:0; background:rgba(12,10,28,.55); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.promo-panel { position:relative; width:100%; max-width:380px; background:#fff; border-radius:24px; padding:40px 32px 36px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.4); }
.promo-close { position:absolute; top:14px; right:16px; width:36px; height:36px; border:none; border-radius:50%; background:var(--bg-soft); color:var(--text); font-size:20px; line-height:1; cursor:pointer; }
.promo-close:hover { background:var(--border); }
.promo-panel h3 { margin:0 0 10px; font-size:22px; }
.promo-sub { margin:0 0 26px; color:var(--text-secondary); font-size:15px; line-height:1.55; }
.promo-qr { display:flex; flex-direction:column; align-items:center; gap:14px; }
.promo-qr img { width:168px; height:168px; border:1px solid var(--border); border-radius:18px; padding:12px; background:#fff; }
.promo-qr span { font-size:13px; font-weight:600; color:var(--text-secondary); }
.promo-cta { display:none; align-items:center; justify-content:center; gap:9px; margin:4px auto 0; padding:16px 26px; background:#111; color:#fff !important; border-radius:100px; font-weight:700; font-size:15px; text-decoration:none !important; }
@media (max-width:600px){
  .promo-qr { display:none; }
  .promo-cta { display:inline-flex; }
}
