/* ==========================================================
   AREXMODS PUBLIC UI v1.5.0
   Shared visual system for ALL non-admin pages
   ========================================================== */

body.arx-public-v150{
  --ap-bg:#050a0f;
  --ap-bg-soft:#07111a;
  --ap-panel:#08131d;
  --ap-panel-2:#0a1722;
  --ap-panel-3:#0d1b27;
  --ap-border:rgba(134,162,190,.16);
  --ap-border-strong:rgba(134,162,190,.25);
  --ap-text:#f5f8fb;
  --ap-muted:#92a2b1;
  --ap-orange:#ff7200;
  --ap-orange-2:#ff8b24;
  --ap-blue:#2c8fff;
  --ap-green:#8dff45;
  --ap-danger:#ff5964;

  color:var(--ap-text);
  background:
    radial-gradient(circle at 8% 16%,rgba(255,105,0,.14),transparent 30%),
    radial-gradient(circle at 92% 18%,rgba(22,94,165,.16),transparent 33%),
    linear-gradient(180deg,#050b11 0%,#06101a 42%,#050a0f 100%);
}

/* ---------- global width / rhythm ---------- */
body.arx-public-v150 .shell{
  width:min(1600px,calc(100% - 48px));
  max-width:1600px;
}

body.arx-public-v150 main,
body.arx-public-v150 .page-main{
  position:relative;
}

body.arx-public-v150 h1,
body.arx-public-v150 h2,
body.arx-public-v150 h3{
  color:#fff;
  letter-spacing:-.015em;
}

body.arx-public-v150 p,
body.arx-public-v150 .muted{
  color:var(--ap-muted);
}

/* ---------- shared header ---------- */
body.arx-public-v150 .site-header,
body.arx-public-v150 header.header{
  border-bottom:1px solid rgba(255,122,0,.10);
  background:rgba(4,10,15,.96);
  backdrop-filter:blur(16px);
}

body.arx-public-v150 .nav a{
  color:#aeb9c4;
  font-weight:750;
  transition:.15s ease;
}
body.arx-public-v150 .nav a:hover,
body.arx-public-v150 .nav a.active{
  color:#fff;
}
body.arx-public-v150 .nav a.active{
  position:relative;
}
body.arx-public-v150 .nav a.active:after{
  content:"";
  position:absolute;
  left:12%;
  right:12%;
  bottom:-20px;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--ap-orange);
}

/* ---------- generic blocks ---------- */
body.arx-public-v150 .section-block,
body.arx-public-v150 .side-card,
body.arx-public-v150 .resource-panel,
body.arx-public-v150 .resource-card,
body.arx-public-v150 .collection-card,
body.arx-public-v150 .creator-card,
body.arx-public-v150 .account-card{
  border:1px solid var(--ap-border)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(10,23,34,.97),rgba(7,17,26,.97))!important;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}

/* Catch historical named blocks used around the marketplace */
body.arx-public-v150 [class*="section-block"],
body.arx-public-v150 [class*="side-card"]{
  border-color:var(--ap-border);
}

/* ---------- buttons ---------- */
body.arx-public-v150 .btn,
body.arx-public-v150 button.btn{
  min-height:43px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:9px;
  border:1px solid var(--ap-border-strong);
  background:#0a1621;
  color:#e7edf3;
  font-weight:800;
  text-decoration:none;
  transition:.15s ease;
}
body.arx-public-v150 .btn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,122,0,.42);
  color:#fff;
}
body.arx-public-v150 .btn-primary{
  border-color:var(--ap-orange)!important;
  background:var(--ap-orange)!important;
  color:#fff!important;
  box-shadow:0 7px 24px rgba(255,114,0,.18);
}
body.arx-public-v150 .btn-primary:hover{
  background:var(--ap-orange-2)!important;
}
body.arx-public-v150 .btn-ghost{
  background:#09141e!important;
}
body.arx-public-v150 .btn-danger-soft{
  border-color:rgba(255,89,100,.30)!important;
  background:rgba(255,89,100,.08)!important;
  color:#ff949c!important;
}

/* ---------- forms ---------- */
body.arx-public-v150 input:not([type="checkbox"]):not([type="radio"]),
body.arx-public-v150 select,
body.arx-public-v150 textarea{
  min-height:46px;
  border:1px solid rgba(130,160,190,.20)!important;
  border-radius:9px!important;
  background:#08141f!important;
  color:#edf3f8!important;
  box-shadow:none!important;
  outline:none;
}
body.arx-public-v150 textarea{
  min-height:120px;
  padding:12px 13px;
}
body.arx-public-v150 input:focus,
body.arx-public-v150 select:focus,
body.arx-public-v150 textarea:focus{
  border-color:rgba(255,122,0,.62)!important;
  box-shadow:0 0 0 3px rgba(255,122,0,.08)!important;
}
body.arx-public-v150 label>span{
  color:#aab7c3;
}

