@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191c20;
  --surface-raised: #20242a;
  --surface-inset: #14171a;
  --line: #2b3036;
  --line-strong: #394047;
  --text: #f0f2f3;
  --muted: #9ba2a8;
  --muted-strong: #c4c9cd;
  --accent: #a8d94c;
  --accent-strong: #b9e863;
  --max: 1200px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .22);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 'DM Sans', system-ui, sans-serif; }
body, button, input, select, textarea { font-family: 'DM Sans', system-ui, sans-serif; }
button, input, select, textarea { font-size: inherit; }
button { color: inherit; }
a { color: var(--accent); }
.role-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.user-role-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px; border: 1px solid #596b4d; border-radius: 2px; background: #8ca66e12; color: #b7d68b; font-size: 9px; font-weight: 700; letter-spacing: .035em; line-height: 1.2; }
.user-role-parceiro { border-color: #9c8045; background: #e7bd4b12; color: #f0d17b; }
.user-role-scripter { border-color: #4f8490; background: #52b6ca12; color: #8ddceb; }
.user-role-custom { border-color: #6e5c94; background: #a98be012; color: #c2aaf2; }
.user-role-helper { border-color: #518464; background: #55bb7b12; color: #91d5aa; }
.user-role-apoiador { border-color: #8d597b; background: #d083b912; color: #e6a6d4; }
a:hover { color: var(--accent-strong); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
::selection { color: #111315; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Shared site header and footer */
header.site-header { position: sticky !important; z-index: 1000; top: 0 !important; display: flex; width: 100%; min-height: 68px; align-items: center; gap: 24px; padding: 9px max(22px, calc((100vw - var(--max)) / 2)); border: 0; border-bottom: 1px solid var(--line); background: #151719; color: var(--text); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.brand span { font: 700 15px/1 'Space Grotesk', sans-serif; letter-spacing: .035em; }
.brand em { color: var(--accent); font-style: normal; }
.site-nav { order: 2; margin-left: 0; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav a { display: flex; min-height: 40px; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 4px; color: var(--muted-strong); font-size: 12px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current='page'] { background: #22262a; color: var(--text); }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -2px var(--accent); }
.site-nav .sub-menu { position: absolute; top: calc(100% + 4px); left: 0; display: none; min-width: 190px; padding: 5px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: grid; }
.site-nav .sub-menu a { min-height: 37px; }
.header-search { order: 3; display: flex; flex: 1 1 180px; max-width: 260px; min-width: 130px; height: 36px; margin-left: auto; border: 1px solid var(--line-strong); background: var(--surface-inset); }
.header-search input { width: 100%; min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.header-search button { display: grid; width: 38px; flex: 0 0 38px; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.header-search button:hover { color: var(--accent); }
.header-account { order: 4; display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.header-account a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 11px; border: 1px solid var(--line-strong); color: var(--muted-strong); font-size: 11px; font-weight: 700; text-decoration: none; }
.header-account a:last-child { border-color: var(--accent); background: var(--accent); color: #161a10; }
.header-account a:hover { border-color: var(--accent); color: var(--text); }
.header-account a:last-child:hover { background: var(--accent-strong); color: #161a10; }
.account-menu { position: relative; }
.account-avatar { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-raised); color: var(--accent); font-weight: 700; cursor: pointer; list-style: none; }
.account-avatar::-webkit-details-marker { display: none; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-dropdown { position: absolute; z-index: 1200; top: calc(100% + 9px); right: 0; display: grid; min-width: 190px; gap: 2px; padding: 8px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.account-dropdown strong { overflow: hidden; padding: 7px 8px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown a, .account-dropdown button { padding: 8px; border: 0; background: transparent; color: var(--text); font: 500 11px 'DM Sans', sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--surface-raised); color: var(--accent); }
.menu-btn { display: none !important; }
.site-footer { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 22px; margin-top: 72px; padding: 24px max(22px, calc((100vw - var(--max)) / 2)); border: 0; border-top: 1px solid var(--line); background: #151719; color: var(--muted); font-size: 11px; }
.site-footer .brand img { width: 29px; height: 29px; }
.site-footer .brand span { font-size: 12px; }
.site-footer > span { flex: 1; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.site-footer nav a { color: var(--muted-strong); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
footer:not(.site-footer) { display: none; }

/* Shared buttons, catalog and legacy page structure */
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 4px !important; background: var(--accent); color: #171b12; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-strong); color: #171b12; }
.button.secondary { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.banner-background { position: absolute; z-index: -1; inset: 0 0 auto; height: 250px; overflow: hidden; pointer-events: none; }
.banner-background::after { position: absolute; inset: 0; background: linear-gradient(#111315aa, var(--bg)); content: ''; }
#imgBackground { width: 100%; height: 100%; background: #111315 !important; opacity: 1 !important; filter: none !important; }
.corpo { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 36px 0 0; }
.corpo > .titulo, .corpo .titulo { margin: 12px 0 20px; color: var(--text) !important; font: 600 clamp(30px, 4vw, 44px)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.035em; text-align: left; }
.titulo span { color: var(--accent); }
.corpo .titulo .titulos-img { width: 130px; max-height: 34px; object-fit: contain; vertical-align: middle; }
.centralizar { display: flex; align-items: center; justify-content: center; gap: 10px; }
.centralizar > form { display: flex; width: min(100%, 540px); height: 44px; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--line-strong); background: var(--surface-inset); }
.centralizar > form input[type='text'], .centralizar > form input[type='search'] { width: 100%; min-width: 0; height: 100%; padding: 8px 11px; border: 0; outline: 0; background: transparent; color: var(--text); }
.centralizar > form input::placeholder { color: #777f86; }
.centralizar > form button, .dropbtn { display: grid; width: 34px; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); background: var(--surface-raised); color: var(--muted-strong); cursor: pointer; }
.centralizar > form button:hover, .dropbtn:hover { border-color: var(--accent); color: var(--accent); }
.centralizar > form button img, .dropbtn img { width: 16px; height: 16px; object-fit: contain; }
#clearButton { font-size: 11px; }
.dropdown { position: relative; }
.dropdown-content { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; display: none; min-width: 135px; padding: 5px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: grid; }
.filter-button { padding: 8px 10px; border: 1px solid var(--line); background: var(--surface-raised); color: var(--muted-strong); font-size: 11px; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--accent); color: var(--accent); }
.corpo_container { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); align-items: stretch; gap: 12px; margin: 24px auto !important; animation: none !important; }
.container { position: relative; width: 100%; min-width: 0; min-height: 0; height: auto; margin: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); box-shadow: none; text-align: left; }
.container:hover { border-color: #57604b; background: var(--surface-raised); box-shadow: none; transform: none; }
.container > a { display: flex; min-height: 100%; height: 100%; flex-direction: column; align-items: flex-start; padding: 14px; color: var(--text); text-align: left; text-decoration: none; }
.container img { display: block; width: 100%; height: 140px; flex: 0 0 auto; margin: 0 0 12px; border: 1px solid var(--line); background: var(--surface-inset); object-fit: cover; animation: none; }
.container img[src=''], .container img:not([src]), .container img[src$='imagem3.jpg'] { display: none; }
.container h2 { margin: 2px 0 5px; color: var(--text); font: 600 16px/1.3 'Space Grotesk', sans-serif; text-align: left; }
.container span { color: var(--muted); font: 400 12px/1.55 'DM Sans', sans-serif; }
.container p { margin: 10px 0 0; color: var(--accent); font: 700 9px 'DM Sans', sans-serif; letter-spacing: .08em; }
.container:has(img[src='']) { min-height: 120px; }
.official-post-card { min-height: 0; }
.official-post-content { display: grid; gap: 8px; padding: 15px; }
.official-post-content h3 { margin: 0; color: var(--text); font: 600 16px/1.35 'Space Grotesk', sans-serif; }
.official-post-content p { margin: 0; color: var(--muted-strong); font-size: 12px; }
.official-post-content > small { color: var(--muted); font-size: 10px; }
.official-post-link { color: var(--accent); font-size: 11px; font-weight: 600; }
.official-code summary { color: var(--muted-strong); font-size: 11px; cursor: pointer; }
.official-code pre { max-height: 320px; overflow: auto; padding: 12px; background: #0c0e10; color: #d4dfc4; font: 11px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.corpo > .centralizar { margin: 16px 0; }
.BtnDetalhes, .contato-detalhes { display: inline-flex !important; width: auto !important; min-height: 42px; align-items: center; justify-content: center; padding: 9px 14px !important; border: 1px solid var(--accent) !important; border-radius: 4px !important; background: var(--accent) !important; box-shadow: none !important; color: #171b12 !important; font: 700 12px 'DM Sans', sans-serif !important; text-decoration: none; cursor: pointer; }
.BtnDetalhes:hover, .contato-detalhes:hover { background: var(--accent-strong) !important; }
.corpo > .centralizar .BtnDetalhes { min-width: min(100%, 250px); }
.resumo { max-width: 860px; margin: 18px 0; padding: 20px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 2px; background: var(--surface); }
.resumo h1 { margin: 0 0 8px; color: var(--muted); font: 700 11px 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.resumo .descricao { margin: 0; color: var(--muted-strong); font-size: 14px; text-align: left; }
.resumo .autor { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: left; }
.corpo > .centralizar:has(#copy-btn) { justify-content: flex-start; }
.corpo pre { position: relative; max-width: 100%; max-height: 640px; overflow: auto; margin: 12px 0 46px; padding: 18px; border: 1px solid var(--line); border-radius: 2px; background: #0c0e10; color: #d4dfc4; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.corpo pre code { color: inherit; font: inherit; }
.script-detail, .resource-detail { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 32px 0 10px; }
.detail-back { display: inline-flex; align-items: center; margin-bottom: 20px; color: var(--muted-strong); font-size: 11px; font-weight: 600; text-decoration: none; }
.detail-back:hover { color: var(--accent); }
.script-detail-header, .resource-detail-header { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.script-detail-header h1, .resource-detail-header h1 { margin: 5px 0 8px; font: 600 clamp(29px, 4vw, 42px)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.script-byline { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.script-detail-layout, .resource-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 28px; padding-top: 20px; }
.script-detail-main, .resource-detail-main { display: grid; min-width: 0; gap: 18px; }
.detail-description, .script-code-section, .detail-facts, .related-scripts, .resource-gallery, .detail-message { min-width: 0; padding: 17px; border: 1px solid var(--line); background: var(--surface); }
.detail-description h2, .script-code-section h2, .detail-facts h2, .related-scripts h2, .resource-gallery h2, .detail-message h1 { margin: 0 0 10px; font: 600 16px 'Space Grotesk', sans-serif; }
.detail-description p, .detail-message p { margin: 0; color: var(--muted-strong); font-size: 13px; white-space: pre-wrap; }
.detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.detail-section-heading h2 { margin: 4px 0 0; }
.script-code { max-height: 680px; overflow: auto; margin: 14px 0 0; padding: 16px; border: 1px solid var(--line); background: #0c0e10; color: #d4dfc4; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.script-code code { color: inherit; font: inherit; }
.copy-status { min-height: 20px; margin: 5px 0 0; color: var(--accent); font-size: 10px; }
.script-detail-aside, .resource-detail-aside { display: grid; gap: 12px; }
.detail-facts dl { display: grid; gap: 10px; margin: 0; }
.detail-facts dl > div { display: grid; gap: 2px; }
.detail-facts dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.detail-facts dd { margin: 0; color: var(--muted-strong); font-size: 11px; }
.related-script { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 11px; text-decoration: none; }
.related-script:hover { color: var(--accent); }
.related-script small { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.resource-detail-header { margin-bottom: 16px; }
.resource-gallery { margin-top: 18px; }
.resource-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.resource-media { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #0c0e10; }
.resource-media img, .resource-media video { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.resource-image-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.resource-media figcaption { padding: 7px 9px; color: var(--muted); font-size: 10px; }
.resource-image-modal { position: fixed; z-index: 1600; inset: 0; display: grid; place-items: center; padding: 30px; background: #08090bf2; }
.resource-image-modal[hidden] { display: none; }
.resource-image-modal > img { max-width: min(94vw, 1400px); max-height: 88vh; object-fit: contain; }
.resource-image-modal > button { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 23px; cursor: pointer; }
.resource-image-modal > button:hover { border-color: var(--accent); color: var(--accent); }
.detail-message { max-width: 720px; margin: 10px 0; }
.detail-message h1 { font-size: 24px; }
.line-numbers { float: left; margin-right: 16px; color: #60686d; font: 12px/1.7 ui-monospace, Consolas, monospace; text-align: right; white-space: pre; user-select: none; }
.script-code { padding: 12px 0; background: #0b1010; color: #dce7df; }
.script-code code { display: block; min-width: max-content; }
.code-line { display: grid; grid-template-columns: 4.2em max-content; min-height: 1.7em; white-space: pre; }
.code-line:hover { background: #151c1b; }
.line-number { position: sticky; left: 0; z-index: 1; padding: 0 1em 0 .5em; border-right: 1px solid #29322f; background: #0b1010; color: #687872; text-align: right; user-select: none; }
.code-text { padding-left: 1em; }
.code-keyword { color: #c792ea; }
.code-string { color: #c3e88d; }
.code-comment { color: #71817a; font-style: italic; }
.code-number { color: #f78c6c; }
.code-function { color: #82aaff; }
.related-library { margin-top: 2px; }
.related-intro { margin: -3px 0 12px; color: var(--muted); font-size: 11px; }
.related-script-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.related-script-card { display: flex; min-height: 190px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.related-script-card > small { color: var(--accent); font-size: 9px; }
.related-script-card h3 { margin: 0; color: var(--text); font: 600 15px/1.3 'Space Grotesk', sans-serif; }
.related-script-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.related-script-card .script-arrow { margin-top: auto; color: var(--accent); font-size: 10px; }
.related-script-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ghost-loader { display: flex; min-height: 145px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; text-align: center; }
.ghost-loader[hidden] { display: none !important; }
.ghost-loader-inline { min-height: 58px; flex-direction: row; justify-content: flex-start; padding: 0 10px; }
.ghost-loader-art { display: grid; width: 43px; height: 43px; place-items: center; animation: ghost-float 1.45s ease-in-out infinite; }
.ghost-loader-art svg { width: 100%; height: 100%; overflow: visible; fill: #a8d94c24; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 7px #a8d94c55); }
.ghost-loader-art circle { fill: var(--accent); stroke: none; }
.ghost-loader-dots { color: var(--accent); letter-spacing: 3px; animation: ghost-dots 1s steps(4, end) infinite; }
@keyframes ghost-float { 0%, 100% { transform: translateY(3px) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes ghost-dots { 0% { opacity: .25; } 50% { opacity: 1; } 100% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ghost-loader-art, .ghost-loader-dots { animation: none; } }
.popular-script { align-items: center; }
.popular-script > span { display: grid; gap: 3px; min-width: 0; }
.popular-script > span small { color: var(--accent); font-size: 9px; }
.popular-script > strong { flex: 0 0 auto; color: var(--accent); font-size: 10px; }
.script-star-control { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.script-detail-aside { position: sticky; top: 88px; max-height: calc(100vh - 105px); overflow: auto; scrollbar-width: thin; }
.script-detail-aside .related-scripts { max-height: 46vh; overflow: auto; }
.script-detail-aside .popular-scripts { max-height: none; }
.search-empty-state { grid-column: 1 / -1; margin: 0; padding: 25px 15px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; text-align: center; }
#clearButton:disabled { opacity: .4; cursor: default; }
#copy-btn { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 3px !important; background: var(--surface-raised); color: var(--muted-strong); font: 600 11px 'DM Sans', sans-serif; cursor: pointer; }
#copy-btn:hover { border-color: var(--accent); color: var(--accent); }
#copy-btn .copycod { color: inherit; font-size: 12px; }
#copy-btn .copycod span { color: inherit; font: inherit; }
.voltar { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); cursor: pointer; }
.voltar img { width: 18px; height: 18px; }

/* Homepage: catalog first, concise feature strip */
.home-main { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.home-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 32px 0 24px; border-bottom: 1px solid var(--line); }
.home-intro h1 { margin: 5px 0 0; font: 600 clamp(27px, 4vw, 38px)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.home-intro p { max-width: 410px; margin: 0; color: var(--muted); font-size: 13px; }
.home-tools { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.home-tools form { display: flex; width: min(100%, 490px); height: 42px; border: 1px solid var(--line-strong); background: var(--surface); }
.home-tools input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--text); }
.home-tools button { width: 42px; border: 0; background: var(--surface-raised); color: var(--accent); cursor: pointer; }
.catalog-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.catalog-tabs a { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted-strong); font-size: 11px; font-weight: 600; text-decoration: none; }
.catalog-tabs a:first-child, .catalog-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 13px; }
.catalog-heading h2 { margin: 0; font: 600 20px 'Space Grotesk', sans-serif; }
.catalog-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.catalog-more { margin-top: 16px; }
.home-script-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-script { min-width: 0; padding: 15px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.home-script:hover { border-color: #566148; background: var(--surface-raised); }
.home-script small { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-script h3 { margin: 7px 0 4px; color: var(--text); font: 600 15px 'Space Grotesk', sans-serif; }
.home-script p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.home-script .script-arrow { display: block; margin-top: 11px; color: var(--muted-strong); font-size: 10px; }
.home-secondary-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 30px 0; }
.home-secondary-links a { padding: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; }
.home-secondary-links a:hover { border-color: var(--accent); color: var(--accent); }
.home-bot-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 42px; padding: 17px 18px; border: 1px solid var(--line); background: var(--surface); }
.home-bot-strip h2 { margin: 0; font: 600 16px 'Space Grotesk', sans-serif; }
.home-bot-strip p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

/* Shared older page sections: plans, gallery, contact, error page */
.container-div { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; gap: 12px; width: min(100%, 1000px); min-height: 0; margin: 25px auto; }
.corpo { width: min(var(--max), calc(100% - 44px)); min-height: 50vh; margin: 0 auto; padding: 35px 0 10px; color: var(--text); }
.corpo_container { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 11px; margin: 18px 0 32px; }
.corpo_container > .container { min-width: 0; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.corpo_container > .container:hover { border-color: #566148; background: var(--surface-raised); }
.corpo_container > .container > a { display: flex; height: 100%; flex-direction: column; padding: 12px; color: var(--text); text-decoration: none; }
.corpo_container .container img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-inset); }
.corpo_container .container h2 { margin: 11px 0 5px; color: var(--text); font: 600 15px 'Space Grotesk', sans-serif; }
.corpo_container .container span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.corpo_container .container p { margin: auto 0 0; padding-top: 10px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.container-div:has(> .container-planos:only-child) { grid-template-columns: minmax(0, min(100%, 560px)); justify-content: center; }
.corpo > .container-planos { max-width: 1000px; margin: 12px auto; }
.container-planos { width: auto; margin: 0; padding: 22px 18px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); box-shadow: none; text-align: left; }
.container-planos h2 { padding: 8px 0 15px; color: var(--text) !important; font: 600 18px 'Space Grotesk', sans-serif; }
.container-planos .icon, .container-planos .check { color: var(--accent); }
.container-planos .check span { color: var(--muted-strong); font: 400 12px/1.5 'DM Sans', sans-serif; }
.container-planos .price { margin: 16px 0 8px; color: var(--accent); font: 600 24px 'Space Grotesk', sans-serif; }
.container-planos .button { min-height: 36px; margin: 8px 0 0; padding: 7px 12px; font-size: 11px; }
.wrap { display: flex; min-height: 0; align-items: center; justify-content: center; margin: 14px 0; }
.modal { z-index: 1500; padding: 20px; background: #08090bcc; }
.modal-content { width: min(100%, 480px); margin: 12vh auto; padding: 25px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.modal-content img { width: 50px; }
.modal-content h1 { margin: 12px 0 8px; font: 600 22px 'Space Grotesk', sans-serif; }
.modal-content p { color: var(--muted); font-size: 13px; }
.modal .close { color: var(--muted); font-size: 25px; }
#imagemModal { z-index: 1400; background: #08090bf0; }
#imagemEmTamanhoReal { max-width: min(92vw, 1150px); max-height: 86vh; object-fit: contain; border: 1px solid var(--line); }
.csslider { max-width: min(100%, 930px); margin: 25px auto; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.parceiroSlide { padding: 10px; }
.parceiroSlide img { max-height: 520px; object-fit: contain !important; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 22px 0; padding: 0; list-style: none; }
.social a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--muted-strong); font-size: 16px; text-decoration: none; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.idusuario { color: var(--muted-strong); text-align: center; }
.idusuario span { margin-left: 6px; color: var(--accent); }
.center { display: block; width: 100%; min-height: 55vh; padding: 65px 20px 10px; }
#social-test { display: block; width: min(100%, 640px); margin: 0 auto; padding: 25px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
#container { position: relative; display: grid; width: 100%; min-height: 80px; place-items: center; color: var(--text); font: 600 clamp(24px,5vw,38px) 'Space Grotesk', sans-serif; }
#text1, #text2 { left: 0; width: 100%; color: var(--text); font: inherit; text-shadow: none; }
#social-test .centralizar { height: auto; min-height: 0; margin: 18px 0 0; }
.contact-layout { display: grid; width: min(var(--max), calc(100% - 44px)); min-height: calc(100vh - 160px); grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(35px,7vw,90px); margin: 0 auto; padding: 55px 0; }
.contact-intro h1 { margin: 15px 0; font: 600 clamp(38px,5vw,60px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.contact-intro h1 span { color: var(--accent); }
.contact-intro > p { max-width: 420px; color: var(--muted); font-size: 13px; }
.contact-handle { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.contact-avatar, .contact-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--accent); font: 600 15px 'Space Grotesk', sans-serif; }
.contact-handle > span:last-child { display: grid; }
.contact-handle b { font-size: 12px; }
.contact-handle small, .contact-card small { color: var(--muted); font-size: 9px; }
.contact-options { display: grid; gap: 9px; }
.contact-card { display: grid; min-height: 92px; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.contact-card:hover { border-color: var(--accent); color: var(--text); }
.contact-card > span:nth-child(2) { display: grid; min-width: 0; }
.contact-card b { margin: 2px 0; font: 600 16px 'Space Grotesk', sans-serif; }
.contact-card em { overflow: hidden; color: var(--muted); font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.contact-card > strong { color: var(--muted); font-size: 14px; }
.error { z-index: 2; }
.error__button { border-radius: 3px; }
.not-found { display: grid; min-height: calc(100vh - 180px); align-content: center; justify-items: start; width: min(var(--max), calc(100% - 44px)); margin: auto; }

/* Refreshed catalog pages */
.catalog-main, .partner-main { width: min(var(--max), calc(100% - 44px)); min-height: calc(100vh - 180px); margin: 0 auto; padding: 36px 0 20px; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.catalog-intro h1, .partner-intro h1 { margin: 5px 0 8px; font: 600 clamp(30px, 4.3vw, 45px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.catalog-intro p, .partner-intro p { max-width: 660px; margin: 0; color: var(--muted); font-size: 13px; }
.catalog-back-link { flex: 0 0 auto; color: var(--muted-strong); font-size: 11px; text-decoration: none; }
.catalog-back-link:hover { color: var(--accent); }
.catalog-tools { display: grid; gap: 12px; margin: 18px 0 15px; }
.catalog-search { display: flex; width: min(100%, 560px); height: 42px; border: 1px solid var(--line-strong); background: var(--surface); }
.catalog-search input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.catalog-search input:focus { outline: 1px solid var(--accent); outline-offset: -1px; }
.catalog-search button { padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: var(--surface-raised); color: var(--muted-strong); font-size: 11px; cursor: pointer; }
.catalog-search button:hover { color: var(--accent); }
.catalog-search #searchButton { min-width: 42px; color: var(--accent); font-size: 21px; }
.catalog-search #clearButton:disabled { opacity: .45; cursor: default; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-filters:empty { display: none; }
.catalog-filters .filter-button { min-height: 30px; padding: 6px 9px; }
.catalog-grid.corpo_container { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: stretch; gap: 12px; margin: 0 0 25px !important; }
.catalog-grid .catalog-card { overflow: hidden; border-color: var(--line); background: var(--surface); transition: border-color .15s ease, background-color .15s ease; }
.catalog-grid .catalog-card:hover { border-color: #566148; background: var(--surface-raised); }
.catalog-grid .catalog-card > a { position: relative; display: flex; min-height: 100%; flex-direction: column; align-items: stretch; padding: 0; color: var(--text); text-decoration: none; }
.catalog-card > a > img, .catalog-card-mark { display: grid; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0; place-items: center; border: 0; border-bottom: 1px solid var(--line); background: #14171a; color: #5c6651; object-fit: cover; font: 700 23px 'Space Grotesk', sans-serif; }
.catalog-card-copy { display: grid; flex: 1; align-content: start; gap: 6px; min-height: 176px; padding: 13px 42px 14px 14px; }
.catalog-card-title { display: -webkit-box; overflow: hidden; color: var(--text); font: 600 15px/1.3 'Space Grotesk', sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-card-description { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-card-platform { width: fit-content; padding: 3px 6px; border: 1px solid #526342; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.catalog-card-author { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-badge { display: inline-flex; align-items: center; border: 1px solid #576746; border-radius: 2px; padding: 3px 7px; background: #a8d94c0c; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .07em; vertical-align: middle; }
.admin-name { color: #c8f278 !important; text-shadow: 0 0 14px #a8d94c3a; }
.account-dropdown strong.admin-name { color: #c8f278; }
.admin-badge-animated { border-color: #91b757; background: linear-gradient(105deg, #a8d94c0d 0%, #d7ff9d36 45%, #a8d94c0d 70%); background-size: 220% 100%; animation: admin-badge-shimmer 2.8s ease-in-out infinite; }
@keyframes admin-badge-shimmer { 0%, 100% { background-position: 100% 0; box-shadow: 0 0 5px #a8d94c10; } 50% { background-position: 0 0; box-shadow: 0 0 13px #a8d94c42; } }
@media (prefers-reduced-motion: reduce) { .admin-badge-animated { animation: none; } }
.catalog-card-tag { align-self: end; margin-top: 5px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.catalog-card-arrow { position: absolute; right: 13px; bottom: 14px; color: var(--muted); font-size: 14px; }
.catalog-card:hover .catalog-card-arrow { color: var(--accent); }
.bot-catalog-card { position: relative; padding-bottom: 42px; }
.bot-catalog-card > a { min-height: 100%; }
.bot-star-button { position: absolute; right: 12px; bottom: 10px; z-index: 2; display: inline-flex; min-width: 54px; min-height: 30px; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--muted-strong); font: 700 12px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer; }
.bot-star-button:hover, .bot-star-button.is-active { border-color: var(--accent); color: var(--accent); }
.bot-star-button:disabled { opacity: .55; cursor: wait; }
.server-card-admin, .bot-card-admin { border-color: #788f48 !important; box-shadow: inset 0 0 20px #a8d94c09; }
.official-post-admin { border-color: #788f48 !important; background: linear-gradient(115deg, #a8d94c12, transparent 52%), var(--surface); }
.official-post-content > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.catalog-grid .search-empty-state { grid-column: 1 / -1; }
.catalog-load-sentinel { min-height: 14px; margin: 4px auto 28px; color: var(--muted); font-size: 10px; text-align: center; }
.catalog-load-sentinel::after { content: 'Carregando mais itens ao rolar'; }
.catalog-load-sentinel[hidden] { display: none !important; }
.script-catalog-card .catalog-card-mark { aspect-ratio: auto; height: 78px; border-bottom: 0; color: var(--accent); font-size: 13px; }
.script-catalog-card .catalog-card-copy { gap: 7px; }
.script-catalog-card .catalog-card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.official-posts { margin: 38px 0 15px; padding-top: 20px; border-top: 1px solid var(--line); }
.official-posts > h2 { margin: 2px 0 14px; font: 600 21px 'Space Grotesk', sans-serif; }
.official-post-grid { margin: 0 !important; }
.partner-intro { padding: 15px 0 32px; border-bottom: 1px solid var(--line); }
.partner-intro h1 span { color: var(--accent); }
.partner-intro .button { margin-top: 19px; }
.partner-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 22px 0; }
.partner-offer { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 14px; min-width: 0; padding: 19px; border: 1px solid var(--line); background: var(--surface); }
.partner-index { color: var(--accent); font: 600 12px 'Space Grotesk', sans-serif; }
.partner-offer h2 { margin: 0 0 7px; font: 600 18px 'Space Grotesk', sans-serif; }
.partner-offer p { margin: 0; color: var(--muted); font-size: 12px; }
.partner-offer a { display: inline-block; margin-top: 10px; font-size: 11px; }
.partner-price { grid-column: 2; align-self: end; margin-top: 17px; color: var(--accent); font: 600 20px 'Space Grotesk', sans-serif; }
.partner-price small { color: var(--muted); font: 400 11px 'DM Sans', sans-serif; }
.partner-gallery { padding: 22px 0; border-top: 1px solid var(--line); }
.partner-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.partner-section-heading h2, .partner-contact h2 { margin: 3px 0 0; font: 600 20px 'Space Grotesk', sans-serif; }
.partner-section-heading > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; }
.partner-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.partner-gallery-item { overflow: hidden; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.partner-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.partner-gallery-item:hover img { transform: scale(1.025); }
.partner-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 13px 0 30px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.partner-contact p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.partner-image-modal { position: fixed; z-index: 1600; inset: 0; display: none; place-items: center; padding: 30px; background: #08090bf2; }
.partner-image-modal.is-open { display: grid; }
.partner-image-modal > img { max-width: min(94vw, 1400px); max-height: 88vh; object-fit: contain; }
.partner-image-modal > button { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 23px; cursor: pointer; }
.server-detail-header p { max-width: 760px; margin: 8px 0 0; color: var(--muted-strong); white-space: pre-wrap; }
.server-detail .resource-detail-layout { align-items: start; }
.server-detail .resource-detail-main { display: grid; align-content: start; gap: 12px; }
.server-detail .resource-gallery { margin: 0; }
.server-detail .resource-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.server-detail .resource-media { display: grid; min-height: 180px; place-items: center; }
.server-detail .resource-media img { width: 100%; max-height: 420px; object-fit: contain; }
.server-detail-actions { display: grid; gap: 8px; }
.server-detail-actions .button { width: 100%; }
.server-updated { margin: 0; color: var(--muted); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 820px) {
  .catalog-main, .partner-main { width: calc(100% - 32px); padding-top: 25px; }
  .catalog-grid.corpo_container { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .partner-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-detail .resource-media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .catalog-main, .partner-main { width: calc(100% - 28px); }
  .catalog-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .catalog-intro h1, .partner-intro h1 { font-size: 31px; }
  .catalog-intro p, .partner-intro p { font-size: 12px; }
  .catalog-grid.corpo_container { grid-template-columns: 1fr; gap: 9px; }
  .catalog-card > a { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); min-height: 112px !important; }
  .catalog-card > a > img, .catalog-card-mark { width: 112px; height: 100%; min-height: 112px; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .catalog-card-copy { align-self: center; min-height: 148px; padding: 12px 29px 12px 12px; }
  .catalog-card-title { font-size: 13px; }
  .catalog-card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .catalog-card-arrow { right: 9px; bottom: 11px; }
  .partner-offers { grid-template-columns: 1fr; }
  .partner-section-heading, .partner-contact { align-items: flex-start; flex-direction: column; }
  .partner-section-heading > p { max-width: none; }
  .partner-gallery-grid { gap: 7px; }
}

@media (max-width: 1060px) {
  header.site-header { gap: 12px; }
  .site-nav a { padding: 8px 7px; font-size: 11px; }
  .header-search { max-width: 205px; }
  .header-account a { padding: 0 8px; }
}
@media (max-width: 820px) {
  header.site-header { min-height: 62px; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .brand { margin-right: auto; }
  .menu-btn { display: grid !important; order: 5; width: 38px; height: 36px; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .site-nav { display: none; order: 6; width: 100%; margin: 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .site-nav a { min-height: 38px; padding: 8px; }
  .site-nav .sub-menu { position: static; display: grid; min-width: 0; padding: 0 0 3px 9px; border: 0; background: transparent; box-shadow: none; }
  .site-nav .sub-menu a { min-height: 32px; font-size: 10px; }
  .header-search { order: 3; flex: 1 1 150px; max-width: none; margin-left: 0; }
  .header-account { order: 4; }
  .home-script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-detail-layout, .resource-detail-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
  .contact-layout { grid-template-columns: 1fr; align-items: start; gap: 28px; }
}
@media (max-width: 560px) {
  .header-account a:first-child { display: none; }
  .header-account a { min-height: 34px; font-size: 10px; }
  .home-main, .corpo { width: calc(100% - 28px); }
  .script-detail, .resource-detail { width: calc(100% - 28px); padding-top: 23px; }
  .script-detail-layout, .resource-detail-layout { grid-template-columns: 1fr; }
  .resource-media-grid { grid-template-columns: 1fr; }
  .home-intro { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 23px; }
  .home-intro p { font-size: 12px; }
  .home-tools { align-items: stretch; flex-direction: column; }
  .home-tools form { width: 100%; }
  .home-script-grid, .home-secondary-links { grid-template-columns: 1fr; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .home-bot-strip { align-items: flex-start; flex-direction: column; }
  .corpo { padding-top: 25px; }
  .corpo_container { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; }
  .container > a { padding: 11px; }
  .container h2 { font-size: 14px; }
  .container span { font-size: 11px; }
  .centralizar { flex-wrap: wrap; }
  .centralizar > form { width: 100%; }
  .corpo pre { padding: 12px; font-size: 11px; }
  .resumo { padding: 16px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 45px; padding: 20px 16px; }
  .site-footer > span { flex: auto; }
  .contact-layout { width: calc(100% - 28px); padding: 32px 0; }
  .contact-card { grid-template-columns: 38px minmax(0, 1fr) 14px; gap: 9px; padding: 11px; }
  .contact-mark { width: 36px; height: 36px; }
  .contact-card b { font-size: 14px; }
}
.product-main { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 32px 0 10px; }
.product-intro { max-width: 760px; padding: 25px 0 36px; border-bottom: 1px solid var(--line); }
.product-intro h1 { margin: 5px 0 8px; font: 600 clamp(38px, 6vw, 62px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.product-intro h1 span { color: var(--accent); }
.product-intro p, .product-section-heading > p, .product-contact p { max-width: 510px; margin: 0 0 17px; color: var(--muted); font-size: 13px; }
.product-plans { padding: 34px 0 20px; }
.product-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.product-section-heading h2, .product-contact h2 { margin: 4px 0 0; font: 600 24px 'Space Grotesk', sans-serif; }
.product-section-heading > p { max-width: 300px; margin: 0; font-size: 11px; }
.product-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.product-plan { display: flex; min-width: 0; flex-direction: column; padding: 19px; border: 1px solid var(--line); background: var(--surface); }
.product-plan-featured { border-color: #657b42; background: #1c211a; }
.plan-label { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-plan h3 { margin: 8px 0 0; font: 600 19px 'Space Grotesk', sans-serif; }
.plan-price { margin: 15px 0; font: 600 25px 'Space Grotesk', sans-serif; }
.product-plan ul { display: grid; gap: 10px; flex: 1; margin: 0 0 22px; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.product-plan li { position: relative; padding-left: 16px; color: var(--muted-strong); font-size: 11px; line-height: 1.5; }
.product-plan li::before { position: absolute; left: 0; color: var(--accent); content: '✓'; }
.product-plan .button { width: 100%; font-size: 10px; text-align: center; }
.product-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.product-contact p { margin: 5px 0 0; font-size: 11px; }
.product-detail-page .site-footer { margin-top: 44px; }
@media (max-width: 900px) {
  .product-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-detail-aside { position: static; max-height: none; overflow: visible; }
  .script-detail-aside .related-scripts { max-height: none; overflow: visible; }
}
@media (max-width: 560px) {
  .related-script-grid { grid-template-columns: 1fr; }
  .product-main { width: calc(100% - 28px); padding-top: 23px; }
  .product-section-heading, .product-contact { align-items: flex-start; flex-direction: column; }
  .product-section-heading h2, .product-contact h2 { font-size: 21px; }
  .product-plan-grid { grid-template-columns: 1fr; }
  .product-plan { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
