/* AppTemplates additions on top of the Emerald Dragon template (style.css). */

/* ---------- Flash messages ---------- */
.flash-wrap { max-width: 1170px; width: 95%; margin: 20px auto 0; }
.flash { padding: 14px 20px; border-radius: 4px; font-size: .875em; font-weight: 600; margin-bottom: 10px; }
.flash-success { background: #e6fbf7; border: 1px solid #00d7b3; color: #1e7a68; }
.flash-error { background: #fdecef; border: 1px solid #e61852; color: #a3133b; }

/* ---------- Forms ---------- */
.input-error { color: #e61852; font-size: .75em; font-weight: 600; line-height: 1.4em; margin: 6px 0 12px; }
.input-help { color: #a1a1a1; font-size: .75em; line-height: 1.4em; margin: 6px 0 12px; }
input.invalid, textarea.invalid { border-color: #e61852 !important; }
.small-print { font-size: .75em; color: #a1a1a1; margin: 6px 0 14px; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.inline-form { display: inline-block; margin-right: 8px; }
.form-box-item .button + .button, .form-box-item .button + form { margin-top: 10px; }
.label-check { cursor: pointer; }

/* ---------- Auth pages ---------- */
.auth-section { padding: 60px 0 80px; }
.auth-box { width: 460px; max-width: 100%; margin: 0 auto; }
.auth-box .form-popup-content { padding: 30px 32px 34px; }
.auth-box .button.mid { width: 100%; }
.auth-switch { font-size: .875em; text-align: center; }
.auth-box p.spaced { margin-bottom: 20px; line-height: 1.5em; }

/* ---------- Header dropdown: logout button looks like a link ---------- */
.dropdown-link-button {
    display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding-left: 14px; line-height: 40px; font-size: .75em; font-family: inherit; font-weight: 700;
    color: inherit; text-transform: inherit;
}
.dropdown-link-button:hover { color: #00d7b3; }
.side-menu form .button { width: 100%; margin-top: 16px; }

/* ---------- Dashboard ---------- */
.dashboard-menu-title {
    padding: 0 0 0 20px; margin: 0; background-color: #e3e3e3; color: #535d5f;
    font-size: .625em; font-weight: 700; line-height: 35px; text-transform: uppercase;
}
.sidebar .dropdown .sl-icon { margin-right: 10px; color: #00d7b3; }
.content.right .dashboard-content { width: 100%; max-width: none; }
.dashboard-content .form-box-items .form-box-item { width: 100%; float: none; }
.dashboard-content .form-box-items .form-box-item:not(.full) { width: calc(50% - 13px); }
.dashboard-content .form-box-items .form-box-item:not(.full):nth-child(odd) { float: left; clear: both; }
.dashboard-content .form-box-items .form-box-item:not(.full):nth-child(even) { float: right; }
.dashboard-content .form-box-item p { font-size: .875em; line-height: 1.6em; margin-bottom: 14px; }
.info-list { margin-bottom: 18px; }
.info-list li { font-size: .875em; padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.info-list li span { display: inline-block; width: 120px; color: #a1a1a1; font-weight: 600; }
.tag {
    display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .75em; font-style: normal;
    font-weight: 700; background: #ebebeb; color: #535d5f; text-transform: uppercase;
}
.tag.success { background: #e6fbf7; color: #1e7a68; }
.tag.warning { background: #fff4e0; color: #a86400; }
.tag.danger { background: #fdecef; color: #a3133b; }
.tag.gray { background: #ebebeb; color: #535d5f; }
.notice-box.warning { border-left: 4px solid #f5a623; }
.profile-image .banner-thumb { background: #ebebeb center/cover no-repeat; border-radius: 4px; }
.tfa-qr { background: #fff; display: inline-block; padding: 12px; border: 1px solid #ebebeb; margin-bottom: 14px; }
.recovery-codes { columns: 2; margin-bottom: 18px; }
.recovery-codes li { font-size: .8125em; padding: 3px 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #f5f5f5; padding: 1px 5px; border-radius: 3px; }

/* ---------- Catalog ---------- */
.home-category-headline { display: flex; align-items: center; justify-content: space-between; padding-right: 20px; }
.home-category-headline .button { margin-top: 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.category-grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 26px; }
.category-card {
    display: block; background: #fff; border: 1px solid #ebebeb; padding: 24px; transition: border-color .15s, transform .15s;
}
a.category-card:hover { border-color: #00d7b3; transform: translateY(-2px); }
.category-card > span[class^="icon-"] { font-size: 28px; color: #00d7b3; display: block; margin-bottom: 14px; }
.category-card .text-header { font-size: 1em; margin-bottom: 6px; }
.category-card p { font-size: .8125em; color: #a1a1a1; line-height: 1.5em; }
.category-card-links li { font-size: .8125em; padding: 3px 0; }
.category-card-links a:hover, .category-card .text-header a:hover { color: #00d7b3; }
.notice-banner {
    display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid #ebebeb;
    border-left: 4px solid #00d7b3; padding: 22px 24px; margin-bottom: 30px;
}
.notice-banner > span { font-size: 30px; color: #00d7b3; }
.notice-banner .text-header { margin-bottom: 4px; }
.notice-banner p { font-size: .875em; line-height: 1.5em; }
.filter-group { margin-bottom: 18px; }
.filter-group .filter-title { font-size: .75em; font-weight: 700; text-transform: uppercase; color: #2f1c54; margin-bottom: 10px; }
.filter-group .label-check { display: block; font-size: .8125em; margin-bottom: 8px; opacity: .7; }

/* ---------- Profile ---------- */
.profile-banner { height: 220px; background: #ebebeb center/cover no-repeat; margin-bottom: 26px; }
.profile-about { background: #fff; border: 1px solid #ebebeb; padding: 24px; font-size: .875em; line-height: 1.7em; margin-bottom: 26px; }
.author-bio .tag { margin-top: 10px; }

/* ---------- Sell page ---------- */
.sell-intro { display: grid; grid-template-columns: 1fr 470px; gap: 40px; align-items: start; }
.sell-pitch h3 { font-size: 1.75em; color: #2f1c54; margin-bottom: 16px; line-height: 1.2em; }
.sell-pitch > p { font-size: .9375em; line-height: 1.7em; margin-bottom: 24px; }
.sell-points li { display: flex; gap: 16px; margin-bottom: 18px; font-size: .9375em; line-height: 1.5em; }
.sell-points li > span { font-size: 24px; color: #00d7b3; flex: 0 0 28px; }
.terms-table { width: 100%; border-collapse: collapse; background: #fff; margin: 24px 0 8px; font-size: .875em; }
.terms-table th, .terms-table td { border: 1px solid #ebebeb; padding: 12px 14px; text-align: left; }
.terms-table th { background: #f7f7f7; font-weight: 700; color: #2f1c54; }
.sell-form .form-box-item { width: 100%; }
.sell-form .button.mid { width: 100%; }

/* ---------- Static pages ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.help-grid .form-box-item { margin: 0; }
.help-grid p { font-size: .875em; line-height: 1.6em; }
.legal-body { max-width: 780px; background: #fff; border: 1px solid #ebebeb; padding: 30px; font-size: .9375em; line-height: 1.7em; }
.legal-body p { margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .sell-intro { grid-template-columns: 1fr; }
    .dashboard-content .form-box-items .form-box-item:not(.full) { width: 100%; float: none !important; }
}
@media (max-width: 520px) {
    .auth-box .form-popup-content { padding: 22px 18px 26px; }
    .notice-banner { flex-direction: column; align-items: flex-start; }
}
.category-card .text-header, .category-card .text-header a { color: #2f1c54; }
.section-headline p a { color: rgba(255, 255, 255, .85); }
.section-headline p a:hover { color: #fff; }
.info-list li, .tag, .dashboard-content p, .recovery-codes li { font-family: "Titillium Web", sans-serif; }
.info-list li { color: #2f1c54; font-weight: 600; }
.sell-points li, .terms-table, .legal-body, .help-grid p, .profile-about { font-family: "Titillium Web", sans-serif; }
.file-selected { font-size: .75em; font-weight: 700; color: #00b394; margin: 8px 0 0; font-family: "Titillium Web", sans-serif; }
.readonly-input { background: #f5f5f5 !important; color: #a1a1a1 !important; cursor: not-allowed; }
.label-check.has-error { color: #e61852; }
.label-check.has-error .checkbox { border-color: #e61852 !important; box-shadow: 0 0 0 2px rgba(230, 24, 82, .15); }
@keyframes pulse-save { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 215, 179, .6); } 50% { box-shadow: 0 0 0 8px rgba(0, 215, 179, 0); } }
.button.pulse { animation: pulse-save 1.4s ease-in-out 3; }

/* =====================  Phase 2: products  ===================== */
[x-cloak] { display: none !important; }
button.pager-item, button.tab-item { border: 0; background: none; font: inherit; padding: 0; cursor: pointer; }
.pager-wrap { margin-top: 30px; text-align: center; }
.pager-wrap .pager { display: inline-flex; gap: 6px; width: auto; float: none; }
.pager-wrap .pager-item { display: inline-block; min-width: 36px; height: 36px; line-height: 36px; background: #fff; border: 1px solid #ebebeb; border-radius: 4px; }
.pager-wrap .pager-item p { font-size: .8125em; font-weight: 700; color: #2f1c54; }
.pager-wrap .pager-item.active { background: #00d7b3; border-color: #00d7b3; }
.pager-wrap .pager-item.active p { color: #fff; }

/* ---- publisher area ---- */
.notice-banner.compact { padding: 14px 18px; margin-bottom: 20px; }
.notice-banner.compact > span { font-size: 22px; }
.spaced-help { margin: 0 0 18px !important; }
.preview-toggle { float: right; font-size: .9em; text-transform: none; }
.markdown-preview { min-height: 200px; border: 1px dashed #ddd; padding: 16px 18px; margin-bottom: 14px; background: #fcfcfc; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; margin: 6px 0 4px; }
.option-check { display: block; }
.option-check .label-check { font-size: .8125em; line-height: 22px; }
.spec-field { padding-bottom: 6px; border-bottom: 1px solid #f3f3f3; margin-bottom: 18px; }
.spec-field:last-child { border-bottom: 0; }
.form-actions { margin: 4px 0 30px; }
.editor-tabs { display: flex; gap: 4px; margin: -10px 0 22px; border-bottom: 2px solid #ebebeb; }
.editor-tabs a { padding: 12px 18px; font-size: .8125em; font-weight: 700; color: #a1a1a1; border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: "Titillium Web", sans-serif; }
.editor-tabs a.active, .editor-tabs a:hover { color: #2f1c54; border-bottom-color: #00d7b3; }

.image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.image-tile { position: relative; aspect-ratio: 516 / 300; border: 1px solid #ebebeb; border-radius: 4px; overflow: hidden; background: #f5f5f5; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-tile.pending { border-style: dashed; border-color: #00d7b3; }
.image-badge { position: absolute; top: 6px; left: 6px; background: #2f1c54; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; }
.image-badge.pending { background: #00d7b3; }
.image-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.image-tile:hover .image-tools, .image-tile:focus-within .image-tools { opacity: 1; }
.image-tools button { width: 26px; height: 26px; border: 0; border-radius: 3px; background: rgba(47, 28, 84, .85); color: #fff; font-size: 16px; line-height: 26px; cursor: pointer; }
.image-tools button.danger { background: #e61852; }
.image-tools button:disabled { opacity: .35; cursor: default; }
.image-tile.add { display: flex; align-items: center; justify-content: center; border: 2px dashed #cfcfcf; cursor: pointer; color: #a1a1a1; font-size: .8125em; font-weight: 700; text-align: center; font-family: "Titillium Web", sans-serif; }
.image-tile.add:hover { border-color: #00d7b3; color: #00b394; }
.image-tile.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-tile.add .icon-picture { display: block; font-size: 24px; margin-bottom: 6px; }
.upload-progress { width: 80%; }
.upload-progress .bar, .upload-bar { display: block; height: 6px; background: #ebebeb; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.upload-progress .bar > span, .upload-fill { display: block; height: 100%; background: #00d7b3; transition: width .2s; }
.upload-file-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.upload-file-progress .upload-bar { flex: 1; margin: 0; }
.upload-file-actions { display: flex; align-items: center; gap: 12px; }
.upload-file-actions p { font-size: .8125em; color: #a1a1a1; word-break: break-all; }

.checklist li { position: relative; padding: 6px 0 6px 24px; font-size: .8125em; font-family: "Titillium Web", sans-serif; }
.checklist li::before { position: absolute; left: 0; top: 6px; font-weight: 700; }
.checklist li.todo::before { content: "○"; color: #e61852; }
.checklist li.done::before { content: "✓"; color: #00b394; }
.problem-list { margin: 6px 0 0 18px; list-style: disc; font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; font-size: .8125em; font-family: "Titillium Web", sans-serif; }
.data-table th { text-align: left; color: #a1a1a1; font-weight: 700; padding: 8px 10px; border-bottom: 2px solid #ebebeb; }
.data-table td { padding: 10px; border-bottom: 1px solid #f2f2f2; vertical-align: top; color: #2f1c54; }
.data-table small { color: #a1a1a1; }
.data-table .notes-row td { background: #f8fbff; color: #535d5f; font-size: .95em; }
.data-table .notes-row span { font-weight: 700; color: #1396e1; }

.manage-list { display: flex; flex-direction: column; gap: 14px; }
.manage-item { display: grid; grid-template-columns: 172px 1fr auto auto; gap: 18px; align-items: center; background: #fff; border: 1px solid #ebebeb; padding: 14px; }
.manage-cover img { width: 172px; height: 100px; object-fit: cover; display: block; border-radius: 3px; }
.manage-info .text-header { font-size: 1em; margin-bottom: 6px; }
.manage-meta { font-size: .8125em; color: #a1a1a1; margin-bottom: 6px; font-family: "Titillium Web", sans-serif; }
.manage-meta .tag { margin-right: 6px; }
.manage-stats p { font-size: .8125em; color: #a1a1a1; text-align: center; font-family: "Titillium Web", sans-serif; }
.manage-stats strong { display: block; font-size: 1.5em; color: #2f1c54; }
.manage-actions { display: flex; flex-direction: column; gap: 6px; }
.manage-actions .button { width: 110px; margin: 0 !important; }

/* ---- catalog ---- */
.catalog-section .content.right { width: 870px; }
.catalog-search { position: relative; }
.catalog-search input { width: 100%; padding-right: 36px; }
.catalog-search span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #a1a1a1; }
.category-tree li { font-size: .8125em; padding: 5px 0; font-family: "Titillium Web", sans-serif; }
.category-tree li.current, .category-tree li.current a { font-weight: 700; color: #2f1c54; }
.category-tree li.child { padding-left: 14px; }
.category-tree a:hover { color: #00b394; }
.clear-filters { float: right; font-size: .65em; text-transform: none; }
.price-range { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.price-range input { width: 100%; }
.facet-count { float: right; color: #b2b2b2; font-weight: 600; }
.catalog-filters .filter-group .label-check { opacity: 1; }
.catalog-headline { display: flex; align-items: center; justify-content: space-between; padding-right: 18px; }
.catalog-headline .sort-select { width: 220px; margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 20px; }
.filter-chip { border: 1px solid #00d7b3; background: #e6fbf7; color: #1e7a68; border-radius: 14px; padding: 4px 12px; font-size: .75em; font-weight: 700; cursor: pointer; font-family: "Titillium Web", sans-serif; }
.product-showcase.is-loading { opacity: .5; transition: opacity .2s; }
.catalog-grid .product-item .product-description, .home-grid .product-item .product-description { min-height: 2.6em; }
.home-products { padding-bottom: 0 !important; }
.home-products .section { padding-bottom: 20px; }

/* ---- product page ---- */
.purchase-box { background: #fff; border: 1px solid #ebebeb; padding: 20px !important; }
.purchase-price { font-size: 2em; font-weight: 700; color: #2f1c54; text-align: center; margin-bottom: 14px; font-family: "Titillium Web", sans-serif; }
.license-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.license-option { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; border: 2px solid #ebebeb; border-radius: 6px; padding: 12px 14px; cursor: pointer; font-family: "Titillium Web", sans-serif; }
.license-option input { display: none; }
.license-option.selected { border-color: #00d7b3; background: #f2fdfb; }
.license-name { font-weight: 700; color: #2f1c54; font-size: .875em; }
.license-price { font-weight: 700; color: #2f1c54; font-size: 1.1em; grid-row: span 2; align-self: center; }
.license-desc { font-size: .75em; color: #a1a1a1; }
.purchase-box .button { width: 100%; margin-bottom: 10px; display: block; text-align: center; }
.purchase-box .button.disabled { opacity: .55; cursor: not-allowed; }
.purchase-note { font-size: .75em; color: #a1a1a1; text-align: center; line-height: 1.5em; margin-bottom: 14px; font-family: "Titillium Web", sans-serif; }
.information-layout-item.spec p:last-child { line-height: 1.5em; }
.product-gallery { margin-bottom: 0; }
.gallery-main { position: relative; background: #1e1433; aspect-ratio: 836 / 484; cursor: zoom-in; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .5); color: #fff; padding: 8px; border-radius: 4px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 10px; background: #fff; border: 1px solid #ebebeb; border-top: 0; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; border-radius: 3px; overflow: hidden; }
.gallery-thumbs button.active { border-color: #00d7b3; }
.gallery-thumbs img { width: 100%; display: block; aspect-ratio: 516 / 300; object-fit: cover; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 6, 20, .92); display: flex; align-items: center; justify-content: center; }
.gallery-lightbox img { max-width: 90vw; max-height: 88vh; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: none; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; }
.lightbox-close { top: 18px; right: 26px; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.product-tagline { font-size: 1.05em; color: #535d5f; line-height: 1.5em; font-family: "Titillium Web", sans-serif; }
.product-tabs { margin-top: 26px; }
.product-tabs .tab-header { display: flex; background: #fff; border: 1px solid #ebebeb; }
.product-tabs .tab-item { flex: 1; height: 56px; border-right: 1px solid #ebebeb !important; }
.product-tabs .tab-item:last-child { border-right: 0 !important; }
.product-tabs .tab-item p { color: #b2b2b2; line-height: 50px; border-top: 6px solid transparent; }
.product-tabs .tab-item.selected p { color: #2f1c54; border-top-color: #00d7b3; }
.tab-body { background: #fff; border: 1px solid #ebebeb; border-top: 0; padding: 28px 30px; }
.product-description-body { font-size: .9375em; line-height: 1.75em; color: #535d5f; font-family: "Titillium Web", sans-serif; }
.product-description-body h1, .product-description-body h2, .product-description-body h3 { color: #2f1c54; margin: 1.2em 0 .5em; line-height: 1.3em; }
.product-description-body h2 { font-size: 1.35em; } .product-description-body h3 { font-size: 1.15em; }
.product-description-body p, .product-description-body ul, .product-description-body ol { margin-bottom: 1em; }
.product-description-body ul { list-style: disc; padding-left: 22px; }
.product-description-body ol { list-style: decimal; padding-left: 22px; }
.product-description-body a { color: #00b394; text-decoration: underline; }
.product-description-body code { font-size: .9em; }
.product-description-body pre { background: #f5f5f5; padding: 12px; overflow: auto; margin-bottom: 1em; }
.tag-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-size: .75em; font-weight: 700; color: #1396e1; background: #eef7fd; padding: 4px 10px; border-radius: 12px; font-family: "Titillium Web", sans-serif; }
.video-embed { position: relative; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.changelog-entry { padding: 14px 0; border-bottom: 1px solid #f2f2f2; }
.changelog-entry .text-header { margin-bottom: 8px; }
.changelog-entry .text-header span { color: #a1a1a1; font-weight: 600; margin-left: 8px; font-size: .85em; }

@media (max-width: 1260px) {
    .catalog-section .content.right { width: auto; }
}
@media (max-width: 960px) {
    .manage-item { grid-template-columns: 120px 1fr; }
    .manage-cover img { width: 120px; height: 70px; }
    .manage-stats, .manage-actions { grid-column: span 2; }
    .manage-actions { flex-direction: row; flex-wrap: wrap; }
    .catalog-headline { flex-direction: column; align-items: flex-start; height: auto; padding: 14px 18px; gap: 10px; }
}
.category-tree a { color: #535d5f; }
.purchase-box .button [class^="icon-"] { margin-right: 6px; }
.upload-file-actions .button { width: auto; padding: 0 16px; white-space: nowrap; flex: 0 0 auto; }
.mobile-filter-toggle { display: none; }
@media (max-width: 960px) {
    .catalog-section, .product-page { display: flex; flex-direction: column; }
    .catalog-section .content.right, .product-page .content.left { order: 1; }
    .catalog-section .catalog-filters, .product-page .sidebar.right { order: 2; }
    .catalog-section .catalog-filters { display: none; order: 0; margin-bottom: 20px; }
    .catalog-section .catalog-filters.open { display: block; }
    .mobile-filter-toggle { display: inline-block; margin: 0 !important; }
    .catalog-headline .sort-select { width: 100%; }
    .product-page .content.left { margin-bottom: 30px; }
}
@media (max-width: 960px) {
    .catalog-headline { padding-left: 22px; }
    .catalog-headline h4 { line-height: 1.3em; margin: 0; }
}

/* =====================  Conversations & notifications  ===================== */
.sidebar .dropdown .dropdown-item { position: relative; }
.sidebar .dropdown .dropdown-item .pin { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); }
.pin.secondary { background-color: #e61852; }
header .account-information > a, header .account-information > div { font-size: 18px; }
header .account-information .pin { font-size: 10px; }
.dropdown.notifications .dropdown-item { padding-right: 46px; height: auto; min-height: 62px; }
.dropdown.notifications .text-header.tiny { line-height: 1.35em; }
.dropdown.notifications .notifications-all { min-height: 0; padding: 10px; text-align: center; }
.dropdown.notifications .notifications-all .button { width: 100%; margin: 0; }

.ticket-list { display: flex; flex-direction: column; background: #fff; border: 1px solid #ebebeb; }
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #f2f2f2; font-family: "Titillium Web", sans-serif; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: #fafafa; }
.ticket-dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; flex: 0 0 9px; }
.ticket-row.unread .ticket-dot { background: #e61852; }
.ticket-row.unread .ticket-subject { font-weight: 700; color: #2f1c54; }
.ticket-main { flex: 1; min-width: 0; }
.ticket-subject { font-size: .9375em; color: #535d5f; font-weight: 600; margin-bottom: 3px; }
.ticket-preview { font-size: .8125em; color: #a1a1a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-side { text-align: right; font-size: .75em; color: #a1a1a1; }
.ticket-side .tag { margin-bottom: 4px; }
.notification-icon { font-size: 18px; color: #00d7b3; }
.ticket-header { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .8125em; color: #535d5f; margin: -10px 0 18px; font-family: "Titillium Web", sans-serif; }

.ticket-thread .thread-messages { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.ticket-thread.compact .thread-messages { max-height: 520px; overflow-y: auto; padding-right: 4px; }
.thread-message { border: 1px solid #ebebeb; border-radius: 8px; padding: 14px 16px; background: #fff; max-width: 92%; }
.thread-message.mine { margin-left: auto; background: #f7fbff; border-color: #dbeaf7; }
.thread-message.staff { border-left: 4px solid #00d7b3; }
.thread-message.request-changes { border: 2px solid #e61852; background: #fff6f8; max-width: 100%; }
.request-changes-label { color: #e61852; font-weight: 700; font-size: .75em; text-transform: uppercase; margin-bottom: 8px; font-family: "Titillium Web", sans-serif; }
.thread-meta { display: flex; align-items: center; gap: 8px; font-size: .75em; color: #a1a1a1; margin-bottom: 8px; font-family: "Titillium Web", sans-serif; }
.thread-meta img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.thread-meta strong { color: #2f1c54; }
.thread-meta time { margin-left: auto; }
.thread-body { font-size: .875em; line-height: 1.65em; color: #535d5f; font-family: "Titillium Web", sans-serif; word-wrap: break-word; }
.thread-body p { margin-bottom: .6em; } .thread-body ul { list-style: disc; padding-left: 20px; }
.thread-system { display: flex; justify-content: center; gap: 10px; font-size: .75em; color: #a1a1a1; font-family: "Titillium Web", sans-serif; }
.thread-system::before, .thread-system::after { content: ""; flex: 1; border-top: 1px dashed #e3e3e3; margin-top: .7em; }
.thread-reply textarea { margin-bottom: 10px; }

.change-request-alert { display: flex; gap: 18px; border: 2px solid #e61852; background: #fff6f8; border-radius: 6px; padding: 20px 22px; margin-bottom: 26px; }
.cra-icon { flex: 0 0 46px; height: 46px; border-radius: 50%; background: #e61852; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cra-title { font-size: 1em; font-weight: 700; color: #a3133b; margin-bottom: 10px; font-family: "Titillium Web", sans-serif; }
.cra-notes { background: #fff; border: 1px solid #f5c6d3; border-radius: 4px; padding: 12px 14px; margin-bottom: 8px; }
.cra-notes, .cra-steps { font-size: .875em; line-height: 1.6em; color: #535d5f; font-family: "Titillium Web", sans-serif; }
.cra-meta { font-size: .75em; color: #a1a1a1; margin-bottom: 10px; font-family: "Titillium Web", sans-serif; }
.cra-steps { margin-bottom: 12px; }
.manage-item.needs-action { border-color: #e61852; box-shadow: inset 4px 0 0 #e61852; }
a.tag.danger:hover { background: #e61852; color: #fff; }
.purchase-box .ask-question { margin-top: 0; }
.form-box-item h4 small { font-size: .65em; color: #a1a1a1; font-weight: 600; margin-left: 6px; }

/* ---- Phase 3: cart, checkout, purchases, library ---------------------- */
.tag.info { background: #e8f1fd; color: #1d5fae; }
.cart-side .cart-facts { list-style: none; padding: 0; margin: 0 0 14px; }
.cart-side .cart-facts li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #535d5f; border-bottom: 1px solid #f0f0f0; }
.cart-side .cart-facts li span { color: #00d7b3; font-size: 16px; }
.cart .cart-item-category .select-block.small select { height: 36px; font-size: 12px; padding: 0 30px 0 12px; }
.cart .cart-item-category form { width: 100%; max-width: 140px; }
.cart .cart-item-actions form { display: inline; }
.cart .cart-item-actions button.rmv { border: 0; cursor: pointer; }
.cart .price.vat-hint { font-size: 1em; color: #6b7a7d; }

.checkout.form-box-items { display: flex; gap: 24px; align-items: flex-start; }
.checkout .form-box-item { flex: 1 1 0; margin: 0; }
.checkout .form-box-item:last-child { flex: 0 0 380px; position: sticky; top: 20px; }
.checkout .business-fields { border-left: 3px solid #e6fbf7; padding-left: 14px; margin-bottom: 10px; }
.vat-check { display: flex; gap: 8px; }
.vat-check input { flex: 1; }
.vat-check .button { flex: 0 0 auto; width: auto; padding: 0 16px; margin: 0; }
.vat-status { font-size: 12px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.vat-status.ok { color: #1e7a68; } .vat-status.bad { color: #a3133b; } .vat-status.warn { color: #a86400; }
.checkout .cart-total .price small { font-size: 11px; color: #6b7a7d; }
.terms-box .label-check { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; font-size: 12px; text-transform: none; font-weight: 400; }
.terms-box .label-check .checkbox { flex: 0 0 auto; margin-top: 2px; }
.paypal-button { background: #ffc439; color: #111; width: 100%; border: 0; cursor: pointer; font-weight: 700; }
.paypal-button:hover { background: #f2b52a; color: #111; }
.paypal-button[disabled] { opacity: .7; cursor: wait; }
.small-print.centered { text-align: center; margin-top: 10px; }
@media (max-width: 960px) {
    .checkout.form-box-items { flex-direction: column; }
    .checkout .form-box-item, .checkout .form-box-item:last-child { flex: 1 1 auto; width: 100%; position: static; }
}

.purchase-box .buy-form { display: flex; flex-direction: column; gap: 10px; }
.purchase-box .buy-form .button, .purchase-box .upgrade-form .button { width: 100%; border: 0; cursor: pointer; }
.purchase-box .in-cart { color: #1e7a68; }
.owned-box { display: flex; gap: 12px; align-items: center; background: #e6fbf7; border: 1px solid #b7efe4; border-radius: 4px; padding: 12px 14px; margin-bottom: 12px; }
.owned-box > span { font-size: 22px; color: #00b896; }
.owned-box p { margin: 0; font-size: 13px; line-height: 1.4; color: #1e7a68; }
.purchase-box form + .button, .purchase-box .button + .button { margin-top: 10px; }

.data-table { background: #fff; border: 1px solid #ebebeb; border-radius: 4px; overflow: hidden; }
.data-row { display: grid; grid-template-columns: 1.6fr 1fr .6fr 1fr 1.2fr; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #2b373a; }
.data-row:last-child { border-bottom: 0; }
a.data-row:hover { background: #fafafa; }
.data-row.data-head { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #6b7a7d; background: #f7f7f7; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
code { background: #f3f5f5; padding: 2px 6px; border-radius: 3px; word-break: break-all; }
@media (max-width: 680px) { .data-row { grid-template-columns: 1fr 1fr; } .data-row.data-head { display: none; } }

.headline-tag { margin-left: auto; }
.order-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 20px; }
.order-grid .form-box-item, .order-side .form-box-item { width: 100%; margin: 0 0 20px; float: none; }
.order-line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.order-line .product-preview-image { flex: 0 0 90px; width: 90px; height: 52px; margin: 0; }
.order-line-main { flex: 1; min-width: 0; }
.order-line-meta { font-size: 12px; color: #6b7a7d; margin: 2px 0 0; }
.order-line-side { text-align: right; }
.order-line-side .button { margin-top: 6px; width: auto; padding: 0 12px; display: inline-block; }
.order-totals { margin-top: 14px; }
.order-totals p { display: flex; justify-content: space-between; margin: 4px 0; font-size: 13px; }
.order-totals .grand { font-weight: 700; font-size: 15px; border-top: 1px solid #ebebeb; padding-top: 8px; }
.order-totals .refunded, .danger-text { color: #a3133b; }
.invoice-link { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #2b373a; }
.invoice-link:hover { color: #00d7b3; }
.invoice-link .invoice-amount { margin-left: auto; font-weight: 700; }
.refund-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 13px; flex-wrap: wrap; }
.refund-row .refund-date { color: #6b7a7d; margin-left: auto; }
.refund-form { margin-top: 14px; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }

.library-list { background: #fff; border: 1px solid #ebebeb; border-radius: 4px; }
.library-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.library-item:last-child { border-bottom: 0; }
.library-item .product-preview-image { flex: 0 0 120px; width: 120px; height: 70px; margin: 0; }
.library-main { flex: 1; min-width: 0; }
.library-meta { font-size: 12px; color: #6b7a7d; margin: 3px 0 0; }
.library-meta .tag { margin-left: 6px; }
.library-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 170px; }
.library-actions .button { width: 100%; margin: 0; }
.library-list.muted { opacity: .7; }
.library-subtitle { margin: 26px 0 10px; font-weight: 700; font-size: 12px; text-transform: uppercase; color: #6b7a7d; }
.version-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.version-row .button { width: auto; padding: 0 12px; }
.purchase-code { font-size: 12px; }
@media (max-width: 680px) {
    .library-item { flex-wrap: wrap; }
    .library-actions { flex: 1 1 100%; flex-direction: row; }
}
.cart .cart-item-category .select-block select { background-color: #fff; color: #2b373a; border: 1px solid #ebebeb; }
.summary-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.summary-item .product-preview-image { flex: 0 0 64px; width: 64px; height: 38px; margin: 0; }
.summary-item > div { flex: 1; min-width: 0; }
.summary-item .text-header { margin: 0; line-height: 1.3; }
.summary-meta { font-size: 11px; color: #00b896; margin: 2px 0 0; font-weight: 700; }
.summary-price { font-weight: 700; color: #2b373a; white-space: nowrap; }
.summary-totals { margin: 14px 0 18px; }
.summary-totals em { font-style: normal; color: #6b7a7d; font-size: 12px; }
.summary-totals .grand span:last-child { font-size: 20px; }
.terms-box a { color: #00b896; }
.purchase-box .buy-form .button + .button { margin-top: 0; }
.headline { position: relative; }
.headline .headline-tag { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); margin: 0; }
.checkout .form-box-item { margin-top: 0 !important; }

/* ---- Phase 4: publisher money ----------------------------------------- */
.balance-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.balance-card { background: #fff; border: 1px solid #ebebeb; border-radius: 4px; padding: 18px 20px; }
.balance-label { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #6b7a7d; margin: 0 0 6px; }
.balance-value { font-size: 24px; font-weight: 700; color: #2b373a; margin: 0; font-family: "Titillium Web", sans-serif; }
.balance-value.primary { color: #00b896; }
.balance-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #00b896; }
@media (max-width: 860px) { .balance-cards { grid-template-columns: 1fr 1fr; } }

.earnings-chart-box { width: 100%; float: none; margin-bottom: 20px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 18px; }
.bar-chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; text-decoration: none; }
.bar-chart .bar-fill { width: 100%; max-width: 46px; background: #b7efe4; border-radius: 3px 3px 0 0; transition: background .15s; }
.bar-chart .bar:hover .bar-fill, .bar-chart .bar.active .bar-fill { background: #00d7b3; }
.bar-chart .bar-value { font-size: 10px; color: #6b7a7d; margin-bottom: 4px; white-space: nowrap; }
.bar-chart .bar-label { font-size: 11px; color: #6b7a7d; margin-top: 6px; font-weight: 700; }
.earnings-filter { display: flex; gap: 18px; align-items: center; margin: 0 0 20px; flex-wrap: wrap; }
.earnings-filter form { width: 220px; }
.earnings-filter p { margin: 0; font-size: 13px; }
.compact-table .data-row small { display: block; font-size: 11px; color: #6b7a7d; }
.data-row.sale-row { grid-template-columns: 1.1fr 1.8fr .8fr .9fr 1fr; }
.data-row.product-row { grid-template-columns: 2.5fr .7fr .7fr 1fr; }
.data-row.withdrawal-row { grid-template-columns: 1.1fr 1fr 1fr 1.4fr 1.1fr 1.2fr; }
.form-box-item.full-width, .dashboard-content > .form-box-item { width: 100%; float: none; margin: 0 0 20px; }
.blocker-list { list-style: none; padding: 0; margin: 0 0 14px; }
.blocker-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; color: #a86400; font-size: 13px; }
.withdraw-row { display: flex; gap: 14px; align-items: flex-end; }
.withdraw-row .input-container { flex: 0 0 220px; margin-bottom: 0; }
.withdraw-row .button { width: auto; padding: 0 28px; }
.link-button { background: none; border: 0; padding: 0; color: #a3133b; font-weight: 700; cursor: pointer; font-size: 12px; }
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #2b373a; cursor: pointer; }
.radio-row input[type=radio] { display: inline-block; width: auto; height: auto; margin: 0; accent-color: #00d7b3; }
.payout-form .input-help { margin: 8px 0 14px; }
.payout-form .terms-box { margin-top: 22px; clear: both; }
.payout-form .form-box-item [x-show] { clear: both; }
.blocker-list li, .withdraw-form p { font-family: "Titillium Web", sans-serif; }
.series-box { clear: both; border-top: 1px solid #f0f0f0; padding-top: 16px; margin: 6px 0 16px; overflow: hidden; }
.inline-form .button { width: auto; padding: 0 22px; }
.profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.profile-badges .tag { margin: 0; }

/* ---- Community -------------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; color: #e3e3e3; line-height: 1; vertical-align: middle; }
.stars .star.full { color: #ffc439; }
.stars .star.half { background: linear-gradient(90deg, #ffc439 50%, #e3e3e3 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.small { font-size: 14px; } .stars.big { font-size: 22px; }
.title-rating { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #6b7a7d; margin-top: 6px; }
.review-summary { display: flex; gap: 32px; align-items: center; padding: 6px 0 22px; border-bottom: 1px solid #f0f0f0; margin-bottom: 18px; }
.review-score { text-align: center; min-width: 120px; }
.review-avg { font-size: 42px; font-weight: 700; color: #2f1c54; margin: 0; line-height: 1; font-family: "Titillium Web", sans-serif; }
.review-count { font-size: 12px; color: #6b7a7d; margin: 6px 0 0; }
.review-bars { flex: 1; max-width: 360px; }
.review-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6b7a7d; margin: 3px 0; }
.review-bar .bar { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.review-bar .bar span { display: block; height: 100%; background: #ffc439; }
.review-bar .n { width: 24px; text-align: right; }
.review-form { background: #fafafa; border: 1px solid #ebebeb; border-radius: 4px; padding: 16px 18px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.review-form .text-header { margin: 0; }
.star-picker { display: flex; gap: 4px; }
.star-picker button { background: none; border: 0; font-size: 28px; color: #d9d9d9; cursor: pointer; padding: 0; line-height: 1; }
.star-picker button.on { color: #ffc439; }
.review-form-actions { display: flex; gap: 14px; align-items: center; }
.review-form-actions .button { width: auto; padding: 0 22px; }
.review-hint, .my-review-note { font-size: 13px; color: #6b7a7d; margin: 0 0 18px; display: flex; gap: 12px; align-items: center; }
.review-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.review-item:last-of-type { border-bottom: 0; }
.review-item .user-avatar { flex: 0 0 40px; width: 40px; height: 40px; }
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; gap: 10px; align-items: center; }
.review-head strong { font-size: 14px; color: #2b373a; }
.review-meta { font-size: 12px; color: #6b7a7d; margin: 4px 0 8px; }
.review-meta .verified { color: #1e7a68; font-weight: 700; }
.review-text { font-size: 14px; line-height: 1.6; color: #2b373a; }
.author-reply { margin-top: 12px; padding: 10px 14px; background: #f6f8f8; border-left: 3px solid #00d7b3; border-radius: 0 4px 4px 0; }
.reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.reply-form textarea, .reply-form input { width: 100%; }
.reply-form .button { width: auto; padding: 0 16px; }
.link-button.primary-link { color: #00b896; margin-top: 8px; }
.link-button.muted-link { color: #a1a1a1; font-weight: 400; margin-top: 8px; }
.follow-form, .favourite-form { margin: 10px 0 0; }
.follow-button, .favourite-button { width: 100%; border: 1px solid #00d7b3; background: #fff; color: #00b896; cursor: pointer; }
.follow-button.following, .favourite-button.on { background: #e6fbf7; }
.favourite-button.on .icon-heart { color: #e61852; }
.publisher-stats { font-size: 12px; color: #6b7a7d; margin: 4px 0 0; }
.profile-rating { font-size: 12px; color: #6b7a7d; margin: 10px 0 0; text-align: center; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.author-badge { text-align: center; padding: 10px 4px; border-radius: 6px; background: #f6f8f8; }
.author-badge span { font-size: 22px; color: #00d7b3; display: block; margin-bottom: 4px; }
.author-badge.secondary span { color: #e61852; } .author-badge.tertiary span { color: #8a5cf6; }
.author-badge p { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #2b373a; margin: 0; line-height: 1.3; }
.profile-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid #ebebeb; border-radius: 4px; padding: 4px; margin-bottom: 20px; }
.profile-tabs a { flex: 1; text-align: center; padding: 10px; font-weight: 700; font-size: 13px; color: #6b7a7d; border-radius: 3px; }
.profile-tabs a.active { background: #2f1c54; color: #fff; }
.profile-more { text-align: center; margin: 10px 0 20px; }
.profile-more .button { width: auto; padding: 0 24px; display: inline-block; }
.follow-row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.follow-row > div { flex: 1; }
.follow-row .follow-form { margin: 0; width: 140px; }
.notification-prefs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 12px 0 0 4px; }
.balance-cards.three { grid-template-columns: repeat(3, 1fr); }
.headline-filters { display: flex; gap: 8px; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }
.headline-filters .button { width: auto; padding: 0 16px; }
.faq { margin-top: 30px; }
.faq-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.faq-head h3 { color: #2f1c54; margin: 0; }
.faq-head input { max-width: 320px; }
.faq-category { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6b7a7d; margin: 18px 0 8px; }
.faq-item { background: #fff; border: 1px solid #ebebeb; border-radius: 4px; margin-bottom: 8px; }
.faq-item summary { padding: 14px 18px; font-weight: 700; color: #2b373a; cursor: pointer; font-size: 14px; list-style: none; }
.faq-item summary::after { content: '+'; float: right; color: #00d7b3; font-size: 18px; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-answer { padding: 0 18px 14px; font-size: 14px; }
.faq-more { margin-top: 18px; font-size: 13px; }
@media (max-width: 680px) { .review-summary { flex-direction: column; align-items: stretch; } .notification-prefs { grid-template-columns: 1fr; } }
.faq-item summary, .faq-head input, .faq-answer { font-family: "Titillium Web", sans-serif; }
.faq-head input { border: 1px solid #ebebeb; border-radius: 4px; padding: 0 14px; height: 40px; background: #fff; }

/* ---- AI disclosure ---- */
.ai-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ai-option { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid #ebebeb; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 700; color: #2b373a; }
.ai-option.selected { border-color: #00d7b3; background: #f3fbf9; }
.ai-option input { width: auto; height: auto; margin: 0; accent-color: #00d7b3; }
.ai-details { margin: 6px 0 12px; }
.ai-rights .label-check { text-transform: none; font-weight: 400; line-height: 1.5; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; margin-top: 8px; }
.ai-badge.generated { background: #f3edff; color: #6b3fd4; }
.ai-badge.assisted { background: #f0f2f3; color: #535d5f; }
.product-preview-actions { position: relative; }
.card-ai-pill { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(107, 63, 212, .92); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; letter-spacing: .5px; }
.turnstile-box { margin: 6px 0 14px; min-height: 65px; }

/* ---- Legal pages (Markdown) ---- */
.legal-markdown h2 { font-size: 1.125em; margin: 26px 0 10px; color: #363636; }
.legal-markdown h3 { font-size: 1em; margin: 18px 0 8px; }
.legal-markdown ul, .legal-markdown ol { margin: 0 0 14px 22px; }
.legal-markdown ul { list-style: disc; } .legal-markdown ol { list-style: decimal; }
.legal-markdown li { margin-bottom: 6px; }
.legal-markdown table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .9em; display: block; overflow-x: auto; }
.legal-markdown th, .legal-markdown td { border: 1px solid #ebebeb; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-markdown th { background: #f8f8fb; }
.legal-markdown a { color: #7A65AE; }
.legal-markdown code { background: #f4f4f7; padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.legal-draft { border-left: 4px solid #f2b84b; padding-left: 12px; }
.legal-nav { margin-top: 30px; padding-top: 18px; border-top: 1px solid #ebebeb; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875em; }

/* ---- Cookie notice ---- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 9999; background: #fff; border: 1px solid #e3e1ec; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .875em; line-height: 1.5em; }
.cookie-notice p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .button { padding: 0 16px; white-space: nowrap; }
@media (max-width: 560px) { .cookie-notice { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: flex-end; } }
.legal-markdown p, .legal-markdown li, .legal-markdown td { font-weight: 400; color: #4a4a4a; font-size: 1em; line-height: 1.7em; }
.legal-markdown strong { color: #2b2b2b; font-weight: 700; }
.legal-markdown em { color: #888; }
.cookie-notice p { font-weight: 400; color: #4a4a4a; }

/* ---- Vouchers ---- */
.voucher-box { margin: 18px 0 6px; }
.voucher-form { display: flex; gap: 8px; }
.voucher-form input { flex: 1; text-transform: uppercase; }
.voucher-form .button { padding: 0 18px; white-space: nowrap; }
.voucher-applied { display: flex; align-items: center; gap: 10px; background: #effaf6; border: 1px dashed #00d7b3; border-radius: 4px; padding: 10px 12px; font-size: .875em; }
.voucher-applied .icon-tag { color: #00b896; }
.voucher-applied span:nth-child(2) { flex: 1; }
.voucher-remove { background: none; border: 0; color: #888; cursor: pointer; font-size: .9em; text-decoration: underline; }
.order-totals .discount-line span { color: #00b896; }
.price-was { text-decoration: line-through; color: #aaa; font-size: .85em; margin-right: 4px; }
.cart-voucher-note { font-size: .8125em; color: #888; margin: 10px 0 0; } .cart-voucher-note .icon-tag { color: #00b896; }
.voucher-form input { width: auto; min-width: 0; flex: 1 1 auto; }
.voucher-form .button { width: auto; flex: 0 0 auto; margin: 0; }

/* Mobile burger: centre the icon in its block (template rule keyed on alt="pull-icon") */
header .mobile-menu-handler img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }

/* Header logo (300x65): centre vertically in the 100px header */
header .logo { margin-top: 17px; }
header .logo img { display: block; width: 300px; height: auto; }

/* Footer logo: same artwork as the header, shown smaller (sharper than a separate small file) */
footer .logo.small img { display: block; height: 41px; width: auto; }
footer .logo.small, header .logo { width: auto; height: auto; }

/* Logo artwork is 600x130 (2x for sharp high-DPI screens); always shown at half size or smaller */
.logo.small { width: auto; height: auto; }
.logo.small img { display: block; height: 41px; width: auto; }

/* Catalog headline on mobile: the template forces padding:0 and a fixed 175px height here,
   which hid the count under the coloured bar and left large gaps. */
@media (max-width: 960px) {
    .section .content .headline.catalog-headline,
    .headline.catalog-headline {
        display: flex; flex-direction: column; align-items: stretch; gap: 12px;
        height: auto; padding: 16px 18px 18px 26px;
    }
    .section .content .headline.catalog-headline:before,
    .headline.catalog-headline:before { height: calc(100% + 2px); }
    .section .content .headline.catalog-headline h4 { float: none; text-align: left; line-height: 1.3em; margin: 0; }
    .headline.catalog-headline .mobile-filter-toggle,
    .headline.catalog-headline .sort-select { width: 100%; margin: 0 !important; float: none; }
}
@media (min-width: 961px) { .catalog-headline .sort-select { margin-left: auto !important; } }

/* ---- Reputation levels ---- */
.reputation-level { font-family: "Titillium Web", sans-serif; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: .8125em; font-weight: 700; line-height: 1.6em; cursor: help; white-space: nowrap; outline: none; }
.reputation-level .icon-trophy { font-size: .9em; }
.reputation-level.small { font-size: .75em; padding: 2px 9px; }
.reputation-level.level-new { background: #f0f0f4; color: #6b6b7b; }
.reputation-level.level-rising { background: #e3f6fe; color: #0b86b8; }
.reputation-level.level-established { background: #e6fbf7; color: #00a184; }
.reputation-level.level-top { background: #fdeaf0; color: #c8124a; }
.reputation-tip { display: none; position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 230px; padding: 10px 12px; background: #2f1c55; color: #fff; border-radius: 6px; font-size: 12px; font-weight: 400; line-height: 1.5em; white-space: normal; text-align: left; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.reputation-tip strong { display: block; margin-bottom: 2px; }
.reputation-tip em { display: block; margin-top: 4px; color: #7ff0dc; font-style: normal; }
.reputation-tip:after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #2f1c55; }
.reputation-level:hover .reputation-tip, .reputation-level:focus .reputation-tip { display: block; }
.author-bio .author-level { margin: 8px 0 6px; text-align: center; }

/* Product page publisher box: space between Follow and View Profile */
.author-bio .follow-form { margin: 16px 0 0; }
.author-bio .author-profile-link { display: block; margin-top: 12px; }

/* Site font everywhere: the template only set it on a, p and headings, so buttons,
   form controls and plain spans fell back to the browser's serif font. */
body, button, input, select, textarea { font-family: "Titillium Web", sans-serif; }
.radio-row { align-items: center; }
.radio-row label { margin: 0 !important; }

/* Product card hover: centre any icon inside the circles (template only had offsets for tag/heart) */
.product-list .product-item .circle { display: flex; align-items: center; justify-content: center; }
.product-list .product-item .circle span { position: static; line-height: 1; }
.product-list .product-item .circle span.icon-control-play { margin-left: 2px; } /* optical centre of the triangle */
.product-list.grid .product-item .preview-actions .preview-action:only-child { left: 0; right: 0; }

/* Product grids: rows instead of floats, so a taller card (longer title/description)
   can't push the next card into a gap. Widths and spacing stay the template's. */
.product-list.grid.catalog-grid, .product-list.grid.home-grid { display: flex; flex-wrap: wrap; align-items: stretch; }
.product-list.grid.catalog-grid > .product-item, .product-list.grid.home-grid > .product-item { float: none; }
.product-list.grid.catalog-grid > .clearfix, .product-list.grid.home-grid > .clearfix { display: none; }

/* Copyright report form */
.report-form .report-statements { margin: 6px 0 20px; }
.report-form .report-statements .label-check { display: block; margin-bottom: 12px; line-height: 1.5em; padding-left: 30px; position: relative; }
.report-form .report-statements .label-check .checkbox { position: absolute; left: 0; top: 2px; }
.report-form .report-statements .input-error { margin: -6px 0 12px 30px; }
.report-link { display: block; margin-top: 14px; font-size: .8em; color: #a1a1a1; }
.report-link:hover { color: #00d7b3; }
.takedown-note { font-size: .8em; color: #a1a1a1; max-width: 220px; line-height: 1.4em; }

/* Checkout: payment method choice */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #ebebeb; border-radius: 4px; cursor: pointer; transition: border-color .2s, background .2s; background: #fff; }
.pay-method:hover { border-color: #c9c9c9; }
.pay-method.selected { border-color: #00d7b3; background: rgba(0, 215, 179, .05); }
.pay-method input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-method-radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9c9c9; position: relative; }
.pay-method.selected .pay-method-radio { border-color: #00d7b3; }
.pay-method.selected .pay-method-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #00d7b3; }
.pay-method input:focus-visible + .pay-method-radio { box-shadow: 0 0 0 3px rgba(0, 215, 179, .3); }
.pay-method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pay-method-text strong { font-size: .875em; color: #2d1c52; }
.pay-method-text small { font-size: .75em; color: #a1a1a1; font-weight: 600; }
.pay-method-logos { display: flex; gap: 4px; flex-shrink: 0; }
.pay-method-logos .cc { font-size: 9px; font-weight: 700; letter-spacing: .3px; color: #2d1c52; border: 1px solid #ebebeb; border-radius: 3px; padding: 2px 4px; background: #fff; }
.pay-method-logos .pp { font-size: 13px; font-weight: 700; font-style: italic; color: #003087; }
.pay-method-logos .pp b { color: #009cde; }
.card-button { background: #2d1c52; color: #fff; width: 100%; border: 0; cursor: pointer; font-weight: 700; }
.card-button:hover { background: #00d7b3; color: #fff; }
.card-button[disabled] { opacity: .7; cursor: wait; }
.card-button .icon-lock { margin-right: 6px; font-size: .9em; }
@media (max-width: 480px) { .pay-method-logos { display: none; } }