/* ---------- breadcrumbs ---------- */
body.arx-public-v150 [class*="breadcrumbs"]{
  color:#748594;
}
body.arx-public-v150 [class*="breadcrumbs"] a{
  color:#aebdca;
  text-decoration:none;
}
body.arx-public-v150 [class*="breadcrumbs"] a:hover{
  color:var(--ap-orange-2);
}

/* ---------- PAGE: resource/product ---------- */
body.arx-public-v150 .resource-page-v071,
body.arx-public-v150 .resource-page{
  padding-top:22px;
}

body.arx-public-v150 .resource-hero-v071,
body.arx-public-v150 [class*="resource-hero"]{
  border:1px solid var(--ap-border);
  border-radius:16px;
  background:
    linear-gradient(115deg,rgba(11,24,35,.98),rgba(6,15,23,.95));
  overflow:hidden;
}

body.arx-public-v150 [class*="resource-side"],
body.arx-public-v150 [class*="resource-info"],
body.arx-public-v150 [class*="resource-install"],
body.arx-public-v150 [class*="resource-section"]{
  border-color:var(--ap-border)!important;
  border-radius:14px!important;
  background:rgba(8,19,29,.95)!important;
}

body.arx-public-v150 [class*="resource-callout"]{
  border:1px solid rgba(255,122,0,.22)!important;
  border-radius:12px!important;
  background:rgba(255,122,0,.055)!important;
}

/* ---------- PAGE: author ---------- */
body.arx-public-v150 [class*="author-page"],
body.arx-public-v150 [class*="creator-page"]{
  padding-top:22px;
}

body.arx-public-v150 [class*="author-hero"],
body.arx-public-v150 [class*="creator-hero"]{
  border:1px solid var(--ap-border)!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 0 0,rgba(255,114,0,.11),transparent 36%),
    linear-gradient(120deg,#0a1621,#07111a)!important;
}

body.arx-public-v150 [class*="author-card"],
body.arx-public-v150 [class*="creator-card"],
body.arx-public-v150 [class*="creator-side"] .side-card{
  border-color:var(--ap-border)!important;
  background:#08131d!important;
}

/* ---------- PAGE: creator landing/dashboard/editor ---------- */
body.arx-public-v150 .creator-landing,
body.arx-public-v150 .creator-dashboard,
body.arx-public-v150 .creator-editor{
  padding-top:24px;
}

body.arx-public-v150 .creator-dashboard main,
body.arx-public-v150 [class*="creator-main"]{
  min-width:0;
}

body.arx-public-v150 [class*="creator-rules"] span,
body.arx-public-v150 [class*="quarantine-chip"]{
  border-radius:8px;
  border:1px solid rgba(129,159,188,.13);
  background:#091722;
}

/* ---------- PAGE: account / marketplace ---------- */
body.arx-public-v150 .account-page,
body.arx-public-v150 [class*="my-market"],
body.arx-public-v150 [class*="account-page"]{
  padding-top:24px;
}

body.arx-public-v150 .account-hero,
body.arx-public-v150 [class*="account-hero"],
body.arx-public-v150 [class*="my-market-page-head"]{
  border:1px solid var(--ap-border)!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 5% 0,rgba(255,114,0,.10),transparent 32%),
    linear-gradient(120deg,#0a1621,#07111a)!important;
}

body.arx-public-v150 [class*="my-transaction-row"],
body.arx-public-v150 [class*="my-purchase"],
body.arx-public-v150 [class*="license-card"],
body.arx-public-v150 [class*="installed-card"]{
  border-color:var(--ap-border)!important;
  border-radius:11px!important;
  background:#08131d!important;
}

/* ---------- PAGE: licenses ---------- */
body.arx-public-v150 [class*="license-page"],
body.arx-public-v150 [class*="arx-license"]{
  --license-panel:#08131d;
}

body.arx-public-v150 [class*="arx-license"]:not(.arx-license-eyebrow){
  border-color:var(--ap-border);
}

body.arx-public-v150 .arx-license-eyebrow{
  color:var(--ap-orange);
}

/* ---------- PAGE: purchases / transactions ---------- */
body.arx-public-v150 [class*="purchase"],
body.arx-public-v150 [class*="transaction"]{
  border-color:var(--ap-border);
}

body.arx-public-v150 [class*="status-paid"],
body.arx-public-v150 [class*="status-active"]{
  color:#8dff9e;
}

/* ---------- PAGE: checkout ---------- */
body.arx-public-v150 [class*="checkout"]{
  border-color:var(--ap-border);
}
body.arx-public-v150 [class*="checkout-card"],
body.arx-public-v150 [class*="checkout-panel"]{
  border:1px solid var(--ap-border)!important;
  border-radius:14px!important;
  background:#08131d!important;
}

/* ---------- PAGE: collections / following ---------- */
body.arx-public-v150 [class*="collection-"],
body.arx-public-v150 [class*="following-card"]{
  border-color:var(--ap-border);
}

