:root {
    --ink: #33454c;
    --muted: #5d6b72;
    --line: #e5e8ea;
    --bg: #f3f3f3;
    --teal: #008f78;
    --mint: #08d8aa;
    --cyan: #20aee8;
    --dark: #26383d;
    --gold: #ffb400;
    --orange: #ff9f1a;
    --card: #fff;
}

html { overflow-x: clip; }
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
iframe, video, embed, object { max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea, table { max-width: 100%; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(0, 143, 120, .22);
    outline-offset: 2px;
}
.wrap { width: min(1300px, calc(100% - 48px)); margin: 0 auto; }
.topbar { background: #fff; border-top: 3px solid #72c7c3; border-bottom: 1px solid var(--line); }
.topbar-inner { height: 88px; display: flex; align-items: center; gap: 30px; }
.topbar-inner > *,
.category-strip-inner > *,
.product-row > *,
.version-head > *,
.version-row > *,
.admin-card-head > *,
.admin-item > * { min-width: 0; }
.brand {
    width: 50px; height: 50px; border-radius: 8px; background: var(--teal); color: #fff;
    display: grid; place-items: center; font-size: 32px; font-weight: 900; font-style: italic;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.search { display: flex; align-items: stretch; width: min(600px, 45vw); height: 46px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,143,120,.12); }
.search button {
    flex: 0 0 auto; align-self: stretch; width: 46px; height: 100%; min-height: 0; max-height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; overflow: hidden; box-sizing: border-box;
    appearance: none; -webkit-appearance: none; box-shadow: none; outline: 0;
}
.search button:hover { background: #0a7a67; }
.search svg { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.search input { flex: 1 1 auto; align-self: stretch; min-width: 0; min-height: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; padding: 0 16px; font-size: 15px; line-height: normal; outline: 0; color: var(--ink); appearance: none; -webkit-appearance: none; box-shadow: none; }
.search input::placeholder { color: #96a1a5; }
.quick-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-weight: 700; }
.quick-nav a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); transition: color .15s; }
.quick-nav > a:not(.premium):hover { color: var(--teal); }
.quick-nav svg { width: 22px; fill: currentColor; }
.cat-modal-trigger { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; cursor: pointer; transition: color .15s; }
.cat-modal-trigger:hover { color: var(--teal); }
.cat-modal-trigger svg { width: 22px; fill: currentColor; }

/* Category popup modal */
.cat-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20, 33, 38, .58); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.cat-modal-overlay[hidden] { display: none; }
.cat-modal { position: relative; width: 100%; max-width: 960px; background: var(--card); border-radius: 14px; padding: 40px 44px 44px; box-shadow: 0 24px 60px rgba(10, 20, 24, .32); }
.cat-modal-close { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.cat-modal-close:hover { color: var(--ink); background: var(--bg); }
.cat-modal-brand { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 9px; background: var(--teal); color: #fff; font-weight: 800; font-size: 18px; }
.cat-modal h2 { margin: 0 0 24px; font-size: 26px; font-weight: 800; color: var(--dark); line-height: 1.3; }
.cat-modal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cat-modal-tab { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; position: relative; }
.cat-modal-tab svg { width: 18px; fill: currentColor; }
.cat-modal-tab:hover { border-color: var(--teal); }
.cat-modal-tab.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.cat-modal-panel { display: none; }
.cat-modal-panel.is-active { display: block; }
.cat-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-modal-item { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--ink); transition: border-color .15s, background .15s; }
.cat-modal-item:hover { border-color: var(--teal); background: #f2f8f7; color: var(--teal); }
.cat-modal-icon { display: flex; flex: 0 0 auto; }
.cat-modal-icon svg { width: 24px; fill: var(--teal); }
body.cat-modal-open { overflow: hidden; }
@media (max-width: 760px) {
    .cat-modal-grid { grid-template-columns: 1fr 1fr; }
    .cat-modal { padding: 32px 20px 30px; }
}
@media (max-width: 480px) {
    .cat-modal-grid { grid-template-columns: 1fr; }
}
.client-nav { position: relative; }
.client-nav summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    list-style: none;
    cursor: pointer;
}
.client-nav summary::-webkit-details-marker { display: none; }
.client-nav-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}
.client-nav-copy { display: grid; gap: 2px; line-height: 1.1; }
.client-nav-copy strong { font-size: 14px; }
.client-nav-copy small { color: var(--muted); font-size: 12px; font-weight: 700; }
.client-nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 250px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 30px rgba(18,36,43,.12);
}
.client-nav-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 12px;
    border-bottom: 1px solid #edf2f4;
    margin-bottom: 4px;
}
.client-nav-head strong { display: block; font-size: 15px; }
.client-nav-head small { color: var(--muted); font-size: 12px; font-weight: 700; }
.client-nav-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 4px;
    color: var(--ink);
    border-bottom: 1px solid #edf2f4;
}
.client-nav-menu a:last-child { border-bottom: 0; }
.client-nav-menu a:hover { color: var(--teal); }
.client-nav-menu a.is-logout { color: #dc2626; }
.client-nav-menu a.is-logout:hover { color: #b91c1c; }
.client-nav-menu a svg { width: 18px; }
.quick-nav a.premium {
    position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px;
    border-radius: 10px; background: linear-gradient(135deg, #2c4046, #16262b); color: #fff; font-size: 15px;
    box-shadow: 0 1px 2px rgba(18,36,43,.1); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.premium:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,36,43,.22); filter: brightness(1.05); }
.premium svg { width: 18px; fill: var(--gold); flex: 0 0 auto; }
.category-strip { border-top: 1px solid var(--line); position: relative; z-index: 10; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.category-strip-inner { display: flex; flex-wrap: nowrap; min-width: max-content; }
.category-strip-item { position: relative; flex: 0 0 auto; border-left: 1px solid var(--line); }
.category-strip-item:last-child { border-right: 1px solid var(--line); }
.category-strip-item > a { min-height: 88px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 18px; padding: 12px 18px; font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; white-space: nowrap; }
.category-strip-item > a .category-strip-label { display: inline-block; position: relative; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.category-strip svg { width: 28px; fill: #2d3b40; }
.category-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); box-shadow: 0 14px 26px rgba(18, 36, 43, .14); }
.category-strip-item.has-children:hover .category-dropdown,
.category-strip-item.has-children:focus-within .category-dropdown { display: block; }
.category-dropdown a { display: block; padding: 13px 20px; font-size: 15px; font-weight: 600; }
.category-dropdown a:hover { background: #f2f8f7; color: var(--teal); }
.page-bg { padding: 48px 0 70px; min-height: calc(100vh - 240px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; }
.two-col.sidebar-left { grid-template-columns: 340px minmax(0, 1fr); }
.two-col.sidebar-left .sidebar { order: 1; }
.two-col.sidebar-left .content-list { order: 2; }
.home-category-section { margin-bottom: 28px; }
.home-category-section:last-child { margin-bottom: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; min-height: 60px; margin-bottom: 14px; padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-left: 7px solid var(--teal); }
.section-title h1, .section-title h2 { margin: 0; font-size: 20px; font-weight: 400; }
.section-title h1, .section-title h2, .product-main, .version-info, .mini-product span:last-child { min-width: 0; }
.sort-by { width: min(100%, 220px); }
.crumb-parent { color: var(--teal); }
.crumb-sep { color: var(--muted); font-weight: 400; }
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 16px; }
.subcat-chips a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.subcat-chips a:hover { border-color: var(--teal); color: var(--teal); }
.subcat-chips a.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}
.tag-chip:hover,
.tag-chip-active {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}
.post-tag-cloud { margin: 0 0 18px; }
.post-detail-tags { margin-top: 24px; }
.cat-check-list { display: flex; flex-direction: column; }
.cat-check-list a { display: flex; align-items: center; gap: 13px; padding: 9px 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cat-check-list a:hover { color: var(--teal); }
.cat-check-list a .box { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #cfd6d8; border-radius: 4px; display: grid; place-items: center; }
.cat-check-list a.active .box { background: var(--teal); border-color: var(--teal); }
.cat-check-list a.active .box::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sort-by select { width: auto; margin-top: 0; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 5px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); }
.list-controls { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.per-page-by { display: flex; align-items: center; gap: 8px; width: auto; }
.per-page-by label { font-size: 14px; font-weight: 600; color: var(--ink); }
.per-page-by select { width: auto; margin-top: 0; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 5px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); }
.section-title a { padding: 6px 16px; border: 1px solid var(--ink); border-radius: 5px; font-size: 14px; }
.list-card { background: transparent; border: 0; margin-bottom: 22px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 22px; }
.pagination-btn { padding: 10px 20px; border: 1px solid var(--ink); border-radius: 5px; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; }
.pagination-btn:hover { border-color: var(--teal); color: var(--teal); }
.pagination-btn.is-disabled { opacity: .4; pointer-events: none; }
.pagination-page { font-size: 14px; font-weight: 600; color: var(--muted); }
.list-meta { margin: -4px 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.product-row { position: relative; display: grid; grid-template-columns: 60px minmax(170px, 1fr) 120px 120px 90px; align-items: center; gap: 12px; min-height: auto; margin-bottom: 14px; padding: 20px 16px; background: #fff; border: 1px solid var(--line); }
.list-card .product-row:last-child { margin-bottom: 0; }
.product-logo { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #0dca9e, #18a9ee); color: #05232b; font-size: 24px; font-weight: 900; }
.product-logo img, .mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-main h3 { margin: 0 0 5px; font-size: 19px; }
.product-main h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-main p { margin: 0 0 5px; font-size: 15px; color: var(--muted); }
.link-muted, .mini-product em, .tags { color: var(--teal); font-style: normal; font-weight: 700; font-size: 13px; }
.info-card .tags { font-weight: 400; }
.meta-box, .rating-box { min-height: auto; border-left: 1px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; font-size: 15px; overflow-wrap: anywhere; }
.meta-box strong, .rating-box strong { font-weight: 400; }
.meta-box svg { width: 20px; fill: #17aee8; }
.meta-box small { color: var(--muted); font-size: 13px; }
.star { color: #d5d5d5; font-size: 16px; line-height: 1; }
.star.active { color: var(--gold); }
.size-box { border-left: 1px solid var(--line); min-height: auto; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; padding-left: 14px; white-space: nowrap; text-align: right; }
.size-box .size-unit { font-size: 0.7em; font-weight: 600; margin-left: 1px; white-space: nowrap; }
.big-size .size-unit { font-size: 0.7em; font-weight: 400; margin-left: 1px; white-space: nowrap; }
.badge-featured { position: absolute; top: 12px; left: -13px; background: #ffc400; color: #fff; padding: 3px 7px; border-radius: 2px; font-size: 11px; }
.badge-tag { position: absolute; top: 12px; left: -13px; color: #fff; padding: 3px 7px; border-radius: 2px; font-size: 11px; font-weight: 700; }
.badge-tag--latest { background: #e02424; }
.badge-tag--featured { background: #ffc400; }
.badge-tag--pre-activated { background: #2f7dd1; }
.badge-tag--recommended { background: #7c3aed; }
.field-hint { font-size: 12px; color: var(--adm-muted, #64748b); margin: -6px 0 10px; }
.badge-crown { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; line-height: 0; }
.badge-crown svg { width: 18px; fill: var(--gold); }
.nav-premium-crown { position: absolute; top: -14px; right: -16px; display: inline-flex; align-items: center; line-height: 0; pointer-events: none; }
.nav-premium-crown svg { width: 16px; fill: var(--gold); }
.side-card, .download-card, .info-card, .product-article, .admin-card { background: #fff; border: 1px solid #dfe4e7; border-radius: 8px; box-shadow: 0 1px 0 rgba(18,36,43,.02); }
.sidebar { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 20px; }
.side-card h2, .info-card h2 { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 400; }
.thanks-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 46px 40px; margin-bottom: 22px; }
.thanks-card.has-ad { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.thanks-card-main { min-width: 0; flex: 1 1 260px; }
.thanks-card-ad { flex: none; max-width: 100%; }
.thanks-card-ad img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
.thanks-ad-toggle { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 700; }
.thanks-ad-toggle input { width: auto; }
.thanks-ad-preview { max-width: 220px; margin: 4px 0; }
.thanks-ad-preview img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.thanks-icon { width: 64px; height: 64px; color: var(--ink); margin-bottom: 16px; }
.thanks-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.thanks-card h1 { margin: 0 0 6px; font-size: 32px; }
.thanks-product-name { display: block; margin-bottom: 24px; color: var(--teal); font-weight: 800; font-size: 16px; }
.thanks-btn { display: inline-flex; align-items: center; gap: 10px; justify-content: space-between; width: 100%; max-width: 380px; padding: 13px 14px 13px 22px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; cursor: default; transition: background .15s ease, transform .1s ease; }
.thanks-btn.is-ready:hover { background: #0c9a7a; }
.thanks-btn.is-ready:active { transform: scale(.98); }
.thanks-btn-main { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.thanks-btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thanks-btn-spinner { width: 20px; height: 20px; flex: none; border-radius: 999px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: thanks-spin .8s linear infinite; }
.thanks-btn-arrow { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.thanks-btn-arrow svg { width: 100%; height: 100%; }
.thanks-btn.is-ready { cursor: pointer; }
.thanks-btn-size { flex: none; background: rgba(0,0,0,.18); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.thanks-btn-size .size-unit { font-weight: 600; }
@keyframes thanks-spin { to { transform: rotate(360deg); } }
.thanks-zip-note { margin: 18px 0 0; color: #d0342c; font-weight: 700; font-size: 14px; }
.thanks-faq-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.thanks-faq-note a { color: inherit; text-decoration: underline; }
.faq-extra-text { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.faq-extra-text-bottom { margin-top: 18px; margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.faq-item summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--teal); font-weight: 400; margin-left: 12px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mini-product { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; margin-bottom: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-card .mini-product:last-child { border-bottom: 0; padding-bottom: 0; }
.side-card .mini-product:first-child { padding-top: 0; }
.side-card-sticky { position: sticky; top: 20px; }
.mini-icon { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #32404a, #13d6a4); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; }
.mini-product strong, .mini-product em, .mini-product b { display: block; }
.mini-product strong { font-size: 15px; font-weight: 400; }
.product-main h3 { margin: 0; font-weight: 400; }
.mini-product em { font-size: 12px; font-weight: 400; }
.mini-product b { margin-top: 3px; font-size: 15px; font-weight: 600; }
.mini-product b .size-unit { font-size: 0.7em; font-weight: 600; margin-left: 1px; }
.hero-bar { margin-top: -48px; margin-bottom: 52px; padding: 16px 0; color: #fff; background: linear-gradient(100deg, #11d5aa 0%, #20aee8 100%); }
.hero-bar .wrap { display: flex; align-items: center; justify-content: space-between; }
.hero-bar p { margin: 0; font-size: clamp(20px, 2.4vw, 24px); font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.hero-bar span { font-weight: 400; overflow-wrap: anywhere; text-align: right; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; align-items: start; }
.product-side { width: 400px; max-width: 100%; }
.product-article { min-width: 0; padding: 34px 38px 44px; border-radius: 8px 8px 0 0; overflow: hidden; }
.product-article h1 { max-width: 940px; margin: 0 0 24px; font-size: clamp(26px, 2vw, 32px); line-height: 1.15; letter-spacing: 0; font-weight: 700; color: var(--dark); }
.product-article h2 { font-size: 38px; margin-top: 34px; }
.lead, .product-article p { color: #53636b; font-size: 17px; line-height: 1.85; }
.product-overview-content { color: #53636b; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.product-overview-content p { margin: 0 0 16px; }
.product-overview-content h1, .product-overview-content h2, .product-overview-content h3, .product-overview-content h4, .product-overview-content h5, .product-overview-content h6 { color: var(--dark); margin: 24px 0 12px; }
.product-overview-content ul, .product-overview-content ol { margin: 0 0 16px; padding-left: 22px; }
.product-overview-content img { max-width: 100%; height: auto; border-radius: 6px; }
.product-overview-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.product-overview-content table td, .product-overview-content table th { border: 1px solid var(--line); padding: 8px 10px; }
.product-overview-content pre { overflow-x: auto; max-width: 100%; }
.product-overview-content a { color: var(--teal); }
.screenshot { position: relative; margin: 72px -20px 36px; min-height: 390px; padding: 42px 64px; background: #eeeeee; display: grid; grid-template-columns: 1fr; align-items: center; overflow: hidden; }
.screenshot button { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(38,56,61,.9); font-size: 42px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.screenshot button:first-child { left: 28px; background: rgba(38,56,61,.12); }
.screenshot button:last-child { right: 28px; }
.screenshot-overlay-btn { position: absolute !important; z-index: 3; top: 16px; right: 16px; left: auto; padding: 9px 18px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 14px rgba(0,0,0,.18); transition: background .15s; white-space: nowrap; }
.screenshot-overlay-btn:hover { background: #00725f; }
.real-shot { width: 100%; min-height: 360px; max-height: 560px; object-fit: contain; display: block; background: #dfe4e7; }
.fake-shot { min-height: 320px; padding: 28px; background: radial-gradient(circle at 50% 35%, #10396e, #07142f 55%, #05091d); color: #b9d9ff; border: 1px solid #1b2d66; box-shadow: inset 0 0 60px rgba(30,174,232,.25); overflow: hidden; }
.product-preview-shot {
    width: 100%;
    min-height: 400px;
    display: grid;
    align-content: end;
    gap: 14px;
    padding: 42px;
    background:
        linear-gradient(110deg, rgba(219, 0, 22, .94), rgba(180, 0, 10, .7)),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.3), transparent 28%),
        linear-gradient(135deg, #1b3038, #0d1a1e);
    color: #fff;
}
.preview-brand { font-size: clamp(28px, 4vw, 48px); font-weight: 900; letter-spacing: 0; opacity: .92; }
.preview-name { font-size: clamp(42px, 7vw, 88px); line-height: .92; font-weight: 900; }
.preview-meta { font-size: 18px; opacity: .88; }
.download-card { width: 100%; padding: 30px 32px 36px; text-align: center; margin-bottom: 34px; }
.big-size { font-size: clamp(40px, 7vw, 62px); line-height: 1; font-weight: 900; letter-spacing: 0; overflow-wrap: anywhere; }
.big-size::first-letter { letter-spacing: .03em; }
.rating-line { margin: 14px 0 32px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.rating-line b { padding: 2px 8px; border-radius: 20px; background: #996d00; color: #fff; }
.rating-stars { display: inline-flex; align-items: center; gap: 4px; }
.rating-stars button { width: 25px; height: 28px; padding: 0; border: 0; background: transparent; color: #d5d5d5; font-size: 25px; line-height: 1; cursor: pointer; }
.rating-stars button.is-active, .rating-stars button:hover, .rating-stars button:hover ~ button { color: var(--gold); }
.rating-notice { margin: -16px 0 16px !important; color: var(--teal); text-align: center !important; font-size: 14px !important; }
.download-card p { margin: 0 0 22px; text-align: left; font-size: 16px; font-weight: 700; }
.dot { display: inline-block; width: 22px; height: 22px; border: 7px solid #12caa2; border-radius: 50%; vertical-align: middle; margin-right: 16px; }
.download-btn {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    padding: 14px 18px;
    margin-top: 15px;
    color: #fff;
    text-align: center;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
    text-decoration: none;
    box-shadow: none;
}
.download-btn-dark { background: #26383d; }
.download-btn-green { background: #008f78; }
.download-btn-orange { background: #ff9f1a; color: #fff; }
.download-btn:hover { filter: brightness(.96); }
.download-btn small { font-size: 12px; font-weight: 600; margin-left: 4px; }
.btn-icon { display: inline-block; margin-right: 12px; font-weight: 900; }
.btn-icon svg { width: 18px; height: 18px; color: #fff; vertical-align: -3px; }
.download-actions { display: grid; grid-template-columns: 4fr 1fr; gap: 14px; align-items: stretch; margin-top: 20px; }
.download-actions > * { min-width: 0; }
.download-actions .download-btn { min-width: 0; margin-top: 0; min-height: 52px; padding-left: 10px; padding-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-actions .square-action { width: 100%; min-width: 0; }
.square-action {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: #008f78;
    color: #fff;
    width: 54px;
    min-width: 54px;
    min-height: 52px;
    padding: 0 8px;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
}
.square-heart { overflow: hidden; font-size: 27px; line-height: 1; padding: 0; }
.square-action.copied, .square-action.saved { background: #0b6f60; }
.download-btn-favorite { display: flex; width: 100%; margin-top: 14px; background: #008f78; border: 0; font: inherit; }
.download-btn-favorite.saved { background: #0b6f60; }
.download-btn-favorite [data-fav-icon] { font-size: 18px; }
.history { display: inline-flex; align-items: center; gap: 8px; justify-content: center; margin-top: 24px; color: var(--teal); font-weight: 800; font-size: 17px; }
.history svg { width: 20px; height: 20px; }
.previous-versions { margin: 54px -2px 0; padding: 34px 38px 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.previous-versions h2 { margin: 0 0 30px; font-size: 29px; color: var(--dark); }
.version-head, .version-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) minmax(150px, 220px); gap: 16px; }
.version-head { padding: 0 18px 17px; font-size: 17px; font-weight: 800; border-bottom: 1px solid var(--line); }
.version-row { align-items: center; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.version-row time { color: #53636b; font-weight: 700; line-height: 1.45; }
.version-info { display: grid; grid-template-columns: 105px 1fr; gap: 10px; color: #53636b; }
.version-info strong { color: var(--ink); }
.version-downloads { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.version-downloads a { display: grid; grid-template-rows: 38px auto; align-items: center; justify-items: center; min-width: 44px; color: #fff; font-size: 22px; font-weight: 900; }
.version-downloads a { background: linear-gradient(var(--teal), var(--teal)) center top / 38px 38px no-repeat; }
.version-downloads small { margin-top: 6px; color: #53636b; font-size: 13px; font-weight: 700; white-space: nowrap; }
.version-row.is-hidden { display: none; }
.show-more-versions { display: block; margin: 26px auto 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.comments-section { margin: 34px -2px 0; padding: 34px 38px 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.comments-section h2 { margin: 0 0 24px; font-size: 26px; color: var(--dark); }
.comments-section h3 { margin: 0 0 6px; font-size: 19px; }
.comment-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.comment-item { display: flex; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.comment-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0dca9e, #18a9ee); color: #05232b; font-weight: 800; font-size: 14px; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.comment-meta strong { font-size: 15px; }
.comment-meta time { color: var(--muted); font-size: 13px; }
.comment-body p { margin: 0; color: var(--muted); line-height: 1.7; }
.comment-note { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.comment-note .req, .comment-form .req { color: #d92d20; }
.comment-flash { margin: 0 0 18px; padding: 12px 16px; border-radius: 6px; background: rgba(0,143,120,.1); color: var(--teal); font-weight: 700; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.comment-form .form-row { margin-bottom: 18px; }
.comment-message-label { display: block; margin-bottom: 22px; }
.comment-form input, .comment-form textarea { width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,143,120,.15); }
.comment-submit { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.comment-submit svg { width: 17px; height: 17px; }
.comment-submit:hover { background: #0c9a7a; }
.info-card { padding: 30px 32px; margin-bottom: 34px; }
.info-list { margin: 0; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row dt { flex-shrink: 0; margin: 0; font-weight: 400; }
.info-row dd { margin: 0; text-align: left; color: var(--muted); font-weight: 400; word-break: break-word; }
.product-detail-tags { margin-top: 14px; font-size: 14px; line-height: 1.9; }
.product-detail-tags .tag-chip-plain { color: var(--teal); font-weight: 400; text-decoration: none; }
.product-detail-tags .tag-chip-plain:hover { text-decoration: underline; }
.narrow { max-width: 520px; }
.admin-panel { display: none; scroll-margin-top: 20px; }
.admin-panel.is-active { display: block; }
[data-tab-panel][hidden] { display: none !important; }

/* ============================================================
   ADMIN CONSOLE — clean enterprise dashboard theme
   Scoped entirely to body.is-admin so the storefront is untouched.
   ============================================================ */
body.is-admin {
    --adm-ink: #101828;
    --adm-muted: #667085;
    --adm-line: #d9dee7;
    --adm-bg: #eef1f5;
    --adm-panel: #ffffff;
    --adm-accent: #2867d8;
    --adm-accent-dark: #1849a9;
    --adm-accent-soft: #dbe8ff;
    --adm-danger: #d92d20;
    --adm-sidebar: #16233a;
    --adm-sidebar-2: #0b1524;
    --adm-radius-lg: 22px;
    --adm-radius: 16px;
    --adm-radius-sm: 12px;
    --adm-radius-xs: 8px;
    --adm-radius-pill: 999px;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(1100px 420px at 8% -10%, rgba(40,103,216,.08), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, rgba(34,197,94,.06), transparent 55%),
        var(--adm-bg);
}
body.is-admin .topbar { display: none; }
body.is-admin .search { display: none; }
body.is-admin .quick-nav { display: none; }
body.is-admin .category-strip { display: none; }
body.is-admin .site-footer { display: none; }

.admin-page { padding-top: 4px; padding-bottom: 48px; }
.admin-page-head {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)),
        linear-gradient(90deg, rgba(40,103,216,.08), transparent 44%);
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-lg);
    box-shadow: 0 16px 34px -14px rgba(15,23,42,.14);
}
.admin-page-title h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.05; color: var(--adm-ink); }
.admin-page-title p { margin: 0; color: var(--adm-muted); font-size: 15px; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-summary-card {
    display: grid;
    gap: 8px;
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--adm-line);
    border-left: 5px solid var(--adm-accent);
    border-radius: var(--adm-radius-sm);
    background: #fff;
    transition: transform .14s, box-shadow .14s;
}
.admin-summary-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(15,23,42,.14); }
.admin-summary-card span {
    color: var(--adm-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.admin-summary-card strong {
    color: var(--adm-ink);
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1;
}
.admin-summary-card small {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.admin-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid var(--adm-line);
    background: #fff;
    color: var(--adm-ink);
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--adm-radius-sm);
    transition: background .14s, border-color .14s, color .14s, box-shadow .14s, transform .14s;
}
.admin-link-btn:hover { background: #eef4ff; border-color: #bfd2f7; color: var(--adm-accent-dark); transform: translateY(-1px); }
.admin-link-btn.is-active {
    background: linear-gradient(135deg, #4f8cf7, var(--adm-accent));
    border-color: var(--adm-accent-dark);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 16px -6px rgba(40,103,216,.5);
}
.admin-link-btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.admin-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-panels { display: grid; gap: 18px; }

.admin-shell { display: flex; align-items: stretch; gap: 18px; min-height: calc(100vh - 89px); padding: 18px 18px 18px 18px; }
body.is-admin .admin-shell { min-height: 100vh; padding: 18px; }

/* Sidebar — floating gradient card, like a premium client dashboard */
.admin-sidebar { flex: 0 0 272px; display: flex; flex-direction: column; gap: 6px; padding: 0; background: linear-gradient(165deg, var(--adm-sidebar), var(--adm-sidebar-2)); border: 1px solid #0b1626; border-radius: var(--adm-radius-lg); box-shadow: 0 20px 40px -12px rgba(9,17,32,.35); position: sticky; top: 18px; align-self: flex-start; min-height: calc(100vh - 36px); overflow: hidden; }
body.is-admin .admin-sidebar { top: 18px; min-height: calc(100vh - 36px); }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 22px 18px 18px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand-mark { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--adm-radius-sm); background: linear-gradient(135deg, #4f8cf7, #2867d8); box-shadow: 0 8px 16px -4px rgba(40,103,216,.55); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.admin-brand strong { display: block; font-size: 26px; color: #fff; line-height: 1; }
.admin-brand small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .08em; }
.admin-shortcuts { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 4px 10px; }
.admin-shortcuts a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--adm-radius-sm); color: rgba(255,255,255,.88); font-size: 14px; font-weight: 600; transition: background .14s, color .14s, transform .14s; border-left: 3px solid transparent; }
.admin-shortcuts a svg { flex: 0 0 auto; width: 18px; height: 18px; fill: currentColor; opacity: .9; }
.admin-shortcuts a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.admin-shortcuts a.is-active { background: linear-gradient(90deg, rgba(89,164,255,.22), rgba(89,164,255,.05)); color: #fff; border-left-color: #59a4ff; box-shadow: inset 0 0 0 1px rgba(89,164,255,.16); }
.admin-shortcuts a.is-active svg { opacity: 1; }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 18px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-foot a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--adm-radius-sm);
    background: rgba(255,255,255,.06);
    color: #f8fbff;
    font-size: 13px;
    font-weight: 700;
    transition: background .14s, transform .14s;
}
.admin-sidebar-foot a:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.admin-sidebar-foot a:last-child {
    border-color: rgba(255,107,107,.45);
    background: rgba(217,45,32,.18);
    color: #fff;
}
.admin-sidebar-foot a:last-child:hover { background: rgba(217,45,32,.28); }

/* Main content */
.admin-content { flex: 1; min-width: 0; padding: 4px 4px 50px; }
.admin-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 0 0 16px; }
.admin-eyebrow { display: block; margin-bottom: 7px; color: var(--adm-accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-topline h1 { margin: 0 0 8px; font-size: 40px; font-weight: 800; color: var(--adm-ink); line-height: 1; }
.admin-topline p { margin: 0; color: var(--adm-muted); font-size: 14px; }
.admin-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-top-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 16px; border: 1px solid var(--adm-line); background: #fff; color: var(--adm-ink); font-size: 13px; font-weight: 700; border-radius: var(--adm-radius-sm); box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .14s, box-shadow .14s, background .14s; }
.admin-top-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(15,23,42,.1); background: #f8fafc; }
.admin-top-btn.is-success { border-color: #98d8b7; background: #eefbf3; color: #157347; }
.admin-top-btn.is-danger { border-color: #f2b8b5; background: #fff2f1; color: #c62828; }
.admin-top-btn.is-neutral { background: #f8fafc; }
.admin-user-badge { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 40px; padding: 7px 16px 7px 7px; border: 1px solid var(--adm-line); background: #fff; border-radius: var(--adm-radius-pill); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.admin-user-badge::before { content: ''; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, #4f8cf7, #2867d8); }
.admin-user-badge strong { font-size: 13px; color: var(--adm-ink); }
.admin-user-badge span { font-size: 12px; color: var(--adm-muted); }
.admin-tabs-content { display: block; max-width: none; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.admin-stat-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 106px; padding: 18px 18px; color: #fff; border-radius: var(--adm-radius); box-shadow: 0 14px 26px -10px rgba(16,24,40,.28); transition: transform .16s, box-shadow .16s; overflow: hidden; }
.admin-stat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 55%); pointer-events: none; }
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(16,24,40,.36); }
a.admin-stat-card.is-linked { text-decoration: none; cursor: pointer; }
.admin-visitor-block + .admin-visitor-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--adm-line); }
.admin-visitor-table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--adm-line); background: var(--adm-panel); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.admin-visitor-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.admin-visitor-table thead th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--adm-muted); background: #f8fafc; border-bottom: 1px solid var(--adm-line); white-space: nowrap; }
.admin-visitor-table tbody td { padding: 12px 16px; font-size: 13px; color: var(--adm-ink); border-bottom: 1px solid var(--adm-line); vertical-align: middle; white-space: nowrap; }
.admin-visitor-table tbody tr:last-child td { border-bottom: 0; }
.admin-visitor-table tbody tr:hover td { background: #fafbfe; }
.admin-visitor-table td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.admin-visitor-live-ip { display: inline-flex; align-items: center; gap: 8px; }
.admin-visitor-live-ip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.16); flex: 0 0 auto; }
.admin-visitor-location { display: inline-flex; align-items: center; gap: 6px; color: var(--adm-ink); }
.admin-visitor-location::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--adm-accent); flex: 0 0 auto; }
.admin-visitor-location.is-muted { color: var(--adm-muted); }
.admin-visitor-location.is-muted::before { background: var(--adm-line); }
.admin-visitor-page-pill { display: inline-flex; padding: 3px 10px; font-size: 12px; font-weight: 600; background: var(--adm-accent-soft); color: var(--adm-accent-dark); border-radius: var(--adm-radius-pill); }
.admin-visitor-empty { padding: 24px 16px; text-align: center; color: var(--adm-muted); font-size: 13px; }
.admin-visitor-country-list { display: flex; flex-direction: column; gap: 0; margin-top: 14px; border: 1px solid var(--adm-line); border-radius: 10px; overflow: hidden; background: var(--adm-panel); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.admin-visitor-country-row { display: grid; grid-template-columns: 28px 150px 1fr 96px 84px 52px; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--adm-line); transition: background .12s; }
.admin-visitor-country-row:last-child { border-bottom: 0; }
.admin-visitor-country-row:hover { background: #f8fafc; }
.admin-visitor-country-row.is-top { background: linear-gradient(90deg, var(--adm-accent-soft), transparent 60%); }
.admin-visitor-country-rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #eef1f6; color: var(--adm-muted); font-size: 11px; font-weight: 700; }
.admin-visitor-country-row.is-top .admin-visitor-country-rank { background: var(--adm-accent); color: #fff; }
.admin-visitor-country-name { font-size: 13.5px; font-weight: 600; color: var(--adm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-visitor-country-name.is-muted { color: var(--adm-muted); font-weight: 500; font-style: italic; }
.admin-visitor-country-bar-track { position: relative; height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.admin-visitor-country-bar { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--adm-accent), var(--adm-accent-dark)); transition: width .3s ease; }
.admin-visitor-country-count { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--adm-ink); text-align: right; font-variant-numeric: tabular-nums; }
.admin-visitor-country-count small { font-size: 10.5px; font-weight: 600; color: var(--adm-muted); text-transform: uppercase; letter-spacing: .03em; }
.admin-visitor-country-count.is-secondary { color: var(--adm-muted); font-weight: 600; }
.admin-visitor-country-percent { font-size: 12px; font-weight: 700; color: var(--adm-accent-dark); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
    .admin-visitor-country-row { grid-template-columns: 22px 90px 1fr 64px; gap: 10px; padding: 11px 14px; }
    .admin-visitor-country-count.is-secondary, .admin-visitor-country-percent { display: none; }
}
.admin-stat-icon { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: var(--adm-radius-sm); background: rgba(255,255,255,.18); display: grid; place-items: center; flex: 0 0 auto; }
.admin-stat-icon svg { width: 26px; height: 26px; fill: currentColor; }
.admin-stat-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-stat-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.admin-stat-copy strong { font-size: 18px; line-height: 1.1; }
.admin-stat-copy small { font-size: 12px; opacity: .9; }
.admin-stat-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.admin-stat-purple { background: linear-gradient(135deg, #9333ea, #6b21d9); }
.admin-stat-dark { background: linear-gradient(135deg, #4b5468, #262b38); }
.admin-stat-orange { background: linear-gradient(135deg, #fb923c, #c2410c); }
.admin-stat-blue { background: linear-gradient(135deg, #3b82f6, #0f52ba); }
.admin-stat-pink { background: linear-gradient(135deg, #ec4899, #a3155f); }
.admin-stat-olive { background: linear-gradient(135deg, #ca8a04, #8a7c00); }
.admin-stat-magenta { background: linear-gradient(135deg, #d946ef, #9d2a76); }
.admin-stat-teal { background: linear-gradient(135deg, #14b8a6, var(--teal)); }
.admin-stat-cyan { background: linear-gradient(135deg, #38bdf8, var(--cyan)); }
.admin-stat-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.admin-stat-indigo { background: linear-gradient(135deg, #6366f1, #3730a3); }
.admin-stat-live-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #22e07a; box-shadow: 0 0 0 2px #fff; animation: admin-stat-pulse 1.6s ease-out infinite; }
@keyframes admin-stat-pulse {
    0% { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(34, 224, 122, .6); }
    100% { box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(34, 224, 122, 0); }
}

.admin-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-quick-link { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--adm-line); background: #f8fafc; color: var(--adm-ink); border-radius: var(--adm-radius-sm); transition: transform .14s, box-shadow .14s, border-color .14s; }
.admin-quick-link:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(15,23,42,.16); border-color: #bfd2f7; }
.admin-quick-link span { width: 42px; height: 42px; border-radius: var(--adm-radius-sm); display: grid; place-items: center; background: var(--adm-accent-soft); color: var(--adm-accent-dark); }
.admin-quick-link span svg { width: 20px; height: 20px; fill: currentColor; }
.admin-quick-link strong { font-size: 15px; }
.admin-quick-link small { color: var(--adm-muted); font-size: 13px; line-height: 1.45; }
.admin-overview-list { display: grid; gap: 10px; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-overview-block {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-sm);
    background: #f8fafc;
}
.admin-overview-block h2 {
    margin: 0;
    color: var(--adm-ink);
    font-size: 17px;
    line-height: 1.2;
}
.admin-overview-actions { display: grid; gap: 10px; }
.admin-overview-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-xs);
    background: #fff;
    color: var(--adm-ink);
    font-size: 14px;
    font-weight: 700;
    transition: transform .12s;
}
.admin-overview-action:hover {
    border-color: #bfd2f7;
    background: #eef4ff;
    color: var(--adm-accent-dark);
}
.admin-overview-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--adm-line); }
.admin-overview-row:last-child { border-bottom: 0; }
.admin-overview-row span { color: var(--adm-muted); font-size: 14px; }
.admin-overview-row strong { color: var(--adm-ink); font-size: 16px; }
.admin-mini-list { display: grid; gap: 12px; }
.admin-mini-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: flex-start; }
.admin-mini-thumb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4f8cf7, #1f6feb); color: #fff; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(31,111,235,.6); }
.admin-mini-item strong { display: block; color: var(--adm-ink); font-size: 14px; }
.admin-mini-item small { display: block; color: var(--adm-muted); font-size: 12px; line-height: 1.5; }
.admin-mini-item p { margin: 6px 0 0; color: var(--adm-muted); font-size: 13px; line-height: 1.5; }

.admin-card { padding: 24px 28px; background: var(--adm-panel); border: 1px solid var(--adm-line); border-radius: var(--adm-radius); box-shadow: 0 10px 24px -16px rgba(15,23,42,.18); }
.admin-card h1 { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--adm-line); font-size: 16px; font-weight: 700; color: var(--adm-ink); }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -4px 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--adm-line); }
.admin-card-head h1 { margin: 0; padding: 0; border: 0; display: flex; align-items: center; gap: 10px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--adm-radius-pill); background: var(--adm-accent-soft); color: var(--adm-accent-dark); font-size: 12px; font-weight: 700; }

.admin-search { position: relative; display: flex; align-items: center; width: min(300px, 100%); margin: 0; }
.admin-search svg { position: absolute; left: 12px; width: 15px; fill: var(--adm-muted); pointer-events: none; }
.admin-search input[type="text"] { margin: 0; padding: 0 30px 0 36px; height: 40px; font-size: 13px; border-radius: var(--adm-radius-pill); }
.admin-search input[type="text"]:focus { outline: 0; border-color: var(--adm-accent); box-shadow: 0 0 0 3px var(--adm-accent-soft); }
.admin-search .clear-search { position: absolute; right: 11px; color: var(--adm-muted); font-size: 17px; font-weight: 700; line-height: 1; }
.admin-search .clear-search:hover { color: var(--adm-danger); }
.admin-per-page { display: flex; align-items: center; margin: 0; }
.admin-per-page label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--adm-muted); }
.admin-per-page select { height: 40px; padding: 0 10px; border-radius: var(--adm-radius-sm); font-size: 13px; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--adm-line); }
.admin-pagination-status { font-size: 13px; color: var(--adm-muted); }
.admin-pagination .tiny-btn.is-disabled { opacity: .4; pointer-events: none; }

body.is-admin label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 14px; }
body.is-admin input, body.is-admin select, body.is-admin textarea { margin-top: 6px; padding: 10px 12px; font-size: 14px; border: 1px solid var(--adm-line); border-radius: var(--adm-radius-sm); background: #fff; color: var(--adm-ink); transition: border-color .14s, box-shadow .14s; }
body.is-admin input:focus, body.is-admin select:focus, body.is-admin textarea:focus { border-color: var(--adm-accent); box-shadow: 0 0 0 3px rgba(40,103,216,.14); }
body.is-admin input:focus, body.is-admin select:focus, body.is-admin textarea:focus { outline: 0; border-color: var(--adm-accent); box-shadow: 0 0 0 3px var(--adm-accent-soft); }
body.is-admin .search input { margin-top: 0; padding: 0 16px; border: 0; border-radius: 0; background: transparent; }
body.is-admin .search input:focus { border: 0; box-shadow: none; }
body.is-admin .image-field { border-color: var(--adm-line); background: #fafbfe; border-radius: var(--adm-radius-sm); }

body.is-admin .download-btn { border-radius: var(--adm-radius-sm); min-height: 44px; font-size: 14px; font-weight: 700; box-shadow: none; }
body.is-admin .download-btn-green { background: var(--adm-accent); }
body.is-admin .download-btn-green:hover { background: var(--adm-accent-dark); filter: none; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 0; border-radius: var(--adm-radius-sm); background: linear-gradient(135deg, #4f8cf7, var(--adm-accent)); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 18px -8px rgba(40,103,216,.55); transition: transform .14s, box-shadow .14s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 22px -8px rgba(40,103,216,.6); }
.btn-primary:hover { background: var(--adm-accent-dark); }

body.is-admin .tiny-btn { border-radius: var(--adm-radius-xs); padding: 7px 11px; font-size: 13px; font-weight: 600; border-color: var(--adm-line); color: #334155; transition: transform .12s, box-shadow .12s; }
body.is-admin .tiny-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(15,23,42,.2); }
body.is-admin .tiny-btn:hover { background: #f1f5f9; }
body.is-admin .tiny-btn.danger { color: var(--adm-danger); border-color: #fecaca; background: #fef2f2; }
body.is-admin .tiny-btn.danger:hover { background: #fee2e2; }
body.is-admin .tiny-btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
body.is-admin .tiny-btn-primary:hover { opacity: .9; }

body.is-admin .admin-item { padding: 14px 2px; border-bottom-color: var(--adm-line); }
body.is-admin .admin-item:hover { background: #fafbfe; }
body.is-admin .pill-muted { background: #f1f5f9; color: #475569; }
body.is-admin .pill-teal { background: var(--adm-accent-soft); color: var(--adm-accent-dark); }
body.is-admin .pill-gold { background: #fffbeb; color: #b45309; }
body.is-admin .pill-published { background: #ecfdf5; color: #047857; }
body.is-admin .pill-draft { background: #f1f5f9; color: var(--adm-muted); }
body.is-admin .alert { background: #fef2f2; color: #b91c1c; }
body.is-admin .hint, body.is-admin .empty { color: var(--adm-muted); font-size: 13px; }
body.is-admin .category-item-child::before { color: var(--adm-muted); }

/* Login screen */
.login-screen { min-height: calc(100vh - 89px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.login-card { width: 100%; max-width: 380px; padding: 40px 36px; background: var(--adm-panel, #fff); border: 1px solid var(--adm-line, #e2e8f0); border-radius: var(--adm-radius-lg, 20px); box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 30px 60px -18px rgba(15,23,42,.22); }
.login-mark { width: 44px; height: 44px; margin-bottom: 20px; border-radius: var(--adm-radius-sm, 12px); background: linear-gradient(135deg, #4f8cf7, var(--adm-accent, var(--teal))); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 10px 18px -6px rgba(40,103,216,.5); }
.login-eyebrow { display: block; margin-bottom: 8px; color: var(--adm-accent, var(--teal)); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.login-card h1 { margin: 0 0 6px; font-size: 23px; font-weight: 800; color: var(--adm-ink, #0f172a); }
.login-sub { margin: 0 0 24px; color: var(--adm-muted, #64748b); font-size: 14px; }
.login-card label { color: var(--adm-ink, #0f172a); }
.login-card input { background: #fff; color: var(--adm-ink, #0f172a); }
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus { -webkit-text-fill-color: var(--adm-ink, #0f172a); box-shadow: 0 0 0 1000px #fff inset; transition: background-color 9999s ease-in-out 0s; }
.login-card .btn-primary { width: 100%; margin-top: 8px; background: var(--adm-accent, var(--teal)); }
.login-card .btn-primary:hover { background: var(--adm-accent-dark, #0c9a7a); }

@media (max-width: 980px) {
    .admin-summary-grid,
    .admin-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell { flex-direction: column; min-height: 0; padding: 10px; gap: 10px; }
    .admin-sidebar { position: static; min-height: 0; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
    .admin-brand { width: 100%; border-bottom: 0; margin-bottom: 4px; padding-bottom: 4px; }
    .admin-shortcuts { flex-direction: row; flex-wrap: wrap; flex: 1 1 auto; }
    .admin-shortcuts a { flex: 1 1 180px; justify-content: flex-start; }
    .admin-sidebar-foot { flex-direction: row; border-top: 0; padding-top: 0; margin-top: 0; }
    .admin-sidebar-foot a { flex: 1 1 140px; }
    .admin-content { padding: 4px 4px 40px; }
}
.post-editor { min-height: 260px; background: #fbfcfc; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.65; }
.post-admin-list, .version-admin-list { margin-top: 24px; }
#copy-current-version-btn { margin-bottom: 16px; display: inline-flex; }
.bulk-version-import { margin-top: 18px; border: 1px solid var(--adm-line); border-radius: 6px; padding: 4px 16px 16px; background: #fbfcfc; }
.bulk-version-import summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--adm-ink); }
.bulk-version-import textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; min-height: 130px; resize: vertical; }
.bulk-version-import code { background: var(--adm-accent-soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.post-admin-item { grid-template-columns: minmax(180px, 1fr) minmax(120px, .6fr) auto; }
.posts-wrap { max-width: 1020px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.post-card > img { width: 100%; height: 150px; display: block; object-fit: cover; }
.post-card-body { padding: 16px; }
.post-card time, .post-article time { color: var(--teal); font-size: 12px; font-weight: 800; }
.post-card h2 { margin: 8px 0; font-size: 18px; line-height: 1.2; }
.post-card p { min-height: auto; margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.read-post { color: var(--teal); font-weight: 800; }
.post-article { max-width: 920px; padding: 44px 52px 58px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.post-article h1 { margin: 10px 0 28px; font-size: 42px; line-height: 1.1; }
.post-article > img { width: 100%; max-height: 440px; margin: 0 0 28px; display: block; object-fit: cover; border-radius: 5px; }
.post-content { color: #45545a; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.rich-content img { max-width: 100%; height: auto; border-radius: 5px; }
.rich-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.rich-content table td, .rich-content table th { border: 1px solid var(--line); padding: 8px 12px; }
.rich-content ul, .rich-content ol { padding-left: 22px; }
.rich-content a { color: var(--teal); font-weight: 700; }
.rich-content pre { overflow-x: auto; max-width: 100%; }
label { display: block; margin-bottom: 16px; font-weight: 700; }
.image-field { margin-bottom: 16px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 6px; background: #fafbfb; }
.image-field > label:first-child { margin-bottom: 10px; }
.image-field input[type="file"] { margin-top: 0; }
.admin-image-preview { display: block; width: 84px; height: 84px; margin-bottom: 12px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.admin-image-preview-wide { width: 100%; max-width: 320px; height: 140px; }
.image-url-fallback { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.image-url-fallback input { margin-top: 6px; font-weight: 400; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks-admin { display: flex; gap: 20px; margin-bottom: 15px; }
.checks-admin input { width: auto; }
.admin-item { display: grid; grid-template-columns: 1fr 160px auto; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background .12s; }
.admin-item:hover { background: #fafcfc; }
.admin-item:last-child { border-bottom: 0; }
.admin-item a:first-child { font-weight: 800; color: var(--teal); }
.admin-item form { display: inline-flex; }
.admin-item > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.product-admin-item { grid-template-columns: minmax(0, 1fr) auto; }
.admin-item-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-thumb { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #0dca9e, #18a9ee); color: #05323a; font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-main > div { min-width: 0; }
.admin-item-main a { font-weight: 800; color: var(--teal); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.pill-muted { background: #f1f3f4; color: var(--muted); }
.pill-gold { background: #fff3d6; color: #a56c00; }
.pill-teal { background: #e3f7f2; color: var(--teal); }
.pill-draft { background: #f1f3f4; color: var(--muted); }
.pill-published { background: #e3f7f2; color: var(--teal); }
.category-admin-list { margin-top: 24px; }
.category-item svg { width: 22px; fill: currentColor; vertical-align: middle; margin-right: 8px; }
.category-item-child { padding-left: 26px; }
.category-item-child::before { content: '\21B3'; margin-right: 6px; color: var(--muted); }
.tiny-btn { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 7px 10px; cursor: pointer; }
.tiny-btn.danger { color: #b51212; }
.alert { padding: 12px; border-radius: 6px; background: #ffe8e8; color: #8a1111; }
.hint, .empty { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer { color: #d8dfe1; background: #1d2024; border-top: 1px solid #16181b; }
.footer-main { padding: 74px 0 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 6vw, 110px); }
.footer-grid section { display: grid; align-content: start; gap: 14px; }
.footer-grid h2 { margin: 0 0 15px; color: #f7f8f8; font-size: 18px; line-height: 1.2; }
.footer-grid a, .footer-legal a { width: auto; max-width: 100%; color: #c7d0d3; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.footer-grid a:hover, .footer-legal a:hover { color: #16d4aa; }
.footer-grid .footer-subtitle { margin: 26px 0 8px; }
.footer-legal { display: flex; gap: 22px; padding-top: 44px; }
.footer-bottom { padding: 18px 0; color: #f3f5f6; background: #233035; font-size: 15px; font-weight: 700; }

/* Client purchases dashboard */
.license-dashboard-shell { padding-top: 34px; }
.license-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.license-sidebar {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 16px;
    padding: 22px 18px;
    background: linear-gradient(180deg, #1d2a32, #0f1b22);
    color: #f8fafc;
    border: 1px solid #22323c;
    box-shadow: 0 16px 34px rgba(18,36,43,.14);
}
.license-sidebar-brand { display: flex; align-items: center; gap: 12px; }
.license-sidebar-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #08231a;
    font-size: 20px;
    font-weight: 900;
}
.license-sidebar-brand strong { display: block; font-size: 22px; line-height: 1.1; }
.license-sidebar-brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.license-sidebar-toggle { display: none; min-height: 42px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; font-size: 13px; font-weight: 800; }
.license-sidebar-nav { display: grid; gap: 6px; }
.license-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 12px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 700;
    border-left: 3px solid transparent;
    background: transparent;
}
.license-sidebar-nav a svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.license-sidebar-nav a:hover,
.license-sidebar-nav a.is-active { background: rgba(34,197,94,.14); color: #fff; border-left-color: #22c55e; }
.license-sidebar-note {
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    font-size: 13px;
}
.license-sidebar-note strong { display: block; margin-bottom: 5px; color: #fff; }
.license-main { min-width: 0; display: grid; gap: 20px; }
.license-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.license-topbar-searchicon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.license-topbar-searchicon svg { width: 18px; height: 18px; fill: currentColor; }
.license-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.license-currency-form select,
.license-filter-form select,
.license-filter-form input {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d7dde1;
    background: #fff;
    color: #17303a;
    font-size: 14px;
    font-weight: 700;
}
.license-icon-btn,
.license-filter-submit,
.license-export-btn,
.license-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    border: 1px solid #d7dde1;
    background: #fff;
    color: #17303a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .14s, box-shadow .14s, background .14s, border-color .14s;
}
.license-icon-btn:hover,
.license-filter-submit:hover,
.license-export-btn:hover,
.license-action-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(18,36,43,.1); }
.license-icon-btn svg,
.license-action-btn svg { width: 18px; height: 18px; fill: currentColor; }
.license-icon-count {
    position: absolute;
    margin: -16px 0 0 20px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
}
.license-profile-menu { position: relative; }
.license-profile-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #d7dde1;
    background: #fff;
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}
.license-profile-menu summary::-webkit-details-marker { display: none; }
.license-profile-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #17303a;
    color: #fff;
    font-size: 12px;
}
.license-profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 34px rgba(18,36,43,.12);
}
.license-profile-dropdown span { padding: 0 0 8px; color: var(--muted); font-size: 13px; }
.license-profile-dropdown a { padding: 10px 0; font-weight: 700; color: var(--ink); border-top: 1px solid #eef2f4; }
.license-profile-dropdown a:hover { color: #16a34a; }
.license-hero {
    padding: 28px 30px;
    background:
        linear-gradient(135deg, rgba(34,197,94,.12), rgba(14,165,233,.08)),
        #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(18,36,43,.06);
}
.license-eyebrow { display: block; margin-bottom: 8px; color: #16a34a; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.license-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.license-hero p { margin: 0; max-width: 820px; color: #4f626a; font-size: 16px; line-height: 1.7; }
.license-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.license-summary-card {
    display: grid;
    gap: 10px;
    min-height: 160px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 16px 30px rgba(18,36,43,.1);
}
.license-summary-card span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .92; }
.license-summary-card strong { font-size: clamp(26px, 2.5vw, 34px); line-height: 1; }
.license-summary-card small { font-size: 13px; opacity: .94; }
.license-summary-icon { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.license-summary-icon svg { width: 24px; height: 24px; fill: currentColor; }
.license-summary-card.is-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.license-summary-card.is-dark { background: linear-gradient(135deg, #334155, #111827); }
.license-summary-card.is-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.license-summary-card.is-mint { background: linear-gradient(135deg, #059669, #22c55e); }
.license-filterbar {
    position: sticky;
    top: 82px;
    z-index: 4;
    padding: 16px 18px;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(18,36,43,.06);
}
.license-filter-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.license-search-field { position: relative; flex: 1 1 280px; min-width: 240px; }
.license-search-field svg { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; fill: #64748b; }
.license-search-field input { width: 100%; padding-left: 44px; }
.license-filter-submit { padding: 0 18px; background: #17303a; border-color: #17303a; color: #fff; }
.license-export-btn { padding: 0 18px; background: #22c55e; border-color: #22c55e; color: #08231a; text-decoration: none; }
.license-purchases-wrap { display: grid; gap: 16px; }
.license-purchases-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}
.license-purchases-head h2 { margin: 0; font-size: 24px; }
.license-purchases-head p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.license-purchases-list { display: grid; gap: 16px; }
.license-purchase-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 24px rgba(18,36,43,.05);
    transition: transform .14s, box-shadow .14s;
}
.license-purchase-row:hover { transform: translateY(-2px); box-shadow: 0 20px 30px rgba(18,36,43,.1); }
.license-purchase-main { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; min-width: 0; }
.license-purchase-thumb {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #072b33;
    font-size: 24px;
    font-weight: 900;
}
.license-purchase-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s; }
.license-purchase-row:hover .license-purchase-thumb img { transform: scale(1.06); }
.license-purchase-copy { min-width: 0; display: grid; gap: 10px; }
.license-purchase-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.license-purchase-topline h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.license-purchase-topline h3 a { color: var(--ink); }
.license-purchase-topline h3 a:hover { color: #16a34a; }
.license-purchase-copy p { margin: 0; color: #53636b; font-size: 15px; line-height: 1.65; }
.license-purchase-rating,
.license-purchase-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.license-purchase-rating { color: #64748b; font-size: 13px; font-weight: 700; }
.license-purchase-meta span { color: #334155; font-size: 13px; font-weight: 700; }
.license-stars { display: inline-flex; gap: 2px; }
.license-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.license-badge-license { background: #eef2f7; color: #334155; }
.license-badge-status.is-active { background: #dcfce7; color: #166534; }
.license-badge-status.is-expiring { background: #fef3c7; color: #92400e; }
.license-badge-status.is-expired { background: #fee2e2; color: #b91c1c; }
.license-badge-status.is-extended { background: #dbeafe; color: #1d4ed8; }
.license-purchase-side { display: grid; align-content: space-between; gap: 14px; }
.license-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.license-empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 54px 24px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    text-align: center;
}
.license-empty-illustration {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: #eef2f7;
    color: #17303a;
}
.license-empty-illustration svg { width: 28px; height: 28px; fill: currentColor; }
.license-empty-state h2 { margin: 0; font-size: 24px; }
.license-empty-state p { margin: 0; max-width: 540px; color: #64748b; line-height: 1.7; }
.license-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.license-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}
.license-pagination a.is-active,
.license-pagination a:hover { background: #17303a; border-color: #17303a; color: #fff; }
.license-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    max-width: 320px;
    padding: 14px 16px;
    background: #17303a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .16s, transform .16s;
}
.license-toast.is-visible { opacity: 1; transform: translateY(0); }
[data-license-dashboard].is-dark .license-topbar,
[data-license-dashboard].is-dark .license-filterbar,
[data-license-dashboard].is-dark .license-hero,
[data-license-dashboard].is-dark .license-purchase-row,
[data-license-dashboard].is-dark .license-empty-state,
[data-license-dashboard].is-dark .license-profile-menu summary,
[data-license-dashboard].is-dark .license-profile-dropdown,
[data-license-dashboard].is-dark .license-topbar-searchicon,
[data-license-dashboard].is-dark .license-icon-btn,
[data-license-dashboard].is-dark .license-currency-form select,
[data-license-dashboard].is-dark .license-filter-form select,
[data-license-dashboard].is-dark .license-filter-form input,
[data-license-dashboard].is-dark .license-pagination a {
    background: #111827;
    border-color: #1f2937;
    color: #f8fafc;
}
[data-license-dashboard].is-dark .license-hero p,
[data-license-dashboard].is-dark .license-purchases-head p,
[data-license-dashboard].is-dark .license-purchase-copy p,
[data-license-dashboard].is-dark .license-purchase-rating,
[data-license-dashboard].is-dark .license-purchase-meta span,
[data-license-dashboard].is-dark .license-empty-state p,
[data-license-dashboard].is-dark .license-profile-dropdown span { color: #cbd5e1; }
[data-license-dashboard].is-dark .license-purchase-topline h3 a,
[data-license-dashboard].is-dark .license-empty-state h2,
[data-license-dashboard].is-dark .license-purchases-head h2 { color: #fff; }
[data-license-dashboard].is-dark .license-badge-license { background: #1f2937; color: #e2e8f0; }

@media (max-width: 1220px) {
    .topbar-inner { height: auto; padding: 18px 0; flex-wrap: nowrap; }
    .search { width: auto; flex: 1 1 320px; min-width: 220px; }
    .quick-nav { width: auto; flex: 0 0 auto; justify-content: flex-end; gap: 14px; white-space: nowrap; }
    .two-col, .product-layout { grid-template-columns: 1fr; }
    .side-card-sticky { position: sticky; top: 12px; z-index: 5; }
    .product-side { width: 100%; }
    .product-row { grid-template-columns: 60px minmax(0, 1fr); align-items: start; }
    .product-logo { grid-row: 1 / span 4; }
    .meta-box, .rating-box, .size-box { grid-column: 2; border-left: 0; min-height: auto; padding-left: 0; align-items: start; place-items: start; }
    .size-box { justify-content: flex-start; }
    .checks { grid-template-columns: repeat(2, 1fr); }
    .license-layout { grid-template-columns: 1fr; }
    .license-sidebar { position: static; }
    .license-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .license-purchase-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .topbar-inner { gap: 14px; align-items: flex-start; }
    .search { order: 3; width: 100%; flex-basis: 100%; }
    .search input { font-size: 16px; }
    .quick-nav {
        display: none;
        order: 4;
        width: 100%;
        margin-left: 0;
        gap: 10px;
        padding-top: 4px;
    }
    body.nav-open .quick-nav { display: flex; flex-direction: column; }
    .quick-nav a {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
    }
    .client-nav,
    .client-nav summary,
    .client-nav-menu { width: 100%; }
    .client-nav summary { justify-content: flex-start; }
    .client-nav-menu { position: static; min-width: 0; margin-top: 8px; box-shadow: none; }
    .quick-nav a.premium { width: 100%; }
    .category-strip { display: none; border-top: 0; }
    body.nav-open .category-strip { display: block; }
    .category-strip-inner { display: flex; flex-direction: column; min-width: 0; }
    .category-strip-item,
    .category-strip-item:last-child { border-right: 0; }
    .category-strip-item > a { min-height: 62px; justify-content: flex-start; padding: 14px 16px; font-size: 16px; text-align: left; }
    .category-strip-item.has-children .category-dropdown {
        position: static;
        display: block;
        border: 0;
        border-top: 1px solid var(--line);
        box-shadow: none;
    }
    .category-dropdown a { padding: 12px 20px 12px 52px; }
    .hero-bar .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
    .info-row { flex-direction: column; gap: 8px; }
    .admin-sidebar,
    body.is-admin .admin-sidebar { padding: 16px 12px; gap: 10px; min-height: 0; align-content: flex-start; }
    .admin-shortcuts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-right: -6px;
        -webkit-overflow-scrolling: touch;
    }
    .admin-shortcuts a { flex: 0 0 auto; min-width: 170px; }
    .admin-sidebar-foot { width: 100%; flex-wrap: wrap; gap: 6px; }
    .admin-item > div:last-child { justify-content: flex-start; }
    .admin-item-main a { white-space: normal; }
    .admin-card-head > * { width: 100%; }
    .admin-search { width: 100%; }
    .checks-admin { flex-wrap: wrap; gap: 12px; }
    .license-topbar,
    .license-purchases-head { align-items: flex-start; flex-direction: column; }
    .license-filterbar { top: 12px; }
    .license-summary-grid { grid-template-columns: 1fr; }
    .license-purchase-main { grid-template-columns: 64px minmax(0, 1fr); }
    .license-sidebar-toggle { display: inline-flex; }
    .license-sidebar-nav { display: none; }
    .license-sidebar.is-open .license-sidebar-nav { display: grid; }
}

@media (max-width: 760px) {
    .admin-page { padding-top: 16px; }
    .admin-page-head { padding: 20px 16px; }
    .admin-topline { flex-direction: column; align-items: stretch; }
    .admin-topline h1 { font-size: 28px; }
    .admin-toolbar { justify-content: flex-start; width: 100%; }
    .admin-toolbar > * { flex: 1 1 auto; }
    .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-summary-grid,
    .admin-overview-grid { grid-template-columns: 1fr; }
    .section-title { padding: 14px 16px; }
    .section-title > * { width: 100%; }
    .sort-by, .sort-by select, .section-title a { width: 100%; max-width: none; }
    .list-controls { width: 100%; flex-direction: column; align-items: stretch; }
    .per-page-by { width: 100%; justify-content: space-between; }
    .per-page-by select { flex: 1 1 auto; }
    .thanks-card { padding: 32px 24px; }
    .thanks-card h1 { font-size: clamp(26px, 8vw, 32px); }
    .hero-bar { margin-bottom: 34px; padding: 20px 0; }
    .download-actions { grid-template-columns: 4fr 1fr; }
    .square-action { width: 100%; min-height: 48px; }
    .version-info { grid-template-columns: 1fr; gap: 6px; }
    .version-downloads { justify-content: flex-start; flex-wrap: wrap; }
    .screenshot { margin: 42px 0 28px; min-height: 0; padding: 24px 30px 28px; }
    .screenshot button { width: 38px; height: 38px; font-size: 32px; }
    .real-shot { min-height: 240px; max-height: 420px; }
    .fake-shot, .product-preview-shot { min-height: 260px; padding: 24px; }
    .product-article, .post-article { padding-left: 24px; padding-right: 24px; }
    .license-dashboard-shell { padding-top: 20px; }
    .license-topbar,
    .license-hero,
    .license-filterbar,
    .license-purchase-row { padding-left: 16px; padding-right: 16px; }
    .license-filter-form { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .license-filter-form > * { flex: 0 0 auto; }
    .license-search-field { min-width: 260px; }
    .license-action-grid { grid-template-columns: repeat(3, 44px); justify-content: flex-start; }
}

@media (max-width: 620px) {
    .wrap { width: min(100% - 24px, 1300px); }
    .brand { width: 44px; height: 44px; font-size: 28px; }
    .nav-toggle { padding: 10px 12px; }
    .premium { justify-content: center; }
    .search { height: 48px; }
    .product-row { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 18px 14px; }
    .product-logo { width: 52px; height: 52px; }
    .product-article { padding: 24px 20px; }
    .product-article h1 { font-size: 24px; }
    .hero-bar { margin-top: -24px; }
    .hero-bar span { font-size: 14px; text-align: left; }
    .product-main h3 a { white-space: normal; }
    .product-main h3 { font-size: 17px; line-height: 1.3; }
    .product-main p { font-size: 14px; }
    .meta-box, .rating-box, .size-box { gap: 4px; font-size: 14px; }
    .size-box { font-size: 22px; white-space: normal; text-align: left; }
    .lead, .product-overview-content, .post-content { font-size: 16px; line-height: 1.7; }
    .screenshot { margin-left: 0; margin-right: 0; padding: 20px 18px 24px; }
    .screenshot button:first-child { left: 10px; }
    .screenshot button:last-child { right: 10px; }
    .screenshot-overlay-btn { top: 10px; right: 10px; left: auto; padding: 7px 14px; font-size: 12px; }
    .download-actions .download-btn { font-size: 15px; white-space: normal; }
    .download-card, .info-card, .side-card { padding-left: 18px; padding-right: 18px; }
    .history { font-size: 15px; }
    .login-card { padding: 30px 22px; border-radius: 12px; }
    .admin-card { padding: 18px 16px; }
    .footer-main { padding: 48px 0 38px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-grid .footer-subtitle { margin-top: 18px; }
    .footer-legal { flex-wrap: wrap; padding-top: 34px; }
    .checks, .form-row, .admin-item { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .post-article { padding: 28px 22px; }
    .post-article h1 { font-size: 32px; }
    .previous-versions { margin: 38px 0 0; padding: 25px 18px; }
    .version-head { display: none; }
    .version-row { grid-template-columns: 1fr; padding: 18px 0; }
    .version-info { grid-template-columns: 1fr; font-size: 14px; }
    .version-downloads { justify-content: flex-start; }
    .thanks-card.has-ad { flex-direction: column; align-items: stretch; }
    .thanks-card-ad { width: 100%; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 420px) {
    .wrap { width: calc(100% - 20px); }
    .nav-toggle-label { display: none; }
    .thanks-card { padding: 24px 16px; }
    .download-card, .info-card, .side-card { padding-left: 16px; padding-right: 16px; }
    .big-size { font-size: clamp(34px, 14vw, 42px); }
    .rating-stars button { width: 24px; height: 24px; font-size: 22px; }
    .screenshot { padding: 16px 12px 20px; }
    .fake-shot, .product-preview-shot { min-height: 220px; padding: 18px; }
    .admin-shortcuts a { min-width: 148px; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .admin-stat-card { padding: 14px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.customer-reset-wrap { margin-top: 10px; }
.customer-reset-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.customer-reset-form input[type="text"] {
    padding: 6px 10px;
    border: 1px solid var(--adm-line);
    background: #fff;
    color: var(--adm-ink);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--adm-radius-sm, 10px);
    min-width: 220px;
}
.customer-reset-form input[type="text"]:focus { border-color: var(--teal); outline: 2px solid rgba(0, 143, 120, .15); }

.admin-settings-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.admin-settings-card { padding: 24px 26px; }
.admin-settings-card h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--adm-ink);
}
.admin-settings-card form { display: grid; gap: 12px; margin-top: 16px; }
.admin-settings-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--adm-muted, #64748b); }
.admin-settings-card input {
    padding: 10px 12px;
    border: 1px solid var(--adm-line);
    background: #fff;
    color: var(--adm-ink);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--adm-radius-sm, 10px);
}
.admin-settings-card input:focus { border-color: var(--teal); outline: 2px solid rgba(0, 143, 120, .15); }
.admin-info-list { margin-top: 16px; display: grid; gap: 4px; }
.admin-settings-warn {
    margin-top: 18px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
    border-radius: var(--adm-radius-sm, 10px);
}
.admin-settings-warn strong { color: #78350f; }
.admin-settings-warn code { background: #fff; padding: 2px 6px; border: 1px solid #fde68a; font-weight: 700; }

.masquerade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .45);
    margin: 16px 0 0;
    border-radius: var(--adm-radius, 16px);
    flex-wrap: wrap;
}
.masquerade-info { display: flex; align-items: center; gap: 16px; }
.masquerade-icon {
    width: 48px; height: 48px;
    border-radius: var(--adm-radius-sm, 12px);
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 22px;
    flex: 0 0 auto;
}
.masquerade-info strong { display: block; font-size: 15px; font-weight: 800; }
.masquerade-info span { display: block; font-size: 14px; opacity: .98; margin-top: 2px; }
.masquerade-info small { display: block; font-size: 12px; opacity: .88; margin-top: 4px; font-weight: 600; }
.masquerade-switch-btn {
    padding: 11px 18px;
    background: #fff;
    color: #4f46e5;
    border: 0;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--adm-radius-sm, 10px);
    transition: background .12s, transform .12s;
}
.masquerade-switch-btn:hover { background: #f1f5f9; }

.license-flash {
    margin: 16px 0 0;
    padding: 14px 18px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--adm-radius-sm, 10px);
}

.is-dark .license-flash { background: #064e3b; color: #a7f3d0; border-color: #065f46; }
.is-dark .masquerade-banner { box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }

.license-profile-dropdown .is-switch-admin {
    color: #7c3aed;
    font-weight: 800;
    background: #f5f3ff;
    margin: 6px 0;
}

.account-settings-wrap { margin-top: 28px; }
.account-settings-wrap h1 {
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
    margin: 0;
}
.is-dark .account-settings-wrap h1 { color: #e2e8f0; }
.account-settings-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.account-settings-card { padding: 24px 26px; border-radius: var(--adm-radius, 16px); }
.account-settings-card h2 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.is-dark .account-settings-card { background: #1e293b; border-color: #334155; }
.is-dark .account-settings-card h2 { color: #f1f5f9; border-color: #334155; }
.account-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    gap: 14px;
}
.account-info-row:last-child { border-bottom: 0; }
.account-info-row span { font-size: 13px; font-weight: 700; color: var(--muted); }
.is-dark .account-info-row { border-color: #334155; }
.is-dark .account-info-row span { color: #94a3b8; }
.account-info-row strong { font-size: 14px; color: var(--ink); word-break: break-all; text-align: right; }
.is-dark .account-info-row strong { color: #f1f5f9; }

.account-settings-card form { display: grid; gap: 12px; }
.account-settings-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.is-dark .account-settings-card label { color: #94a3b8; }
.account-settings-card input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--adm-radius-sm, 10px);
}
.account-settings-card input:focus { border-color: var(--teal); outline: 2px solid rgba(0, 143, 120, .15); }
.is-dark .account-settings-card input { background: #0f172a; border-color: #334155; color: #f1f5f9; }

.alert {
    padding: 14px 18px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--adm-radius-sm, 10px);
}
body.is-admin .alert { margin: 0 0 18px; }

@media (max-width: 880px) {
    .admin-settings-grid,
    .account-settings-grid { grid-template-columns: 1fr; }
    .customer-reset-form input[type="text"] { min-width: 100%; flex: 1 1 100%; }
    .masquerade-banner { flex-direction: column; align-items: flex-start; }
    .masquerade-switch-btn { align-self: stretch; text-align: center; }
}

.collapse-box { margin-top: 14px; }
.collapse-box[hidden] { display: none !important; }

.customer-reset-wrap { margin-top: 10px; }
.customer-reset-wrap > .tiny-btn { margin: 4px 0 0; }

.account-settings-card > h2 + button { margin-top: 10px; }
.admin-settings-card > p + button.collapse-toggle { margin-top: 8px; }

.is-collapse-open {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
    color: #0f172a !important;
    border: 1px solid var(--teal) !important;
    box-shadow: 0 0 0 2px rgba(0, 143, 120, .08);
}
.is-dark .is-collapse-open {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    color: #f1f5f9 !important;
}
/* Support ticket system */
.ticket-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 34px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.ticket-row:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ticket-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ticket-row-main strong { font-size: 15px; color: var(--ink); }
.ticket-row-main small { color: var(--muted); font-size: 12.5px; }
.ticket-status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; text-transform: capitalize; }
.ticket-status-pill-open { background: #fff3d6; color: #a56c00; }
.ticket-status-pill-answered { background: #e3f7f2; color: var(--teal); }
.ticket-status-pill-closed { background: #f1f3f4; color: var(--muted); }
.admin-type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.admin-type-tab { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--adm-line, #e2e8f0); border-radius: 999px; background: #fff; color: #334155; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.admin-type-tab:hover { background: #f1f5f9; }
.admin-type-tab.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.ticket-new-form-wrap { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ticket-new-form-wrap h2 { margin: 0 0 16px; font-size: 18px; }
.ticket-new-form label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ticket-new-form input, .ticket-new-form textarea { width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.ticket-new-form textarea { resize: vertical; min-height: 110px; }
.ticket-new-form input:focus, .ticket-new-form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,143,120,.15); }
.ticket-thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.ticket-thread-head h1 { margin: 0 0 4px; font-size: 22px; }
.ticket-status-form { margin: 10px 0 22px; }
.ticket-thread { display: flex; flex-direction: column; gap: 0; margin: 20px 0 28px; }
.ticket-msg { padding: 18px 0; }
.ticket-msg-admin .comment-avatar { background: linear-gradient(135deg, #26383d, #3d4153); color: #fff; }
.ticket-msg-admin .comment-body { background: #f6faf9; border-radius: 10px; padding: 12px 14px; }
.ticket-reply-form-wrap { padding-top: 6px; }
.ticket-new-form .btn-primary { background: var(--adm-accent, var(--teal)); color: #fff; border: 0; }
.ticket-new-form .btn-primary:hover { background: var(--adm-accent-dark, #0c9a7a); }

/* Contact / Software Request / Software Submissions pages */
.inquiry-wrap { max-width: 760px; }
.inquiry-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0; }
.inquiry-nav-btn { display: inline-flex; align-items: center; padding: 10px 22px; border: 1px solid var(--teal); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; transition: background .15s, color .15s; }
.inquiry-nav-btn:hover { background: #f2f8f7; }
.inquiry-nav-btn.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.inquiry-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.inquiry-intro { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.inquiry-intro strong { color: var(--ink); }
.inquiry-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form > * + * { margin-top: 16px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; appearance: auto; }
.inquiry-form textarea { resize: vertical; min-height: 130px; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,143,120,.15); }
.inquiry-submit { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.inquiry-submit:hover { background: #0c9a7a; }
.inquiry-submit svg { width: 17px; height: 17px; }
@media (max-width: 620px) {
    .inquiry-form-row { grid-template-columns: 1fr; }
    .inquiry-card { padding: 20px; }
}