/* ONDROID STORE — design system */
:root {
    --primary: #0F766E;
    --primary-600: #0D6660;
    --primary-400: #14B8A6;
    --primary-50: #E8F7F5;
    --accent: #6366F1;
    --accent-50: #EEF0FF;
    --dark: #0B1020;
    --dark-2: #131A30;
    --bg: #F5F7FB;
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --border: #E3E8F0;
    --border-strong: #CBD3DF;
    --text: #0F172A;
    --text-2: #334155;
    --muted: #64748B;
    --success: #059669;
    --success-50: #E7F8F1;
    --warning: #B45309;
    --warning-50: #FEF5E6;
    --danger: #DC2626;
    --danger-50: #FDECEC;
    --info: #2563EB;
    --info-50: #EAF1FE;
    --gradient: linear-gradient(135deg, #0F766E 0%, #14B8A6 45%, #6366F1 100%);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .14);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --header-h: 64px;
    --sidebar-w: 260px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video, canvas, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
h4, .h4 { font-size: .95rem; font-weight: 700; margin-top: 1.1em; }
p { margin: 0 0 .9em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .05em .35em; }
pre { background: var(--dark); color: #E2E8F0; padding: 1rem; border-radius: var(--radius); overflow: auto; font-size: .85rem; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .45); outline-offset: 2px; }
::selection { background: rgba(20, 184, 166, .25); }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; stroke-width: 2; }
i.icon { display: inline-block; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--dark); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.narrow-wide { max-width: 980px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; overflow-wrap: anywhere; }
.grow { flex: 1 1 auto; min-width: 0; }
.inline { display: inline-flex; vertical-align: middle; margin: 0; }
.rounded { border-radius: var(--radius-sm); }
.text-danger { color: var(--danger) !important; }
.lead { font-size: 1.06rem; color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: var(--primary-50); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.disabled { opacity: .5; pointer-events: none; }
.hash { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.05rem; font: inherit; font-size: .93rem; font-weight: 600; line-height: 1.2;
    color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 10px; cursor: pointer; text-decoration: none !important; white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); box-shadow: 0 1px 2px rgba(15, 118, 110, .25); }
.btn-primary:hover { --btn-bg: var(--primary-600); filter: none; }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong); }
.btn-secondary:hover { --btn-bg: var(--surface-2); filter: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-2); --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: rgba(15, 23, 42, .05); filter: none; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--primary); --btn-bd: #fff; }
.btn-link { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--primary); padding-left: 0; padding-right: 0; }
.btn-danger-text { --btn-fg: var(--danger); }
.btn-ghost.text-danger:hover { --btn-bg: var(--danger-50); }
.btn-sm { padding: .42rem .75rem; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.35rem; font-size: 1rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn-row form { margin: 0; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; position: relative; }
.btn-icon:hover { background: rgba(15, 23, 42, .06); color: var(--text); }
.btn-icon.btn-sm, .btn-icon-sm { width: 30px; height: 30px; border-radius: 8px; }
.btn-icon .icon { width: 20px; height: 20px; }
.btn-icon-sm .icon, .btn-icon.btn-sm .icon { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; font-size: .75rem; font-weight: 600; line-height: 1.4; border-radius: 999px; white-space: nowrap; background: #EEF2F6; color: #475569; vertical-align: middle; text-decoration: none !important; }
.badge .icon { width: .95em; height: .95em; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-gray { background: #EEF2F6; color: #475569; }
.badge-green { background: var(--success-50); color: #047857; }
.badge-yellow { background: #FEF6DD; color: #A16207; }
.badge-orange { background: #FFEDD5; color: #C2410C; }
.badge-red { background: var(--danger-50); color: #B91C1C; }
.badge-blue { background: var(--info-50); color: #1D4ED8; }
.badge-indigo { background: var(--accent-50); color: #4338CA; }
.badge-purple { background: #F3E8FF; color: #7E22CE; }
.badge-teal { background: var(--primary-50); color: var(--primary); }
.badge-dark { background: #1E293B; color: #E2E8F0; }
.badges-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.mini-badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; }
.mini-teal { background: var(--primary-50); color: var(--primary); }
.mini-indigo { background: var(--accent-50); color: #4338CA; }
.mini-green { background: var(--success-50); color: #047857; }
.pill-18 { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 800; padding: .1rem .35rem; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.verified { display: inline-flex; color: var(--accent); vertical-align: -.15em; }
.verified svg { width: 1em; height: 1em; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ---------- Alerts & toasts ---------- */
.alert { position: relative; display: block; padding: .8rem 1rem .8rem 2.7rem; border-radius: var(--radius); border: 1px solid transparent; margin: 0 0 1rem; font-size: .93rem; line-height: 1.55; }
.alert:not(:has(> .icon)) { padding-left: 1rem; }
.alert > .icon { position: absolute; left: 1rem; top: calc(.8rem + .2em); }
.alert code { white-space: nowrap; }
.alert a { font-weight: 600; }
.alert-info { background: var(--info-50); border-color: #CFE0FD; color: #1E3A8A; }
.alert-success { background: var(--success-50); border-color: #BFEBD8; color: #065F46; }
.alert-warning { background: var(--warning-50); border-color: #F8DDB0; color: #7C2D12; }
.alert-error { background: var(--danger-50); border-color: #F8C9C9; color: #7F1D1D; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; background: var(--dark); color: #F1F5F9; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; font-size: .92rem; }
.toast > .icon { margin-top: .1em; }
.toast span { flex: 1; }
.toast-success > .icon { color: #34D399; }
.toast-error > .icon { color: #F87171; }
.toast-warning > .icon { color: #FBBF24; }
.toast-info > .icon { color: #60A5FA; }
.toast-close { background: none; border: 0; color: #94A3B8; cursor: pointer; padding: 0; display: inline-flex; }
.toast-close:hover { color: #fff; }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.label { display: block; font-size: .87rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.label-row a { font-size: .84rem; }
.input, .select, .textarea { display: block; width: 100%; padding: .62rem .8rem; font: inherit; font-size: .94rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
.input:disabled, .select:disabled, .textarea:disabled, fieldset:disabled .input, fieldset:disabled .select, fieldset:disabled .textarea { background: var(--surface-2); color: var(--muted); }
.input[readonly] { background: var(--surface-2); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.input-sm, .select-sm { padding: .4rem .6rem; font-size: .85rem; border-radius: 8px; width: auto; }
.select-sm { padding-right: 2rem; }
.input-color { padding: .25rem; height: 42px; cursor: pointer; }
.input-code { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .35em; text-align: center; }
.input[type="file"] { padding: .45rem; font-size: .86rem; }
.input-group { display: flex; align-items: stretch; position: relative; min-width: 0; }
.input-group > .input, .input-group > .select { flex: 1; min-width: 0; }
.input-addon { display: inline-flex; align-items: center; padding: 0 .7rem; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-size: .88rem; white-space: nowrap; }
.input-addon:first-child { border-right: 0; border-radius: 10px 0 0 10px; }
.input-addon:last-child { border-left: 0; border-radius: 0 10px 10px 0; }
.input-group > .input-addon:first-child + .input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .btn, .input-group > .btn-icon { border-radius: 0 10px 10px 0; }
.input-group > button.input-addon { cursor: pointer; }
.help { display: block; font-size: .83rem; color: var(--muted); margin-top: .3rem; }
.help-warning { color: var(--warning); }
.help .icon, .help-warning .icon { vertical-align: -.2em; }
.field-error { display: block; font-size: .83rem; color: var(--danger); margin-top: .3rem; font-weight: 500; }
.char-count { display: block; text-align: right; font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.char-count.over { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.form-inline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; align-items: end; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.form-static { padding: .62rem 0; font-weight: 500; }
.form-section { border-top: 1px solid var(--border); padding-top: 1rem; margin: 1.2rem 0 1rem; }
.form-section legend { font-weight: 700; font-size: .95rem; padding-right: .5rem; color: var(--text); }
.narrow-form { max-width: 820px; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.check { display: flex; align-items: flex-start; gap: .55rem; margin: .45rem 0; font-size: .93rem; cursor: pointer; line-height: 1.4; }
.check input { margin-top: .18rem; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .1rem 1rem; list-style: none; padding: 0; margin: .4rem 0; }
.check-grid li { display: flex; gap: .4rem; align-items: center; padding: .2rem 0; }
.switch-row { padding: .65rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.switch-row:last-child { border-bottom: 0; }
.switch-row input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin-top: 0; }
.switch-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch-row input:checked { background: var(--primary); }
.switch-row input:checked::after { transform: translateX(16px); }

.segmented, .segmented-radio { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented label, .segmented-radio label { margin: 0; cursor: pointer; }
.segmented input, .segmented-radio input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span, .segmented-radio span, .segmented a { display: block; padding: .38rem .8rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.segmented input:checked + span, .segmented-radio input:checked + span, .segmented a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span, .segmented-radio input:focus-visible + span { outline: 2px solid var(--primary-400); }
.segmented-radio { margin-bottom: .8rem; }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.choice-card { position: relative; cursor: pointer; margin: 0; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card > span { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice-card > span .icon { width: 22px; height: 22px; color: var(--primary); margin-bottom: .2rem; }
.choice-card small { color: var(--muted); font-size: .82rem; }
.choice-card input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); background: #FBFEFE; }
.choice-card input:focus-visible + span { outline: 2px solid var(--primary-400); }
.choice-card.disabled { opacity: .55; cursor: not-allowed; pointer-events: auto; }

.password-meter { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: .4rem; }
.password-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.file-preview { display: flex; align-items: center; gap: 1rem; }
.file-preview > img { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.file-preview-wide > img { width: 180px; height: 94px; border-radius: 10px; }
.file-preview > div, .file-preview > .input { flex: 1; min-width: 0; }
.copy-field { display: flex; gap: .4rem; align-items: center; }
.copy-field .input { font-family: var(--mono); font-size: .85rem; }
.not-prose { all: revert; }

.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; margin-bottom: .6rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: #CBD5E1; transition: color .1s, transform .1s; }
.star-input label .icon { width: 30px; height: 30px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #F59E0B; }
.star-input label:hover .icon, .star-input label:hover ~ label .icon, .star-input input:checked ~ label .icon { fill: currentColor; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary-400); border-radius: 4px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; min-width: 0; }
.card-body { padding: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head .card-title { margin: 0; }
.card-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .45rem; margin-bottom: .8rem; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex-wrap: wrap; }
.card-danger { border-color: #F8C9C9; }
.card-danger .card-head { background: var(--danger-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; color: #991B1B; }
.card-danger .card-head .card-title { color: #991B1B; }
.card-highlight { border-color: rgba(20, 184, 166, .45); box-shadow: 0 0 0 3px rgba(20, 184, 166, .08), var(--shadow-sm); }
.card-inset { background: var(--surface-2); border-top: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.card > .table-wrap:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card > .list-rows:last-child > li:last-child > * { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.page { padding-top: 1.75rem; padding-bottom: 3rem; }
.page-title { margin-bottom: 1.5rem; }
.page-title.center { max-width: 720px; margin-left: auto; margin-right: auto; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.55rem; margin-bottom: .2rem; }
.page-head p { margin: 0; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head-actions, .head-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.head-actions form { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .86rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.grid-side-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: .7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table th.right, .table td.right { text-align: right; }
.table-compact td { padding: .5rem .8rem; }
.row-highlight td { background: #F2FBFA !important; }
.row-child td:nth-child(2) { padding-left: 2rem; }
.user-cell, .app-cell { display: flex; align-items: center; gap: .65rem; color: inherit; min-width: 180px; }
.user-cell span, .app-cell span { display: flex; flex-direction: column; min-width: 0; }
.user-cell small, .app-cell small { font-size: .8rem; }
a.user-cell:hover, a.app-cell:hover { text-decoration: none; }
a.user-cell:hover strong, a.app-cell:hover strong { color: var(--primary); }
.api-table td:first-child { white-space: nowrap; }
.cat-chip { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--cat) 14%, white); color: var(--cat); vertical-align: middle; }

/* ---------- Avatars & icons ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 88px; height: 88px; }
.app-icon-sm, .app-icon-md, .app-icon-lg { object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.app-icon-sm { width: 40px; height: 40px; border-radius: 10px; }
.app-icon-md { width: 56px; height: 56px; border-radius: 14px; }
.app-icon-lg { width: 84px; height: 84px; border-radius: 20px; }

/* ---------- Header (store) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.header-menu-btn { display: none; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-custom { max-height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: .02em; }
.brand-text span { font-size: .64rem; font-weight: 700; letter-spacing: .24em; color: var(--primary); margin-top: 3px; }
.brand-console .brand-text span { color: var(--accent); }
.brand-admin .brand-text span { color: #F59E0B; }
.header-search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.header-search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search input { width: 100%; height: 42px; padding: 0 1rem 0 2.6rem; font: inherit; font-size: .93rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); }
.header-search input:focus { outline: none; background: #fff; border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
.suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 120; }
.suggest-box a { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; color: var(--text); text-decoration: none; }
.suggest-box a:hover, .suggest-box a.active { background: var(--surface-2); }
.suggest-box img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.suggest-box span { display: flex; flex-direction: column; min-width: 0; }
.suggest-box small { color: var(--muted); font-size: .8rem; }
.suggest-box .suggest-all { justify-content: center; font-size: .86rem; font-weight: 600; color: var(--primary); border-top: 1px solid var(--border); }
.header-nav { display: flex; gap: .2rem; }
.header-link { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.header-link:hover, .header-link.active { background: var(--primary-50); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-shrink: 0; }
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; display: inline-flex; }
.avatar-btn:focus-visible { outline: 3px solid rgba(20, 184, 166, .45); }
.notif-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.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; }

/* ---------- Store drawer (left off-canvas menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 400; }
.drawer::before { content: ''; position: absolute; inset: 0; background: rgba(11, 16, 32, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.drawer.open::before { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(330px, 86vw); display: flex; flex-direction: column; background: #fff; box-shadow: 18px 0 50px rgba(11, 16, 32, .25); border-radius: 0 22px 22px 0; transform: translateX(-104%); transition: transform .28s cubic-bezier(.22, .8, .2, 1); overflow: hidden; outline: none; padding-bottom: env(safe-area-inset-bottom); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1rem .8rem 1.2rem; }
.drawer-head .brand-text { display: flex !important; }
.drawer-close { background: var(--surface-2); }
.drawer-user { display: flex; align-items: center; gap: .75rem; margin: 0 .9rem .4rem; padding: .8rem .9rem; border-radius: 16px; background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(99, 102, 241, .12)); color: var(--text); text-decoration: none !important; }
.drawer-user .avatar { width: 44px; height: 44px; }
.drawer-user > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.drawer-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user small { color: var(--muted); }
.drawer-user > .icon { color: var(--muted); }
.drawer-guest { margin: 0 .9rem .4rem; padding: 1rem; border-radius: 16px; background: var(--dark); color: #CBD5E1; }
.drawer-guest p { margin: 0 0 .8rem; font-size: .88rem; }
.drawer-guest-actions { display: flex; gap: .5rem; }
.drawer-guest-actions .btn { flex: 1; justify-content: center; }
.drawer-nav { flex: 1; overflow-y: auto; padding: .4rem .7rem 1rem; overscroll-behavior: contain; }
.drawer-group { padding: .6rem 0 .3rem; }
.drawer-group + .drawer-group { border-top: 1px solid var(--border); }
.drawer-group-title { display: block; padding: .2rem .7rem .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer-link { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .62rem .7rem; border: 0; border-radius: 12px; background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: .94rem; text-align: left; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s; }
.drawer-link:hover { background: var(--surface-2); color: var(--text); }
.drawer-link.active { background: var(--primary-50); color: var(--primary); }
.drawer-link-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); flex-shrink: 0; transition: background .15s, color .15s; }
.drawer-link-icon .icon { width: 18px; height: 18px; }
.drawer-link.active .drawer-link-icon { background: var(--primary); color: #fff; }
.drawer-link-label { flex: 1; min-width: 0; }
.drawer-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; line-height: 22px; text-align: center; }
.drawer-foot { border-top: 1px solid var(--border); padding: .6rem .7rem 1rem; }
.drawer-foot form { margin: 0; }
.drawer-logout { color: var(--danger); }
.drawer-logout .drawer-link-icon { background: var(--danger-50); color: var(--danger); }
.drawer-legal { display: flex; gap: 1rem; padding: .6rem .7rem 0; font-size: .8rem; }
.drawer-legal a { color: var(--muted); }
body.drawer-locked { overflow: hidden; }

/* ---------- Ad slots ---------- */
.ad-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; margin: 1.5rem auto; max-width: 100%; overflow: hidden; }
.ad-slot iframe { display: block; border: 0; background: transparent; }
.ad-label { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot-rectangle { margin: 0 auto 1.25rem; }
.ad-slot:not(.is-loaded) { min-height: 1px; }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 200; animation: drop-in .14s ease-out; }
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-wide { width: 360px; max-width: calc(100vw - 24px); }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .6rem .6rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; font-size: .9rem; }
.dropdown-head a { font-size: .82rem; }
.dropdown-user { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .65rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.dropdown-user:has(img) { flex-direction: row; align-items: center; gap: .65rem; }
.dropdown-user > div { display: flex; flex-direction: column; min-width: 0; }
.dropdown-user small { color: var(--muted); font-size: .8rem; }
.dropdown-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .65rem; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--text); border-radius: 8px; cursor: pointer; text-align: left; text-decoration: none !important; }
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item .icon { color: var(--muted); }
.dropdown-sep { height: 1px; background: var(--border); margin: .3rem 0; }
.dropdown-menu form { margin: 0; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-list a { display: flex; gap: .6rem; padding: .6rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.notif-list a:hover { background: var(--surface-2); }
.notif-list a.unread { background: #F2FBFA; }
.notif-list a .notif-icon { width: 32px; height: 32px; }
.notif-list .notif-empty { padding: 1.2rem .6rem; text-align: center; color: var(--muted); font-size: .88rem; }
.skeleton-line { height: 42px; margin: .4rem; border-radius: 8px; background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.site-main { min-height: calc(100vh - var(--header-h) - 200px); }
.site-footer { background: var(--dark); color: #94A3B8; padding: 3rem 0 1.5rem; margin-top: 3rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-grid-public { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 { color: #fff; font-size: .9rem; margin: 0 0 .8rem; }
.footer-grid > div > a { display: block; color: #94A3B8; padding: .2rem 0; }
.footer-grid > div > a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { max-width: 320px; }
.footer-social { display: flex; gap: .4rem; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #CBD5E1; }
.footer-social a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2rem; padding-top: 1.25rem; font-size: .8rem; }

/* ---------- Home ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(900px 400px at 0% 110%, rgba(20, 184, 166, .35), transparent 60%), var(--dark); color: #E2E8F0; padding: 3.5rem 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4rem; }
.hero p { font-size: 1.1rem; color: #CBD5E1; max-width: 520px; }
.hero .eyebrow { background: rgba(20, 184, 166, .15); color: #5EEAD4; }
.hero-search { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 14px; padding: .35rem .35rem .35rem 1rem; max-width: 540px; margin-top: 1.4rem; box-shadow: var(--shadow-lg); }
.hero-search > .icon { color: var(--muted); }
.hero-search input { flex: 1; border: 0; font: inherit; font-size: 1rem; padding: .55rem 0; color: var(--text); background: transparent; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.3rem; color: #94A3B8; font-size: .9rem; }
.hero-stats strong { color: #fff; font-size: 1.1rem; }
.hero-featured { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.featured-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark-2); color: #fff; text-decoration: none !important; box-shadow: var(--shadow-lg); transition: transform .2s; min-height: 150px; }
.featured-card:hover { transform: translateY(-3px); }
.featured-0 { grid-column: 1 / -1; min-height: 190px; }
.featured-banner { position: absolute; inset: 0; background: var(--gradient); background-size: cover; background-position: center; }
.featured-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11, 16, 32, .88)); }
.featured-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .8rem; align-items: flex-end; padding: 1rem; }
.featured-info img { width: 56px; height: 56px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .7); background: #fff; object-fit: cover; }
.featured-info h3 { color: #fff; margin: .2rem 0 0; font-size: 1.05rem; }
.featured-info small { color: #CBD5E1; }
.category-chips { display: flex; gap: .5rem; overflow-x: auto; padding: 1.5rem 0 .5rem; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .88rem; white-space: nowrap; text-decoration: none !important; transition: border-color .15s, color .15s; }
.chip .icon { color: var(--chip, var(--primary)); }
.chip:hover { border-color: var(--chip, var(--primary)); color: var(--chip, var(--primary)); }
.section { margin: 2rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.25rem; }
.section-head h2 .icon { color: var(--primary); }
.section-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; }
.cta-dev { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.2rem; margin: 3rem 0 1rem; border-radius: var(--radius-lg); background: var(--gradient); color: #fff; }
.cta-dev h2 { color: #fff; margin-bottom: .3rem; }
.cta-dev p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .88); }

/* ---------- App cards & grids ---------- */
.app-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.app-row > * { scroll-snap-align: start; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.app-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.app-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.2rem .9rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-align: center; text-decoration: none !important; transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0; overflow: hidden; }
.app-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 58px; background: linear-gradient(135deg, rgba(20, 184, 166, .10), rgba(99, 102, 241, .10)); pointer-events: none; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #D7DEE8; }
.app-card-icon { position: relative; width: 76px; height: 76px; margin: 0 auto; }
.app-card-icon img { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; background: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .14), 0 0 0 3px #fff; transition: transform .2s; }
.app-card:hover .app-card-icon img { transform: scale(1.04); }
.app-card-icon .pill-18 { position: absolute; top: -6px; right: -10px; }
.app-card-body { position: relative; width: 100%; min-width: 0; }
.app-card-title { font-size: .95rem; font-weight: 700; margin: 0 0 .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-dev { display: flex; align-items: center; justify-content: center; gap: .25rem; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-meta { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.app-card-meta > span { display: inline-flex; align-items: center; gap: .2rem; }
.app-card-meta > span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); margin-right: .25rem; }
.app-card-meta .icon-star { width: .9em; height: .9em; color: #F59E0B; fill: #F59E0B; }
.app-card-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin-top: .5rem; }

/* ---------- App detail ---------- */
.app-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.5rem; padding: 0 1.5rem 1.6rem; background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, .05)); }
.app-cover { position: relative; align-self: stretch; height: 210px; margin: 0 -1.5rem; background: var(--gradient); overflow: hidden; }
.app-cover-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.app-cover-icon .app-cover-img { inset: -40px; filter: blur(38px) saturate(1.6); transform: scale(1.2); opacity: .9; }
.app-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 16, 32, 0) 35%, rgba(11, 16, 32, .45)); }
.app-head-icon { position: relative; z-index: 1; width: 128px; height: 128px; margin-top: -64px; border-radius: 30px; object-fit: cover; background: #fff; border: 5px solid #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .22); flex-shrink: 0; }
.app-head-info { width: 100%; max-width: 760px; min-width: 0; display: flex; flex-direction: column; align-items: center; margin-top: .9rem; }
.app-head-info h1 { font-size: 2rem; margin-bottom: .2rem; overflow-wrap: anywhere; }
.app-head-dev { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: 1rem; }
.app-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .8rem 0 0; }
.app-badges:empty { display: none; }
.app-facts { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; max-width: 640px; margin: 1.2rem 0 1.3rem; padding: .85rem .4rem; border-radius: 16px; background: var(--surface-2); }
.app-facts > div { min-width: 0; padding: 0 .5rem; text-align: center; }
.app-facts > div + div { border-left: 1px solid var(--border); }
.app-facts dt { font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-facts dt a { overflow: hidden; text-overflow: ellipsis; }
.app-facts dt .icon-star { color: #F59E0B; fill: #F59E0B; width: .95em; }
.app-facts dd { margin: .1rem 0 0; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.app-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; max-width: 560px; }
.app-actions form { margin: 0; }
.app-actions-main { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; width: 100%; }
.app-actions-main > .btn, .app-actions-main > form { flex: 1 1 200px; }
.app-actions-main > .btn { justify-content: center; }
.app-actions-main form .btn { width: 100%; justify-content: center; }
.app-actions-main .inline-form { display: flex; gap: .5rem; }
.app-actions-main .inline-form .select { flex: 0 0 auto; width: auto; }
.app-actions-main .inline-form .btn { flex: 1; }
.app-actions-main .btn[disabled] { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); box-shadow: none; opacity: 1; cursor: not-allowed; }
.app-tools { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.app-tool { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 76px; padding: .55rem .6rem; border: 0; border-radius: 14px; background: none; color: var(--text-2); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s; }
.app-tool .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); box-sizing: border-box; transition: background .15s, color .15s; }
.app-tool:hover { color: var(--primary); }
.app-tool:hover .icon { background: var(--primary-50); color: var(--primary); }
.app-head .help { margin: .8rem 0 0; }
.screenshots { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screenshot { flex: 0 0 auto; height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); scroll-snap-align: start; }
.screenshot img { height: 100%; width: auto; object-fit: cover; }
.screenshot-video { aspect-ratio: 16 / 9; }
.screenshot-video iframe { width: 100%; height: 100%; border: 0; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; margin-top: 1.5rem; }
.prose { color: var(--text-2); line-height: 1.7; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .25rem 0; }
.collapsible { position: relative; }
.collapsible.collapsed { max-height: 220px; overflow: hidden; }
.collapsible.collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fff); }
.collapse-toggle { margin-top: .5rem; }
.list-simple { list-style: none; padding: 0; margin: 0; }
.list-simple li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.list-simple li:last-child { border-bottom: 0; }
.rating-summary { display: flex; gap: 2rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.rating-big { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.rating-big strong { font-size: 3rem; font-weight: 800; line-height: 1; }
.rating-big small { color: var(--muted); }
.rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .3rem; }
.rating-bar { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); text-decoration: none !important; }
.rating-bar > span { width: 10px; text-align: right; font-weight: 600; }
.rating-bar small { min-width: 24px; text-align: right; }
a.rating-bar { padding: .1rem .3rem; border-radius: 6px; }
a.rating-bar:hover, a.rating-bar.active { background: var(--primary-50); }
.bar { flex: 1; height: 8px; background: #EEF2F6; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary-400); border-radius: 999px; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; line-height: 1; }
.star { display: inline-block; font-style: normal; }
.star::before { content: '★'; }
.stars-sm .star { font-size: .9rem; }
.stars-md .star { font-size: 1.15rem; }
.stars-lg .star { font-size: 1.5rem; }
.star-full { color: #F59E0B; }
.star-empty { color: #D5DCE6; }
.star-half { background: linear-gradient(90deg, #F59E0B 50%, #D5DCE6 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.review-form h3 { margin-bottom: .6rem; }
.reviews { display: flex; flex-direction: column; }
.review { padding: 1rem 0; border-top: 1px solid var(--border); }
.review header { display: flex; gap: .7rem; align-items: center; margin-bottom: .5rem; }
.review header > div { flex: 1; min-width: 0; }
.review p { margin: 0; color: var(--text-2); }
.review-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); }
.review-report { margin: 0; }
.dev-reply { margin-top: .7rem; padding: .75rem .9rem; background: var(--surface-2); border-left: 3px solid var(--primary-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; }
.dev-reply strong { display: inline-flex; align-items: center; gap: .35rem; }
.dev-reply p { margin-top: .3rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list > div, .info-list > li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-list > div:last-child, .info-list > li:last-child { border-bottom: 0; }
.info-list dt, .info-list > li > span:first-child { color: var(--muted); }
.info-list dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.info-list > li > strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.perm-list, .safety-list, .contact-list { list-style: none; padding: 0; margin: 0; }
.perm-list li, .safety-list li, .contact-list li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-size: .9rem; }
.perm-list .icon { color: var(--success); }
.perm-list .perm-danger { color: #9A3412; }
.perm-list .perm-danger .icon { color: #EA580C; }
.perm-list li.extra { display: none; }
.perm-list.expanded li.extra { display: flex; }
.safety-list .icon, .contact-list .icon { color: var(--primary); }
.link-icon { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.dev-mini { display: flex; align-items: center; gap: .7rem; padding: .6rem; margin: 0 -.6rem .5rem; border-radius: var(--radius); color: var(--text); text-decoration: none !important; }
.dev-mini:hover { background: var(--surface-2); }
.dev-mini span { display: flex; flex-direction: column; }
.dev-mini small { color: var(--primary); font-weight: 600; font-size: .82rem; }
.steps-list { padding-left: 1.3rem; }
.steps-list li { margin: .4rem 0; }

/* ---------- Modal & lightbox ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); color: var(--text); }
.modal::backdrop { background: rgba(11, 16, 32, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .18s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.modal-body { padding: 1.25rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(11, 16, 32, .92); padding: 3rem 4rem; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: auto; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Store: search, categories, developer, plans ---------- */
.search-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters .form-actions { flex-direction: column; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.category-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; transition: box-shadow .2s; }
.category-card:hover { box-shadow: var(--shadow); }
.category-card-main { display: flex; align-items: center; gap: .8rem; color: var(--text); text-decoration: none !important; }
.category-card-main strong { display: block; }
.category-card-main small { color: var(--muted); }
.category-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--cat, #0F766E) 14%, white); color: var(--cat, var(--primary)); flex-shrink: 0; }
.category-icon .icon { width: 22px; height: 22px; }
.category-icon-lg { width: 64px; height: 64px; border-radius: 18px; }
.category-icon-lg .icon { width: 30px; height: 30px; }
.category-children { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.category-children a { font-size: .8rem; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.category-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.category-hero-title h1 { margin: 0; }
.category-hero-title p { margin: .2rem 0 0; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tab { padding: .6rem .9rem; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs-pill { border-bottom: 0; gap: .35rem; flex-wrap: wrap; }
.tabs-pill .tab { border: 1px solid var(--border); border-radius: 999px; background: #fff; padding: .4rem .9rem; margin: 0; }
.tabs-pill .tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.dev-hero { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; }
.dev-hero-inner { display: flex; gap: 1.4rem; align-items: center; padding: 1.5rem; flex-wrap: wrap; }
.dev-logo { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); }
.dev-type { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); }
.dev-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.dev-stats strong { color: var(--text); font-size: 1.05rem; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; margin-bottom: 1.5rem; }
.plan-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.plan-card h2 { margin-bottom: .2rem; }
.plan-card > .btn, .plan-card > form, .plan-card .plan-buy { margin-top: auto; }
.plan-highlight { border: 2px solid var(--primary-400); box-shadow: 0 10px 30px rgba(20, 184, 166, .18); }
.plan-current { border: 2px solid var(--accent); }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: .74rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan-current .plan-ribbon { background: var(--accent); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem; margin: .8rem 0 1rem; }
.plan-price strong { font-size: 2rem; font-weight: 800; }
.plan-price span { color: var(--muted); }
.plan-price small { flex-basis: 100%; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.3rem; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.plan-features li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-features .icon { color: var(--success); margin-top: .15em; }
.plan-features .plan-off { color: var(--muted); }
.plan-features .plan-off .icon { color: #CBD5E1; }
.plan-buy { display: flex; flex-direction: column; gap: .5rem; }
.checkout-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 1rem 0; font-size: 1.05rem; }
.checkout-total strong { font-size: 1.5rem; }
.age-gate { max-width: 520px; margin: 3rem auto; text-align: center; }
.age-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--danger-50); color: var(--danger); font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem; }

/* ---------- Empty, pagination ---------- */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px; background: var(--primary-50); color: var(--primary); margin-bottom: 1rem; }
.empty-icon .icon { width: 30px; height: 30px; }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.empty p { max-width: 460px; margin: 0 auto 1rem; }
.card .empty { padding: 2rem 1rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 1.5rem 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.page-link:hover { border-color: var(--primary-400); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-gap { padding: 0 .3rem; color: var(--muted); }
.page-total { margin-left: auto; font-size: .85rem; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; }
.toolbar > .input-group { flex: 1 1 260px; max-width: 420px; }
.toolbar > .select { width: auto; min-width: 160px; }
.toolbar .check { margin: 0; }
.toolbar .tabs { margin: 0; }
.toolbar-wrap > .input-group { flex: 0 1 auto; }
.toolbar-wrap > .input-group:first-child { flex: 1 1 260px; }

/* ---------- Lists ---------- */
.list-rows { list-style: none; padding: 0; margin: 0; }
.list-rows > li { border-bottom: 1px solid var(--border); }
.list-rows > li:last-child { border-bottom: 0; }
.list-row, .list-row-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; min-width: 0; }
.list-row-link { color: var(--text); text-decoration: none !important; }
.list-row-link:hover { background: var(--surface-2); }
.list-row .grow, .list-row-link .grow { display: flex; flex-direction: column; }
.list-row small, .list-row-link small { font-size: .8rem; }
.card-body .list-rows .list-row, .card-body .list-rows .list-row-link { padding-left: 0; padding-right: 0; }
.list-cards { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1rem; }
.list-card { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; margin: 0; align-items: flex-start; }
.list-card-body { flex: 1; min-width: 0; }
.list-card-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.list-card-body p:last-child { margin-bottom: 0; }
.list-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; flex-shrink: 0; max-width: 46%; }
.list-card-actions form { margin: 0; }
.dev-reply-form { flex-direction: row; }
.dev-reply-form .input { width: 220px; }
.kv-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.kv-list > li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; align-items: baseline; }
.kv-list > li:last-child { border-bottom: 0; }
.kv-list > li > span:first-child { color: var(--muted); }
.kv-list > li > strong { font-weight: 600; min-width: 0; }
.bar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.bar-list li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: .7rem; align-items: center; font-size: .88rem; }
.bar-list li > span:last-child { font-weight: 600; min-width: 48px; text-align: right; }
.timeline { list-style: none; padding: 0 0 0 1.3rem; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-bottom: 1.1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -1.3rem; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-400); }
.timeline time { display: block; }
.timeline p { margin: .3rem 0 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: .9rem; color: var(--muted); }
.checklist li a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; }
.checklist li .icon { color: #CBD5E1; }
.checklist li.done { color: var(--text); }
.checklist li.done .icon { color: var(--success); }
.checklist-big li { padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; justify-content: space-between; }
.checklist-big li:last-child { border-bottom: 0; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; padding: 1rem 1.25rem 1.25rem; }
.todo-item { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-size: .9rem; text-decoration: none !important; }
.todo-item span { flex: 1; }
.todo-item strong { font-size: 1.1rem; color: var(--text-2); }
.todo-item.has-items { border-color: #F8DDB0; background: var(--warning-50); color: #7C2D12; }
.todo-item.has-items strong { color: #B45309; }
.todo-item:hover { box-shadow: var(--shadow); }

/* ---------- Auth ---------- */
.theme-auth { background: #fff; }
.auth-shell { display: grid; grid-template-columns: minmax(320px, 460px) 1fr; min-height: 100vh; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem; background: radial-gradient(600px 300px at 100% 0%, rgba(99, 102, 241, .4), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(20, 184, 166, .35), transparent 60%), var(--dark); color: #CBD5E1; }
.auth-aside .brand { color: #fff; }
.auth-aside-copy h2 { color: #fff; font-size: 1.6rem; margin-bottom: 1.2rem; }
.auth-aside-copy ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.auth-aside-copy li { display: flex; gap: .6rem; align-items: flex-start; }
.auth-aside-copy .icon { color: #5EEAD4; margin-top: .15em; }
.auth-aside small { color: #64748B; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem; }
.auth-card:has(.wide-form), .auth-card:has(.onboarding-card) { max-width: 720px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-card > p.muted { margin-bottom: 1.4rem; }
.auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-50); color: var(--primary); margin-bottom: 1rem; }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-switch { text-align: center; margin: 1.3rem 0 0; font-size: .92rem; color: var(--muted); }
.auth-links { display: flex; gap: 1.2rem; margin-top: 1.4rem; font-size: .85rem; }
.auth-links a { color: var(--muted); }

/* ---------- Status pages ---------- */
.status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); text-align: center; }
.status-inline { min-height: auto; padding: 4rem 1rem; background: transparent; }
.status-page > div { max-width: 520px; }
.status-icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 24px; background: var(--primary-50); color: var(--primary); margin-bottom: 1.2rem; }
.status-icon .icon { width: 38px; height: 38px; }
.status-code { font-size: 4.5rem; font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }
.status-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.account-nav { padding: .6rem; position: sticky; top: calc(var(--header-h) + 16px); }
.theme-panel .account-nav { top: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.account-user { display: flex; gap: .75rem; align-items: center; padding: .6rem .6rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.account-user > div { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; }
.account-user small { color: var(--muted); }
.account-content { min-width: 0; }
.nav-item { display: flex; align-items: center; gap: .65rem; padding: .58rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .92rem; text-decoration: none !important; transition: background .12s, color .12s; }
.nav-item .icon { color: var(--muted); }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.nav-item.active .icon { color: var(--primary); }
.notif-page { display: flex; flex-direction: column; }
.notif-row { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--surface-2); }
.notif-row.unread { background: #F2FBFA; }
.notif-row.unread .notif-text strong::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: .4rem; border-radius: 50%; background: var(--primary-400); vertical-align: middle; }
.notif-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.notif-icon .icon { width: 18px; height: 18px; }
.notif-text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .9rem; }
.notif-text p, .notif-text span { margin: .1rem 0 0; color: var(--text-2); }
.notif-text small, .notif-text time { color: var(--muted); font-size: .78rem; }
.code-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; padding: 1rem; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); font-family: var(--mono); font-size: .95rem; text-align: center; margin: .8rem 0; }
.totp-setup { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.qr { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.qr img, .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.upsell { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.25rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-50), var(--primary-50)); border: 1px solid #DCE3FF; margin-bottom: 1.25rem; }
.info-strip { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; color: var(--text-2); margin-bottom: 1rem; }
.profile-head .card-body { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.profile-head h1 { font-size: 1.5rem; margin-bottom: .1rem; }
.profile-head p { margin: 0 0 .4rem; }

/* ---------- Support threads ---------- */
.thread { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.thread-msg { display: flex; gap: .75rem; align-items: flex-start; }
.thread-msg.staff { flex-direction: row-reverse; }
.thread-bubble { flex: 1; max-width: 85%; background: #fff; border: 1px solid var(--border); border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg); padding: .85rem 1rem; box-shadow: var(--shadow-sm); }
.thread-msg.staff .thread-bubble { background: #F2FBFA; border-color: #CDEDEA; border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg); }
.thread-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .35rem; font-size: .88rem; }
.thread-body { font-size: .93rem; color: var(--text-2); overflow-wrap: anywhere; }
.attachment { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .35rem .7rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; }

/* ---------- Policies & docs ---------- */
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: .1rem; }
.policy-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 2.2rem; min-width: 0; }
.policy-body h1 { font-size: 1.8rem; }

/* ---------- Panel shell (console & admin) ---------- */
.theme-panel { background: var(--bg); }
.panel-shell { display: flex; min-height: 100vh; }
.panel-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); display: flex; flex-direction: column; background: var(--dark); color: #CBD5E1; z-index: 150; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.panel-brand { padding: 1.1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.panel-brand .brand { color: #fff; }
.panel-account { display: flex; align-items: center; gap: .7rem; margin: .9rem; padding: .75rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.panel-account > div { display: flex; flex-direction: column; min-width: 0; gap: .2rem; }
.panel-account strong { color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-account small { font-size: .75rem; color: #94A3B8; }
.panel-account .avatar { border-color: rgba(255, 255, 255, .15); }
.panel-nav { flex: 1; padding: .3rem .7rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.panel-sidebar .nav-item { color: #CBD5E1; font-size: .9rem; padding: .52rem .75rem; }
.panel-sidebar .nav-item .icon { color: #64748B; }
.panel-sidebar .nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.panel-sidebar .nav-item.active { background: rgba(20, 184, 166, .16); color: #fff; }
.panel-sidebar .nav-item.active .icon { color: #5EEAD4; }
.theme-console .panel-sidebar .nav-item.active { background: rgba(99, 102, 241, .2); }
.theme-console .panel-sidebar .nav-item.active .icon { color: #A5B4FC; }
.theme-admin .panel-sidebar .nav-item.active { background: rgba(245, 158, 11, .14); }
.theme-admin .panel-sidebar .nav-item.active .icon { color: #FCD34D; }
.nav-group { margin-top: .9rem; }
.nav-group-title { display: flex; align-items: center; gap: .55rem; padding: .3rem .75rem .45rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748B; }
.nav-group-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: .85rem; color: #E2E8F0; }
.nav-app-icon { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; background: #fff; }
.nav-sub { padding-left: 1.1rem !important; }
.panel-sidebar-foot { padding: .7rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.panel-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.panel-topbar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: .8rem; height: 60px; padding: 0 1.5rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.panel-menu-btn { display: none; }
.panel-topbar-title { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.panel-backdrop { position: fixed; inset: 0; background: rgba(11, 16, 32, .5); z-index: 140; }

/* ---------- Stats & charts ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none !important; min-width: 0; }
a.stat-card:hover { box-shadow: var(--shadow); border-color: #D7DEE8; }
.stat-card > div { display: flex; flex-direction: column; min-width: 0; }
.stat-card small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat-card strong { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin: .1rem 0; overflow-wrap: anywhere; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-highlight { background: var(--gradient); border-color: transparent; color: #fff; }
.stat-highlight small, .stat-highlight .muted { color: rgba(255, 255, 255, .85); }
.stat-highlight .stat-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.chart-box { position: relative; width: 100%; }
.chart-box canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.chart-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); font-size: .88rem; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(148, 163, 184, .06) 10px 20px); border-radius: var(--radius); }
.chart-empty .icon { width: 28px; height: 28px; color: #CBD5E1; }
.progress { height: 8px; background: #EEF2F6; border-radius: 999px; overflow: hidden; min-width: 80px; }
.progress > i { display: block; height: 100%; background: var(--gradient); border-radius: 999px; transition: width .3s; }
.progress-lg { height: 12px; }

/* ---------- Console ---------- */
.onboarding-card { text-align: left; }
.steps-inline { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; counter-reset: step; }
.steps-inline li { display: flex; align-items: center; gap: .5rem; padding: .75rem .9rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; }
.steps-inline .icon { color: var(--primary); }
.app-console-head .card-body, .app-console-head:not(.card) { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.app-console-head:not(.card) { margin-bottom: 1.25rem; }
.app-console-head h1 { font-size: 1.5rem; margin-bottom: .15rem; }
.app-console-head p { margin: 0 0 .4rem; }
.wizard { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.wizard-steps { position: sticky; top: 76px; padding: 1rem; }
.wizard-steps ol { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-direction: column; gap: .15rem; }
.wizard-steps li a { display: flex; align-items: center; gap: .65rem; padding: .5rem .55rem; border-radius: 10px; color: var(--text-2); font-size: .9rem; font-weight: 500; text-decoration: none !important; }
.wizard-steps li a:hover { background: var(--surface-2); }
.wizard-steps li.current a { background: var(--primary-50); color: var(--primary); font-weight: 700; }
.wizard-progress { display: flex; flex-direction: column; gap: .5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); font-size: .78rem; font-weight: 700; color: var(--muted); flex-shrink: 0; background: #fff; }
.step-num .icon { width: 14px; height: 14px; }
.wizard-steps li.current .step-num { border-color: var(--primary); color: var(--primary); }
.wizard-steps li.done .step-num { background: var(--success); border-color: var(--success); color: #fff; }
.wizard-body { min-width: 0; }
.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; margin: 1rem 0; }
.shot { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(11, 16, 32, .75); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.shot-del:hover { background: var(--danger); }
.shot-del .icon { width: 15px; height: 15px; }
.banner-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin: .8rem 0; }
.submit-summary { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 1rem; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.track-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.track-card h3 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.track-production { border-color: rgba(20, 184, 166, .45); background: linear-gradient(180deg, #F2FBFA, #fff 60%); }
.apk-result { margin-top: .9rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); font-size: .9rem; }
.apk-result.ok { border-color: #BFEBD8; background: var(--success-50); }
.apk-result.fail { border-color: #F8C9C9; background: var(--danger-50); }
.apk-result.loading { color: var(--muted); }
.apk-result .apk-title { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin-bottom: .6rem; }
.apk-result.ok .apk-title { color: #047857; }
.apk-result.fail .apk-title { color: #B91C1C; }
.apk-result ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.apk-result li { display: flex; gap: .45rem; align-items: flex-start; padding: .2rem 0; }
.apk-result li .icon { margin-top: .15em; }
.apk-result li.pass .icon { color: var(--success); }
.apk-result li.miss .icon { color: var(--danger); }
.apk-result dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: .3rem .8rem; margin: .5rem 0 0; font-size: .85rem; }
.apk-result dt { color: var(--muted); }
.apk-result dd { margin: 0; overflow-wrap: anywhere; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -.2em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .stat-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .grid-main-side, .grid-side-main, .app-layout { grid-template-columns: minmax(0, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: 1fr; }
    .wizard { grid-template-columns: 1fr; }
    .wizard-steps { position: static; }
    .wizard-steps ol { flex-direction: row; overflow-x: auto; gap: .3rem; }
    .wizard-steps li a { white-space: nowrap; }
    .panel-sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
    .panel-sidebar.open { transform: none; }
    .panel-main { margin-left: 0; }
    .panel-menu-btn { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .header-nav { display: none; }
    .header-menu-btn { display: inline-flex; }
    .search-layout, .account-layout, .policy-layout { grid-template-columns: minmax(0, 1fr); }
    .filters, .account-nav, .policy-nav { position: static; }
    .account-nav nav { display: flex; overflow-x: auto; gap: .2rem; }
    .account-nav .nav-item { white-space: nowrap; }
    .account-layout > .account-nav:not(.card) { display: flex; overflow-x: auto; }
    .policy-nav { flex-direction: row; overflow-x: auto; }
    .policy-nav .nav-item { white-space: nowrap; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .totp-setup { grid-template-columns: 1fr; }
    .list-card { flex-direction: column; }
    .list-card-actions { max-width: none; justify-content: flex-start; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { padding: 0 14px; }
    .header-inner { gap: .5rem; }
    .brand-text { display: none; }
    .header-search input { height: 38px; }
    .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .stat-grid, .stat-grid-3, .stat-grid-5 { grid-template-columns: minmax(0, 1fr); }
    .app-page { padding-top: .8rem; }
    .app-head { margin: 0 -14px 1.2rem; padding: 0 14px 1.3rem; border-radius: 0 0 24px 24px; border-left: 0; border-right: 0; border-top: 0; }
    .app-cover { height: 150px; margin: 0 -14px; }
    .app-head-icon { width: 104px; height: 104px; margin-top: -52px; border-radius: 26px; border-width: 4px; }
    .app-head-info { margin-top: .7rem; }
    .app-head-info h1 { font-size: 1.45rem; }
    .app-head-dev { font-size: .92rem; }
    .app-badges .badge { font-size: .72rem; }
    .app-facts { display: flex; overflow-x: auto; scrollbar-width: none; margin: 1rem 0 1.1rem; padding: .7rem .2rem; scroll-snap-type: x proximity; }
    .app-facts::-webkit-scrollbar { display: none; }
    .app-facts > div { flex: 1 0 auto; min-width: 84px; padding: 0 .7rem; scroll-snap-align: start; }
    .app-facts dt { font-size: .95rem; }
    .app-actions-main { flex-direction: column; }
    .app-actions-main > .btn, .app-actions-main > form { flex: none; width: 100%; }
    .app-actions .btn-lg { padding-top: .8rem; padding-bottom: .8rem; border-radius: 14px; }
    .app-tool { min-width: 68px; padding: .4rem; }
    .screenshot { height: 300px; }
    .hero { padding: 2.2rem 0; }
    .hero-inner { gap: 1.4rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 1rem; margin-top: 1rem; font-size: .84rem; }
    .hero-featured { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px .4rem; scrollbar-width: none; }
    .hero-featured::-webkit-scrollbar { display: none; }
    .featured-card, .featured-0 { flex: 0 0 78%; min-height: 108px; scroll-snap-align: start; border-radius: 16px; }
    .featured-card:only-child { flex-basis: 100%; }
    .featured-info { gap: .65rem; padding: .7rem .8rem; align-items: center; }
    .featured-info img { width: 44px; height: 44px; border-radius: 12px; }
    .featured-info h3 { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .featured-info > div { min-width: 0; }
    .featured-info small { display: block; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .featured-info .mini-badge { font-size: .62rem; }
    .featured-banner::after { background: linear-gradient(180deg, rgba(11, 16, 32, .15), rgba(11, 16, 32, .9)); }
    .app-row { grid-auto-columns: 142px; gap: .7rem; }
    .app-card { padding: 1rem .7rem .85rem; gap: .6rem; }
    .app-card::before { height: 50px; }
    .app-card-icon, .app-card-icon img { width: 64px; height: 64px; }
    .app-card-icon img { border-radius: 17px; }
    .app-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .panel-content { padding: 1rem; }
    .panel-topbar { padding: 0 .8rem; }
    .kv-list > li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    .policy-body { padding: 1.3rem; }
    .auth-card { padding: 1.4rem; }
    .card-body { padding: 1rem; }
    .toolbar > .select { flex: 1 1 140px; }
    .thread-bubble { max-width: 100%; }
    .dev-reply-form .input { width: 100%; }
    .apk-result dl { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .panel-sidebar, .panel-topbar, .toast-stack, .btn { display: none !important; }
    .panel-main { margin: 0; }
    body { background: #fff; }
    .card { box-shadow: none; }
}