body.arx-public-v150 [class*="collection-card"],
body.arx-public-v150 [class*="following-card"]{
  border-radius:13px!important;
  background:#08131d!important;
}

/* ---------- PAGE: auth ---------- */
body.arx-public-v150 [class*="auth-page"],
body.arx-public-v150 .login-page,
body.arx-public-v150 .register-page{
  min-height:calc(100vh - 150px);
  display:grid;
  place-items:center;
  padding:38px 16px;
}

body.arx-public-v150 [class*="auth-card"],
body.arx-public-v150 .login-card,
body.arx-public-v150 .register-card{
  width:min(520px,100%);
  padding:28px!important;
  border:1px solid var(--ap-border)!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 0 0,rgba(255,114,0,.10),transparent 38%),
    #08131d!important;
  box-shadow:0 28px 70px rgba(0,0,0,.34);
}

body.arx-public-v150 .auth-logo{
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* ---------- PAGE: 404 ---------- */
body.arx-public-v150 .center-page{
  min-height:62vh;
  display:grid;
  place-items:center;
}
body.arx-public-v150 .notfound{
  width:min(680px,100%);
  padding:46px!important;
  text-align:center;
}
body.arx-public-v150 .notfound>span{
  color:var(--ap-orange);
  font-size:72px;
  font-weight:950;
}

/* ---------- modal ---------- */
body.arx-public-v150 [class*="modal"]{
  backdrop-filter:blur(8px);
}
body.arx-public-v150 [class*="dialog"]{
  border:1px solid var(--ap-border)!important;
  border-radius:15px!important;
  background:#08131d!important;
  box-shadow:0 26px 70px rgba(0,0,0,.46)!important;
}

/* ---------- tables/list rows ---------- */
body.arx-public-v150 table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--ap-border);
  border-radius:12px;
  background:#08131d;
}
body.arx-public-v150 th{
  color:#8797a6;
  background:#091620;
  text-align:left;
}
body.arx-public-v150 th,
body.arx-public-v150 td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.055);
}
body.arx-public-v150 tr:last-child td{
  border-bottom:0;
}

/* ---------- footer ---------- */
body.arx-public-v150 .footer{
  border-top:1px solid rgba(128,158,188,.11);
  background:#050b11;
}
body.arx-public-v150 .trust-row{
  gap:12px;
}
body.arx-public-v150 .trust-row>div{
  border:1px solid var(--ap-border);
  border-radius:12px;
  background:#07111a;
}

/* ---------- links ---------- */
body.arx-public-v150 a{
  text-decoration-color:rgba(255,122,0,.30);
}

