/* Theme library: white / mint FPS Vault website palette.
   All selectors are scoped to these pages; the shared footer keeps its own size. */
html body:has(.theme-page){background:#fff!important;color:#191c22!important}
html body:has(.theme-page) .page-main{background:#fff!important;padding:0!important;max-width:none!important}
html body:has(.theme-page) #siteHeader.site-header{background:#fff!important;background-image:none!important;border-bottom:1px solid #e2e4e9!important;color:#191c22!important;box-shadow:none!important}
html body:has(.theme-page) #siteHeader :is(.brand,.nav-link,.translate-toggle,.hdr-login){color:#191c22!important}
html body:has(.theme-page) #siteHeader .nav-center>a[href="themes.php"]{color:#00a971!important;border-bottom:2px solid #00c987!important}
html body:has(.theme-page) #siteHeader .hdr-download{background:#fff!important;color:#191c22!important;border-color:#d8dce3!important}
html body:has(.theme-page) #siteHeader .translate-toggle{background:#fff!important}
/* Match overlay.php's existing light grey footer including width and spacing. */
html body:has(.theme-page) footer#siteFooter.site-footer{background:#e9e9e9!important;background-image:none!important;border-top:1px solid #d2d2d2!important;color:#606060!important}
html body:has(.theme-page) footer#siteFooter.site-footer :is(h5,.f-brand,.footer-dev){color:#404040!important}
html body:has(.theme-page) footer#siteFooter.site-footer :is(a,p,span,.footer-bottom){color:#686868!important}
html body:has(.theme-page) footer#siteFooter.site-footer a:hover{color:#00bd7c!important}
.theme-page{--theme-green:#00c987;--theme-red:#ef1627;background:#fff!important;color:#191c22!important;font-family:Roboto,Arial,sans-serif}
.theme-page *{box-sizing:border-box}.theme-page .theme-wrap{width:100%;max-width:1920px;margin:0 auto;padding:0 30px}
.theme-page .theme-hero{background:#fff!important;background-image:none!important;border-bottom:1px solid #e1e4e9;overflow:hidden;min-height:344px}
.theme-page .theme-hero>.theme-wrap{min-height:344px;display:grid;grid-template-columns:minmax(0,1fr) 37%;gap:18px;align-items:center}
.theme-page .theme-hero-copy{padding:43px 0 37px;position:relative;z-index:1}
.theme-page .theme-eyebrow{color:var(--theme-red)!important;font-size:13px;font-weight:900;letter-spacing:.28em;margin:0 0 18px}
.theme-page .theme-hero h1{font:900 clamp(38px,3.7vw,62px)/1.06 Barlow,Roboto,Arial,sans-serif;margin:0 0 14px;color:#1a1d23!important;letter-spacing:-.012em}
.theme-page .theme-hero h1 span{color:var(--theme-green)!important}
.theme-page .theme-hero-copy>p:not(.theme-eyebrow){font-size:17px;line-height:1.5;color:#171b24!important;max-width:790px;margin:0 0 31px}
.theme-page .theme-hero-image{min-height:310px;height:100%;display:flex;align-items:end;justify-content:end;overflow:hidden}
.theme-page .theme-hero-image img{display:block;max-width:100%;width:100%;max-height:337px;object-fit:contain;object-position:center bottom}
.theme-page .theme-perks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.theme-page .theme-perks span{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center}
.theme-page .theme-perks i{grid-row:1/3;display:grid;place-items:center;width:58px;height:58px;font-size:25px;color:#00af75!important;background:#e6fbf3!important;border-radius:17px}
.theme-page .theme-perks b{font-size:12px;color:#101621!important;white-space:nowrap}
.theme-page .theme-perks small{font-size:10px;color:#697991!important;white-space:nowrap}
.theme-page .theme-app-notice{display:flex;align-items:flex-start;gap:12px;background:#eafff7!important;border:1px solid #bcebd9;border-radius:12px;color:#18332b!important;padding:14px 18px;margin:23px 0;font-size:14px;line-height:1.5}
.theme-page .theme-app-notice i{font-size:21px;color:#00ad73!important}.theme-page .theme-app-notice b{color:#123a2c!important}
.theme-page .theme-layout{display:grid;grid-template-columns:248px minmax(0,1fr);gap:25px;align-items:start;padding-bottom:48px}
.theme-page .theme-sidebar{background:#fff!important;border:1px solid #dce2ec;border-radius:13px;padding:15px 12px;box-shadow:0 2px 12px #10152508}
.theme-page .theme-sidebar h2{color:#1b2029!important;font:900 15px Barlow,Arial,sans-serif;text-transform:uppercase;margin:17px 9px 12px}.theme-page .theme-sidebar h2:first-child{margin-top:5px}
.theme-page .theme-sidebar h2 i{color:#00bb7e!important;margin-right:7px}
.theme-page .theme-sidebar a:not(.theme-clear){display:flex;justify-content:space-between;align-items:center;padding:10px 12px;color:#364455!important;text-decoration:none;font-size:13px;border-radius:8px}
.theme-page .theme-sidebar a.selected,.theme-page .theme-sidebar a:not(.theme-clear):hover{background:#00c987!important;color:#fff!important}
.theme-page .theme-sidebar a span{border-radius:6px;background:#eff3f5;color:#526173;padding:2px 7px}.theme-page .theme-sidebar a.selected span{background:#ffffff34;color:#fff}
.theme-page .theme-filter-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 8px}
.theme-page .theme-filter-list label{font-size:11px;color:#334355!important;white-space:nowrap;cursor:pointer}
.theme-page .theme-filter-list input{accent-color:#00c987}
.theme-page .theme-sidebar button{width:100%;background:#00c987!important;color:#fff!important;border:0;border-radius:8px;padding:11px;margin-top:18px;cursor:pointer;font-weight:700}
.theme-page .theme-sidebar .theme-clear{display:block;text-align:center;color:#008f61!important;font-size:12px;margin-top:12px;text-decoration:none}
.theme-page .theme-main{min-width:0}.theme-page .theme-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 20px}
.theme-page .theme-heading h2{font:900 27px Barlow,Arial,sans-serif;color:#1a1d23!important;border-left:6px solid #00c987;padding-left:15px;margin:2px 0 7px}
.theme-page .theme-heading p{font-size:13px;color:#657180!important;margin:0 0 0 21px}
.theme-page .theme-search{display:flex;gap:8px;align-items:center}
.theme-page .theme-search label{display:flex;gap:8px;align-items:center;background:#fff!important;border:1px solid #d8dee7;border-radius:9px;color:#586980;padding:0 12px}
.theme-page .theme-search input,.theme-page .theme-search select,.theme-page .theme-search button{height:42px;border:1px solid #d8dee7;border-radius:9px;background:#fff!important;color:#1a222d!important;font-size:12px}
.theme-page .theme-search input{border:0;width:165px;min-width:0;outline:none}.theme-page .theme-search select{padding:0 9px}
.theme-page .theme-search button{width:42px;background:#00c987!important;color:#fff!important;border-color:#00c987!important;cursor:pointer}
.theme-page .theme-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.theme-page .theme-card{border:1px solid #dce2ec;border-radius:11px;overflow:hidden;background:#fff!important;min-width:0;transition:transform .2s,border-color .2s;box-shadow:0 2px 9px #00000009}
.theme-page .theme-card:hover{transform:translateY(-3px);border-color:#00c987}
.theme-page .theme-card-cover{display:block;background:#f5f6f9;aspect-ratio:16/9}.theme-page .theme-card-cover img{width:100%;height:100%;display:block;object-fit:cover}
.theme-page .theme-card-info{padding:11px 12px 14px}.theme-page .theme-card h3{font:800 16px Barlow,Arial,sans-serif;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.theme-page .theme-card h3 a{color:#151920!important;text-decoration:none}.theme-page .theme-card p{color:#697790!important;margin:0;font-size:11px}
.theme-page .theme-card-meta{display:flex;justify-content:space-between;gap:5px;color:#62738f!important;font-size:10px;margin:10px 0;padding:8px 0;border-top:1px solid #e0e4eb}.theme-page .theme-card-meta span{white-space:nowrap}
.theme-page .theme-preview{display:block;text-align:center;text-decoration:none;background:#00c987!important;border-radius:7px;color:#fff!important;font-weight:700;font-size:12px;padding:10px}.theme-page .theme-preview:hover{background:#00a973!important}
.theme-page .theme-empty{padding:38px;color:#4c5a69!important}.theme-page .theme-empty a{color:#00a973!important}
.theme-page .theme-pagination{display:flex;justify-content:center;gap:8px;margin:32px 0}.theme-page .theme-pagination a{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dce1e8;background:#fff;border-radius:8px;color:#2c3946!important;text-decoration:none}
.theme-page .theme-pagination a.active,.theme-page .theme-pagination a:hover{background:#00c987;color:#fff!important}
.theme-page.theme-detail{padding:26px 0 55px}.theme-page .theme-breadcrumb,.theme-page .theme-detail-tags{color:#627186!important;font-size:13px}
.theme-page .theme-breadcrumb a{color:#00a973!important}.theme-page.theme-detail h1{font:900 clamp(32px,4vw,52px) Barlow,Arial,sans-serif;margin:10px 0;color:#1b2027!important}
.theme-page .theme-detail-cover{max-width:1280px;aspect-ratio:16/9;border:1px solid #dce2ec;border-radius:12px;overflow:hidden;background:#f8f9fb}
.theme-page .theme-detail-cover img{width:100%;height:100%;object-fit:cover}
.theme-page .theme-detail-desc{max-width:950px;line-height:1.7;color:#303c4b!important}
.theme-page .theme-detail-desc h2,.theme-page .theme-gallery h2{color:#151b22!important}
.theme-page .theme-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.theme-page .theme-gallery-grid a{display:block;color:#243746!important;text-decoration:none}
.theme-page .theme-gallery-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid #dae1e9;border-radius:9px}
.theme-page .theme-gallery-grid span{display:block;padding:6px 0;font-size:12px}
@media(max-width:1450px){.theme-page .theme-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.theme-page .theme-perks{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1100px){.theme-page .theme-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-page .theme-hero>.theme-wrap{grid-template-columns:minmax(0,1fr) 28%}}
@media(max-width:800px){.theme-page .theme-layout{grid-template-columns:1fr}.theme-page .theme-hero>.theme-wrap{grid-template-columns:1fr}.theme-page .theme-hero-image{min-height:100px}.theme-page .theme-hero-image img{max-height:220px}.theme-page .theme-heading{align-items:stretch;flex-direction:column}.theme-page .theme-search label{flex:1}.theme-page .theme-search input{width:100%}.theme-page .theme-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:470px){.theme-page .theme-wrap{padding:0 15px}.theme-page .theme-cards{gap:9px}.theme-page .theme-card-info{padding:9px}.theme-page .theme-card h3{font-size:13px}.theme-page .theme-card-meta{font-size:9px}.theme-page .theme-perks span{grid-template-columns:42px minmax(0,1fr)}.theme-page .theme-perks i{width:42px;height:42px}.theme-page .theme-search{flex-wrap:wrap}.theme-page .theme-gallery-grid{grid-template-columns:1fr}}

/* Theme detail: use the same centered image viewer as a single overlay page. */
.theme-page.theme-single{min-height:calc(100vh - 80px);padding:14px 0 54px!important;background:#f8f5fc!important}
.theme-page.theme-single .theme-single-wrap{max-width:1600px;padding:0 22px}
.theme-page.theme-single .theme-single-back{max-width:820px;margin:14px auto 0;font-size:13px}
.theme-page.theme-single .theme-single-back a{display:inline-flex;align-items:center;gap:7px;color:#00a973!important;text-decoration:none;font-weight:700}
.theme-page.theme-single .single-title{max-width:1100px;margin:24px auto 25px!important;text-align:center;color:#151922!important;font:700 clamp(27px,2.3vw,36px)/1.2 Roboto,Arial,sans-serif!important;letter-spacing:-.02em}
.theme-page.theme-single .theme-viewer{width:100%;max-width:820px;margin:0 auto}
.theme-page.theme-single .gallery-main{background:#fff;border:1px solid #dce2ec;border-radius:16px;box-shadow:0 7px 25px rgba(35,22,73,.07)}
.theme-page.theme-single .gallery-main img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.theme-page.theme-single .gallery-arrow{color:#fff;background:rgba(9,17,25,.72);border-radius:50%}
.theme-page.theme-single .gallery-arrow.prev{left:12px}.theme-page.theme-single .gallery-arrow.next{right:12px}
.theme-page.theme-single .gallery-thumbs{gap:10px;flex-wrap:nowrap;justify-content:flex-start;max-width:820px;padding:0 2px 3px;overflow-x:auto}
.theme-page.theme-single .theme-thumb{flex:0 0 120px;width:120px;height:70px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;opacity:.55}
.theme-page.theme-single .theme-thumb.active{border-color:#00c987;opacity:1}.theme-page.theme-single .theme-thumb:hover{opacity:1}
.theme-page.theme-single .theme-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.theme-page.theme-single .theme-single-actions{display:flex;justify-content:center;margin:24px 0 13px}
.theme-page.theme-single .theme-app-button{display:inline-flex;align-items:center;gap:9px;padding:13px 30px;border-radius:8px;background:#00c987;color:#fff;font-size:15px;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.theme-page.theme-single .theme-single-notice{max-width:820px;margin:0 auto 15px!important}
.theme-page.theme-single .theme-spec-row{max-width:820px;margin:16px auto}.theme-page.theme-single .theme-spec-row .spec-tag{background:#fff;color:#5e697a!important}
.theme-page.theme-single .desc-heading{color:#151922!important}.theme-page.theme-single .theme-desc-box{max-width:820px;background:#fff!important;color:#4d5967!important;border-color:#dce2ec;white-space:normal}
@media(max-width:700px){.theme-page.theme-single .theme-single-wrap{padding:0 12px}.theme-page.theme-single .theme-thumb{flex-basis:92px;width:92px;height:55px}.theme-page.theme-single .theme-app-button{width:100%;justify-content:center;font-size:13px}.theme-page.theme-single .single-title{margin-top:18px!important}}