/* ---------- responsive ---------- */
@media(max-width:1100px){
  body.arx-public-v150 .shell{
    width:calc(100% - 30px);
  }

  body.arx-public-v150 [class*="resource-layout"],
  body.arx-public-v150 [class*="creator-layout"],
  body.arx-public-v150 [class*="account-layout"]{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:720px){
  body.arx-public-v150 .shell{
    width:calc(100% - 18px);
  }

  body.arx-public-v150 .section-block,
  body.arx-public-v150 .side-card{
    border-radius:11px!important;
  }

  body.arx-public-v150 h1{
    font-size:clamp(26px,8vw,34px);
  }

  body.arx-public-v150 .btn{
    min-height:44px;
  }

  body.arx-public-v150 .trust-row{
    grid-template-columns:1fr!important;
  }
}

/* ==========================================================
   AREXMODS PUBLIC UI v1.5.1
   Header / account / creator / detail consistency
   ========================================================== */

body.arx-public-v150 header .shell,
body.arx-public-v150 .site-header .shell{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
}

body.arx-public-v150 header .nav,
body.arx-public-v150 .site-header .nav{
  gap:9px!important;
}

body.arx-public-v150 header .nav>a,
body.arx-public-v150 .site-header .nav>a{
  min-height:70px;
  padding:0 13px!important;
  display:inline-flex;
  align-items:center;
  position:relative;
  border:0!important;
  background:transparent!important;
}

body.arx-public-v150 header .nav>a.active:after,
body.arx-public-v150 .site-header .nav>a.active:after{
  left:8px!important;
  right:8px!important;
  bottom:0!important;
  height:3px!important;
  background:#ff7200!important;
}

body.arx-public-v150 header .nav>a[href*="panel"],
body.arx-public-v150 header .nav>a[href*="server"]{
  display:none!important;
}

body.arx-public-v150:not(.arx-page-auth-v151) main>.shell,
body.arx-public-v150:not(.arx-page-auth-v151) main .shell:first-child,
body.arx-public-v150 .account-page,
body.arx-public-v150 [class*="account-page"],
body.arx-public-v150 .creator-dashboard,
body.arx-public-v150 [class*="creator-dashboard"],
body.arx-public-v150 .creator-landing,
body.arx-public-v150 .creator-editor,
body.arx-public-v150 [class*="resource-page"],
body.arx-public-v150 [class*="author-page"],
body.arx-public-v150 [class*="following-page"],
body.arx-public-v150 [class*="collection-page"]{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.arx-public-v150 .arx-account-tabs-v151{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  min-height:58px;
  margin:14px auto 22px!important;
  padding:0!important;
  display:flex!important;
  align-items:stretch!important;
  gap:0!important;
  overflow-x:auto;
  overflow-y:hidden;
  border:1px solid rgba(134,162,190,.16)!important;
  border-radius:13px!important;
  background:rgba(7,17,27,.95)!important;
}

body.arx-public-v150 .arx-account-tabs-v151>a{
  min-width:max-content;
  min-height:58px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  position:relative;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.045)!important;
  border-radius:0!important;
  background:transparent!important;
  color:#aebbc7!important;
  font-size:13px!important;
  font-weight:800!important;
  text-decoration:none!important;
}

body.arx-public-v150 .arx-account-tabs-v151>a:hover{
  color:#fff!important;
  background:rgba(255,114,0,.045)!important;
}

body.arx-public-v150 .arx-account-tabs-v151>a.is-active-v151{
  color:#ff8b24!important;
  background:rgba(255,114,0,.065)!important;
}

body.arx-public-v150 .arx-account-tabs-v151>a.is-active-v151:after{
  content:"";
  position:absolute;
  left:11px;
  right:11px;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:#ff7200;
}

body.arx-public-v150 .arx-account-tabs-v151 b,
body.arx-public-v150 .arx-account-tabs-v151 em,
body.arx-public-v150 .arx-account-tabs-v151 small{
  border-radius:999px!important;
}

body.arx-public-v150.arx-page-account-v151 main{
  padding-top:0!important;
}

body.arx-public-v150.arx-page-account-v151
:is(.account-page,[class*="account-page"],[class*="my-market"]){
  padding-top:12px!important;
}

body.arx-public-v150.arx-page-account-v151
:is(.account-hero,[class*="account-hero"],[class*="my-market-page-head"]){
  padding:22px 24px!important;
  margin-bottom:14px!important;
}

body.arx-public-v150.arx-page-account-v151
:is([class*="license-card"],[class*="license-item"],[class*="my-license"]){
  border:1px solid rgba(134,162,190,.18)!important;
  border-radius:13px!important;
  background:linear-gradient(110deg,rgba(11,25,37,.98),rgba(7,17,26,.98))!important;
  box-shadow:0 16px 32px rgba(0,0,0,.14)!important;
}

body.arx-public-v150.arx-page-creator-v151 main{
  padding-top:18px!important;
}

body.arx-public-v150 .arx-creator-shell-v151,
body.arx-public-v150.arx-page-creator-v151
:is(.creator-dashboard,[class*="creator-dashboard"]){
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  margin:0 auto 42px!important;
}

body.arx-public-v150.arx-page-creator-v151
:is([class*="creator-head"],[class*="creator-hero"]){
  border:1px solid rgba(134,162,190,.17)!important;
  border-radius:15px!important;
  background:
    radial-gradient(circle at 0 0,rgba(255,114,0,.10),transparent 34%),
    linear-gradient(115deg,#091722,#07111a)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.14)!important;
}

body.arx-public-v150.arx-page-creator-v151
:is([class*="creator-stat"],[class*="stat-card"]){
  border:1px solid rgba(134,162,190,.17)!important;
  border-radius:12px!important;
  background:#08131d!important;
}

body.arx-public-v150.arx-page-creator-v151 .creator-side{
  gap:14px!important;
}

body.arx-public-v150.arx-page-creator-v151 .creator-side .side-card{
  border:1px solid rgba(134,162,190,.17)!important;
  border-radius:13px!important;
  background:#08131d!important;
}

body.arx-public-v150.arx-page-creator-v151
:is([class*="creator-resource"],[class*="publication-row"]){
  border:1px solid rgba(134,162,190,.14)!important;
  border-radius:10px!important;
  background:#091722!important;
}

body.arx-public-v150.arx-page-resource-v151 main{
  padding-top:18px!important;
}

body.arx-public-v150.arx-page-resource-v151
:is([class*="resource-hero"],[class*="resource-main"],[class*="resource-side"]){
  border-color:rgba(134,162,190,.17)!important;
}

body.arx-public-v150.arx-page-resource-v151
:is([class*="resource-card"],[class*="resource-panel"],[class*="resource-section"]){
  box-shadow:none!important;
}

body.arx-public-v150.arx-page-author-v151 main{
  padding-top:18px!important;
}

body.arx-public-v150
:is(.account-page,.creator-dashboard,.creator-landing,[class*="following-page"],[class*="collection-page"]){
  min-height:0!important;
}

body.arx-public-v150 footer .shell{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
}

@media(max-width:900px){
  body.arx-public-v150 header .shell,
  body.arx-public-v150 .site-header .shell,
  body.arx-public-v150:not(.arx-page-auth-v151) main>.shell,
  body.arx-public-v150 .arx-account-tabs-v151,
  body.arx-public-v150 .arx-creator-shell-v151,
  body.arx-public-v150 .account-page,
  body.arx-public-v150 [class*="account-page"],
  body.arx-public-v150 .creator-dashboard,
  body.arx-public-v150 [class*="creator-dashboard"],
  body.arx-public-v150 footer .shell{
    width:calc(100% - 24px)!important;
  }

  body.arx-public-v150 header .nav{
    overflow-x:auto;
    justify-content:flex-start!important;
  }

  body.arx-public-v150 header .nav>a{
    min-height:60px!important;
    padding:0 10px!important;
    white-space:nowrap;
  }
}

@media(max-width:620px){
  body.arx-public-v150 header .shell,
  body.arx-public-v150 .site-header .shell,
  body.arx-public-v150:not(.arx-page-auth-v151) main>.shell,
  body.arx-public-v150 .arx-account-tabs-v151,
  body.arx-public-v150 .arx-creator-shell-v151,
  body.arx-public-v150 .account-page,
  body.arx-public-v150 [class*="account-page"],
  body.arx-public-v150 .creator-dashboard,
  body.arx-public-v150 [class*="creator-dashboard"],
  body.arx-public-v150 footer .shell{
    width:calc(100% - 16px)!important;
  }

  body.arx-public-v150 .arx-account-tabs-v151>a{
    padding:0 14px!important;
  }
}

/* ==========================================================
   AREXMODS PUBLIC UI v1.5.2
   Internal-page width / spacing polish
   ========================================================== */

body.arx-public-v150 .arx-width-main-v152{
  width:100%!important;
  max-width:none!important;
}

body.arx-public-v150 .arx-width-chain-v152{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

body.arx-public-v150.arx-license-page-v152 main{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.arx-public-v150.arx-license-page-v152
:is([class*="license-page"],[class*="licenses-page"],[class*="license-list"],[class*="licenses-list"]){
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

body.arx-public-v150.arx-license-page-v152
:is([class*="license-card"],[class*="license-item"],[class*="my-license"]){
  width:100%!important;
}

body.arx-public-v150.arx-license-page-v152
:is([class*="license-head"],[class*="license-header"],[class*="license-filter"],[class*="license-tabs"]){
  max-width:none!important;
}

body.arx-public-v150 .arx-account-main-v152{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.arx-public-v150 .arx-creator-main-v152{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.arx-public-v150 .arx-account-tabs-v151{
  margin-bottom:18px!important;
}

body.arx-public-v150.arx-license-page-v152 h1{
  margin-top:0!important;
}

body.arx-public-v150.arx-license-page-v152
:is([class*="license-card"],[class*="license-item"]){
  border-color:rgba(134,162,190,.18)!important;
  background:linear-gradient(110deg,rgba(10,23,34,.98),rgba(7,17,26,.98))!important;
}

@media(max-width:900px){
  body.arx-public-v150.arx-license-page-v152 main,
  body.arx-public-v150 .arx-account-main-v152,
  body.arx-public-v150 .arx-creator-main-v152{
    width:calc(100% - 24px)!important;
  }
}

@media(max-width:620px){
  body.arx-public-v150.arx-license-page-v152 main,
  body.arx-public-v150 .arx-account-main-v152,
  body.arx-public-v150 .arx-creator-main-v152{
    width:calc(100% - 16px)!important;
  }
}

/* ==========================================================
   AREXMODS PUBLIC UI v1.5.3
   Final polish based on desktop visual review
   ========================================================== */

/* Defense against legacy Wiki injection before JS sanitizer runs. */
body.arx-public-v150 header .nav>a[href="/wiki"],
body.arx-public-v150 header .nav>a[href^="/wiki/"],
body.arx-public-v150 .site-header .nav>a[href="/wiki"],
body.arx-public-v150 .site-header .nav>a[href^="/wiki/"]{
  display:none!important;
}

/* Header: after removing Wiki, keep menu balanced and less compressed. */
body.arx-public-v150 header .nav,
body.arx-public-v150 .site-header .nav{
  gap:14px!important;
}

body.arx-public-v150 header .nav>a,
body.arx-public-v150 .site-header .nav>a{
  padding-left:15px!important;
  padding-right:15px!important;
}

/* Catalog: make category bar + counters read as one visual system. */
/* Tone down the very bright background behind primary content slightly. */
body.arx-public-v150 main{
  position:relative;
  isolation:isolate;
}

body.arx-public-v150 main:before{
  content:"";
  position:fixed;
  inset:124px 0 0;
  pointer-events:none;
  z-index:-1;
  background:rgba(2,8,13,.08);
}

/* Catalog cards: cleaner equal rhythm across a four-column row. */
body.arx-public-v150.arx-page-catalog-v151
:is(.am7-card,[class*="am7-card"]){
  overflow:hidden;
  border-color:rgba(132,163,193,.20)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

body.arx-public-v150.arx-page-catalog-v151
:is(.am7-card,[class*="am7-card"]):hover{
  transform:translateY(-2px);
  border-color:rgba(255,122,0,.45)!important;
  box-shadow:0 16px 36px rgba(0,0,0,.24)!important;
}

/* Keep resource text blocks from jumping too much between cards. */
body.arx-public-v150.arx-page-catalog-v151
:is(.am7-card,[class*="am7-card"]) h2,
body.arx-public-v150.arx-page-catalog-v151
:is(.am7-card,[class*="am7-card"]) h3{
  line-height:1.18!important;
}

/* License page: tighten the large gap below account navigation. */
body.arx-public-v150.arx-license-page-v152 .arx-account-tabs-v151{
  margin-bottom:14px!important;
}

body.arx-public-v150.arx-license-page-v152
:is(h1,.page-title){
  letter-spacing:-.025em;
}

/* License filters feel attached to the page heading rather than floating. */
body.arx-public-v150.arx-license-page-v152
:is([class*="license-filter"],[class*="license-tabs"]){
  border-radius:10px!important;
}

/* License cards: slightly denser and easier to scan. */
body.arx-public-v150.arx-license-page-v152
:is([class*="license-card"],[class*="license-item"],[class*="my-license"]){
  box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
}

body.arx-public-v150.arx-license-page-v152
:is([class*="license-card"],[class*="license-item"],[class*="my-license"]):hover{
  border-color:rgba(255,122,0,.28)!important;
}

/* Creator dashboard: line all major sections up on the same grid. */
body.arx-public-v150.arx-page-creator-v151
:is([class*="creator-head"],[class*="creator-hero"],
    [class*="creator-stats"],[class*="creator-layout"]){
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Creator publication rows: stronger hierarchy, less empty feel. */
body.arx-public-v150.arx-page-creator-v151
:is([class*="creator-resource"],[class*="publication-row"]){
  min-height:62px;
  transition:border-color .15s ease,background .15s ease;
}

body.arx-public-v150.arx-page-creator-v151
:is([class*="creator-resource"],[class*="publication-row"]):hover{
  border-color:rgba(255,122,0,.28)!important;
  background:#0a1925!important;
}

/* Right-side creator cards keep same visual weight. */
body.arx-public-v150.arx-page-creator-v151 .creator-side .side-card{
  box-shadow:0 12px 28px rgba(0,0,0,.14)!important;
}

/* Global public buttons: subtle feedback, no excessive glow. */
body.arx-public-v150 .btn-primary{
  box-shadow:0 8px 20px rgba(255,114,0,.16)!important;
}

body.arx-public-v150 .btn:active{
  transform:translateY(0)!important;
}

/* Better focus visibility for keyboard navigation. */
body.arx-public-v150 a:focus-visible,
body.arx-public-v150 button:focus-visible,
body.arx-public-v150 input:focus-visible,
body.arx-public-v150 select:focus-visible,
body.arx-public-v150 textarea:focus-visible{
  outline:2px solid rgba(255,132,35,.85)!important;
  outline-offset:2px!important;
}

/* Mobile keeps navigation compact after Wiki removal. */
@media(max-width:900px){
  body.arx-public-v150 header .nav,
  body.arx-public-v150 .site-header .nav{
    gap:4px!important;
  }

  body.arx-public-v150 header .nav>a,
  body.arx-public-v150 .site-header .nav>a{
    padding-left:10px!important;
    padding-right:10px!important;
  }
}


/* AREXMODS_V154_CATALOG_TOP_ROW_FIX */

/* v1.5.3 regression fix: only ROOT containers get compact sizing. */
body.arx-public-v150.arx-page-catalog-v151 .am7-categories,
body.arx-public-v150.arx-page-catalog-v151 .am7-category-bar{
  min-height:58px!important;
  height:auto!important;
  max-height:none!important;
  align-items:stretch!important;
}

body.arx-public-v150.arx-page-catalog-v151 .am7-categories [class*="am7-categor"],
body.arx-public-v150.arx-page-catalog-v151 .am7-category-bar [class*="am7-categor"]{
  min-height:0!important;
  max-height:none!important;
}

body.arx-public-v150.arx-page-catalog-v151 .am7-stats{
  min-height:58px!important;
  height:auto!important;
  max-height:none!important;
  align-items:stretch!important;
}

body.arx-public-v150.arx-page-catalog-v151 .am7-stats [class*="am7-stat"]{
  min-height:0!important;
  max-height:none!important;
}

body.arx-public-v150.arx-page-catalog-v151 .am7-categories > *,
body.arx-public-v150.arx-page-catalog-v151 .am7-category-bar > *,
body.arx-public-v150.arx-page-catalog-v151 .am7-stats > *{
  align-self:stretch!important;
}

/* /AREXMODS_V154_CATALOG_TOP_ROW_FIX */

/* ==========================================================
   AREXMODS PUBLIC UI v1.5.5
   FINAL PUBLIC POLISH
   Catalog is the visual reference
   ========================================================== */

body.arx-public-v150 .arx-public-grid-v155{
  width:min(1500px,calc(100% - 56px))!important;
  max-width:1500px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.arx-public-v150:not(.arx-admin-page) main{
  background:
    linear-gradient(
      180deg,
      rgba(2,8,13,.14) 0%,
      rgba(2,8,13,.22) 38%,
      rgba(2,8,13,.30) 100%
    );
}

body.arx-public-v150 .arx-catalog-card-v155{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  border-radius:13px!important;
  overflow:hidden!important;
  background:rgba(7,17,26,.98)!important;
  border:1px solid rgba(126,159,190,.18)!important;
}

body.arx-public-v150 .arx-catalog-card-v155:hover{
  border-color:rgba(255,122,0,.42)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.25)!important;
}

body.arx-public-v150 .arx-catalog-card-v155 .arx-card-preview-v155{
  height:176px!important;
  min-height:176px!important;
  max-height:176px!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#050b10!important;
}

body.arx-public-v150 .arx-catalog-card-v155 .arx-card-preview-v155>img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

body.arx-public-v150 .arx-catalog-card-v155 .arx-card-tags-v155{
  margin-top:auto!important;
}

body.arx-public-v150 .arx-catalog-card-v155 h2,
body.arx-public-v150 .arx-catalog-card-v155 h3{
  margin-bottom:8px!important;
}

body.arx-public-v150 .arx-catalog-card-v155 p{
  line-height:1.45!important;
}

body.arx-public-v150.arx-page-catalog-v151 .am7-categories,
body.arx-public-v150.arx-page-catalog-v151 .am7-category-bar,
body.arx-public-v150.arx-page-catalog-v151 .am7-stats{
  border-radius:12px!important;
  background:rgba(7,17,27,.95)!important;
  border-color:rgba(126,159,190,.15)!important;
}

body.arx-public-v150.arx-page-catalog-v151
:is(input,select,button){
  border-radius:9px;
}

body.arx-public-v150.arx-account-public-v155 .arx-account-tabs-v151{
  border-radius:12px!important;
  background:rgba(7,17,27,.98)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.14)!important;
}

body.arx-public-v150.arx-account-public-v155
:is([class*="license-card"],[class*="license-item"],[class*="my-license"]){
  border-radius:13px!important;
  background:linear-gradient(115deg,#0a1723,#08131d)!important;
  border-color:rgba(126,159,190,.18)!important;
}

body.arx-public-v150.arx-account-public-v155
:is([class*="active"],[class*="revoked"],[class*="status"]){
  border-radius:999px;
}

body.arx-public-v150.arx-creator-public-v155
:is([class*="creator-head"],[class*="creator-hero"]){
  border-radius:14px!important;
  background:linear-gradient(115deg,#091722,#07111a)!important;
}

body.arx-public-v150.arx-creator-public-v155
:is([class*="creator-stat"],[class*="stat-card"]){
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

body.arx-public-v150.arx-creator-public-v155
:is([class*="creator-resource"],[class*="publication-row"]){
  min-height:64px!important;
  border-radius:10px!important;
}

body.arx-public-v150.arx-resource-detail-v155
:is([class*="resource-hero"],[class*="resource-panel"],[class*="resource-section"],[class*="resource-side"]){
  border-radius:13px!important;
  border-color:rgba(126,159,190,.18)!important;
  background:linear-gradient(115deg,#091722,#07111a)!important;
}

body.arx-public-v150.arx-author-public-v155
:is([class*="author-hero"],[class*="author-card"],[class*="author-side"]){
  border-radius:13px!important;
  border-color:rgba(126,159,190,.18)!important;
}

body.arx-public-v150
:is(.arx-account-tabs-v151,[class*="secondary-nav"],[class*="subnav"]){
  scrollbar-width:thin;
  scrollbar-color:rgba(255,122,0,.45) rgba(0,0,0,.15);
}

body.arx-public-v150
:is(.arx-account-public-v155,.arx-creator-public-v155,.arx-resource-detail-v155,.arx-author-public-v155)
main{
  padding-bottom:40px!important;
}

@media(max-width:768px){
  body.arx-public-v150 .arx-public-grid-v155{
    width:calc(100% - 24px)!important;
  }

  body.arx-public-v150 .arx-catalog-card-v155 .arx-card-preview-v155{
    height:165px!important;
    min-height:165px!important;
    max-height:165px!important;
  }

  body.arx-public-v150 .arx-account-tabs-v151{
    overflow-x:auto!important;
    white-space:nowrap!important;
  }
}

@media(max-width:430px){
  body.arx-public-v150 .arx-public-grid-v155{
    width:calc(100% - 16px)!important;
  }

  body.arx-public-v150 .arx-catalog-card-v155 .arx-card-preview-v155{
    height:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }

  body.arx-public-v150 .arx-account-tabs-v151>a{
    min-height:52px!important;
    padding-left:13px!important;
    padding-right:13px!important;
  }

  body.arx-public-v150.arx-creator-public-v155
  :is([class*="creator-stat"],[class*="stat-card"]){
    min-height:78px;
  }
}

@media(max-width:390px){
  body.arx-public-v150 .arx-public-grid-v155{
    width:calc(100% - 14px)!important;
  }
}

@media(max-width:360px){
  body.arx-public-v150 .arx-public-grid-v155{
    width:calc(100% - 12px)!important;
  }

  body.arx-public-v150 .arx-account-tabs-v151>a{
    padding-left:11px!important;
    padding-right:11px!important;
  }
}

/* ==========================================================
   AREXMODS PUBLIC UI v1.5.6
   LICENSES PAGE ONLY
   ========================================================== */

body.arx-public-v150.arx-license-page-v156 main{
  padding-bottom:34px!important;
}

body.arx-public-v150.arx-license-page-v156
:is(h1,.page-title){
  margin-bottom:4px!important;
}

body.arx-public-v150.arx-license-page-v156
:is(h1,.page-title) + p{
  margin-top:0!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-filter-v156{
  min-height:44px!important;
  height:auto!important;
  padding:4px!important;
  border:1px solid rgba(126,159,190,.16)!important;
  border-radius:10px!important;
  background:rgba(7,17,27,.96)!important;
  box-shadow:none!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-filter-v156
:is(a,button){
  min-height:34px!important;
  padding:0 13px!important;
  border-radius:7px!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156{
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  margin-bottom:12px!important;
  overflow:hidden!important;
  border:1px solid rgba(126,159,190,.18)!important;
  border-radius:13px!important;
  background:
    linear-gradient(115deg,rgba(10,23,35,.99),rgba(7,17,26,.99))!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156
:is(
  [class*="license-card"],
  [class*="license-item"],
  [class*="license-body"],
  [class*="license-content"],
  [class*="license-main"],
  [class*="license-row"]
){
  min-height:0!important;
  height:auto!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156
:is(h2,h3){
  margin-top:0!important;
  margin-bottom:6px!important;
  line-height:1.15!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156 p{
  margin-top:3px!important;
  margin-bottom:8px!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156
:is(dl,[class*="meta"],[class*="details"]){
  margin-top:8px!important;
  margin-bottom:8px!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-install-row-v156{
  min-height:38px!important;
  height:auto!important;
  margin-top:10px!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
  display:flex!important;
  align-items:center!important;
  border-top:1px solid rgba(126,159,190,.14)!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156
:is([class*="status"],[class*="active"],[class*="revoked"]){
  min-height:0!important;
  white-space:nowrap!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156
:is([class*="icon"],[class*="cover"],[class*="thumb"],[class*="avatar"]){
  align-self:flex-start;
}

body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156:hover{
  border-color:rgba(255,122,0,.28)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.18)!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-account-tabs-v151{
  min-height:54px!important;
  margin-bottom:12px!important;
}

body.arx-public-v150.arx-license-page-v156 .arx-account-tabs-v151>a{
  min-height:54px!important;
}

@media(max-width:768px){
  body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156{
    margin-bottom:10px!important;
  }

  body.arx-public-v150.arx-license-page-v156 .arx-license-filter-v156{
    max-width:100%!important;
    overflow-x:auto!important;
    white-space:nowrap!important;
  }
}

@media(max-width:430px){
  body.arx-public-v150.arx-license-page-v156 .arx-license-card-v156{
    border-radius:11px!important;
  }

  body.arx-public-v150.arx-license-page-v156 .arx-license-filter-v156
  :is(a,button){
    min-height:36px!important;
    padding:0 11px!important;
  }

  body.arx-public-v150.arx-license-page-v156 .arx-account-tabs-v151{
    min-height:50px!important;
  }

  body.arx-public-v150.arx-license-page-v156 .arx-account-tabs-v151>a{
    min-height:50px!important;
  }
}

/* AREXMODS_CS16_HEADER_LINK_V1 */
@media (min-width:1025px){
  body.arx-public-v150 header .nav > a[href="https://arexhost.ru/arexcs/"],
  body.arx-public-v150 .site-header .nav > a[href="https://arexhost.ru/arexcs/"]{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:auto!important;
    max-width:none!important;
    flex:0 0 auto!important;
    white-space:nowrap!important;
    color:#ff9a3d!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }

  body.arx-public-v150 header .nav,
  body.arx-public-v150 .site-header .nav{
    overflow:visible!important;
    min-width:0!important;
  }
}
/* END AREXMODS_CS16_HEADER_LINK_V1 */

