/* NewEdge Client Admin Portal v1.1.0 */
body:has(#nedcap-root) { margin:0 !important; background:#050b16 !important; overflow-x:hidden; }
body:has(#nedcap-root) #wpadminbar,
body:has(#nedcap-root) header,
body:has(#nedcap-root) footer { display:none !important; }

#nedcap-root {
  min-height:100vh;
  color:#eaf8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(34,211,238,.16), transparent 25%),
    radial-gradient(circle at 92% 8%, rgba(245,215,110,.12), transparent 28%),
    linear-gradient(135deg,#040b16,#07162d 46%,#030812);
}
.nedcap-root *{box-sizing:border-box}
.nedcap-login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}
.nedcap-login-card{width:min(450px,100%);border:1px solid rgba(125,211,252,.22);background:rgba(8,18,32,.9);border-radius:28px;padding:30px;box-shadow:0 30px 90px rgba(0,0,0,.48)}
.nedcap-brand{display:flex;align-items:center;gap:12px}
.nedcap-brand.is-login{margin-bottom:22px}
.nedcap-logo{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#18d5ff,#2d79ff);color:#04111f;font-weight:950;box-shadow:0 0 28px rgba(34,211,238,.28)}
.nedcap-brand strong{display:block;font-size:16px;font-weight:950}
.nedcap-brand small{display:block;color:#82eaff;font-size:11px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.nedcap-login-card h1,.nedcap-topbar h1{margin:0;color:#f7d35a}
.nedcap-login-card p,.nedcap-card p{color:rgba(234,248,255,.72);line-height:1.6}
.nedcap-login-card label,.nedcap-card label{display:block;margin:13px 0 8px;color:#fff;font-weight:850}
.nedcap-login-card input,.nedcap-card input,.nedcap-card select,.nedcap-card textarea{
  width:100%;min-height:48px;border-radius:15px;border:1px solid rgba(125,211,252,.18);
  background:rgba(15,31,52,.86);color:#fff;padding:0 14px;outline:none;
}
.nedcap-card textarea{padding:12px 14px;min-height:auto}
.nedcap-login-card button,.nedcap-card button,.nedcap-actions button,.nedcap-sidebar-foot button,.nedcap-command-grid button{
  border:0;border-radius:14px;min-height:44px;padding:0 16px;background:linear-gradient(135deg,#22d3ee,#3b82f6);
  color:#04111f;font-weight:950;cursor:pointer;transition:.18s ease;
}
.nedcap-login-card button:hover,.nedcap-card button:hover,.nedcap-command-grid button:hover{transform:translateY(-1px);filter:brightness(1.05)}
.nedcap-login-card button{width:100%;margin-top:16px}
.nedcap-login-error,.nedcap-warning,.nedcap-note{border:1px solid rgba(248,113,113,.28);color:#fecaca;background:rgba(127,29,29,.14);padding:12px 14px;border-radius:14px;margin:14px 0}
.nedcap-shell{min-height:100vh;display:grid;grid-template-columns:300px minmax(0,1fr)}
.nedcap-sidebar{position:sticky;top:0;height:100vh;padding:22px;border-right:1px solid rgba(125,211,252,.12);background:rgba(2,8,18,.78);display:flex;flex-direction:column;gap:24px}
.nedcap-nav{display:grid;gap:10px}
.nedcap-nav button{
  border:1px solid rgba(125,211,252,.12);background:rgba(15,31,52,.62);color:rgba(234,248,255,.78);
  border-radius:17px;min-height:52px;padding:0 16px;text-align:left;font-weight:880;cursor:pointer;display:flex;align-items:center;gap:10px;
}
.nedcap-nav button span{color:#f7d35a;width:20px;text-align:center}
.nedcap-nav button.is-active{background:linear-gradient(135deg,rgba(34,211,238,.22),rgba(59,130,246,.16));border-color:rgba(125,211,252,.42);color:#fff;box-shadow:inset 3px 0 0 #22d3ee}
.nedcap-sidebar-foot{margin-top:auto;display:grid;gap:10px}
.nedcap-sidebar-foot a,.nedcap-sidebar-foot button{color:#eaf8ff;border:1px solid rgba(125,211,252,.14);background:rgba(15,31,52,.62);text-decoration:none;border-radius:14px;min-height:42px;display:grid;place-items:center;font-weight:800}
.nedcap-main{padding:24px;overflow:hidden}
.nedcap-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border:1px solid rgba(125,211,252,.14);border-radius:25px;background:rgba(8,18,32,.78);margin-bottom:20px}
.nedcap-kicker{color:#82eaff;font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:900}
.nedcap-user{text-align:right}.nedcap-user span,.nedcap-user small{display:block}.nedcap-user small{color:#82eaff;font-weight:850}
.nedcap-section{display:none}.nedcap-section.is-active{display:block}
.nedcap-grid{display:grid;gap:16px}
.nedcap-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.nedcap-card{border:1px solid rgba(125,211,252,.14);background:radial-gradient(circle at 0 0,rgba(34,211,238,.10),transparent 34%),rgba(8,18,32,.78);border-radius:23px;padding:18px;box-shadow:0 18px 46px rgba(0,0,0,.20);min-width:0}
.nedcap-card span{color:rgba(234,248,255,.68);font-weight:850}.nedcap-card strong{display:block;margin-top:6px;font-size:28px;color:#fff}
.nedcap-wide{width:100%}.nedcap-card h2{margin:0 0 8px;color:#f7d35a}.nedcap-card h3{margin:16px 0 10px;color:#82eaff}
.nedcap-command-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.nedcap-command-grid button{text-align:left;min-height:118px;padding:18px;color:#fff;background:linear-gradient(145deg,rgba(15,31,52,.88),rgba(5,13,26,.86));border:1px solid rgba(125,211,252,.16)}
.nedcap-command-grid b{display:block;color:#f7d35a;font-size:16px;margin-bottom:8px}.nedcap-command-grid span{color:rgba(234,248,255,.72);font-size:13px;line-height:1.4}
.nedcap-card-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.nedcap-card-head input{max-width:360px}
.nedcap-user-layout{display:grid;grid-template-columns:380px minmax(0,1fr);gap:18px;min-height:540px}
.nedcap-user-list,.nedcap-product-list,.nedcap-transaction-list{display:grid;gap:10px;max-height:660px;overflow:auto;padding-right:6px}
.nedcap-user-row,.nedcap-product-row,.nedcap-tx-row,.nedcap-mini-row{
  display:grid;gap:6px;border:1px solid rgba(125,211,252,.14);background:rgba(15,31,52,.62);border-radius:16px;padding:12px;color:#eaf8ff;text-align:left;
}
.nedcap-user-row{cursor:pointer}.nedcap-user-row:hover,.nedcap-user-row.is-active,.nedcap-product-row:hover{border-color:rgba(245,215,110,.46);background:rgba(15,31,52,.94)}
.nedcap-user-row strong,.nedcap-product-row strong,.nedcap-tx-row strong{font-size:14px;margin:0}.nedcap-user-row small,.nedcap-product-row small,.nedcap-tx-row small{color:rgba(234,248,255,.64)}
.nedcap-user-editor{border:1px solid rgba(125,211,252,.14);border-radius:20px;padding:16px;background:rgba(2,8,18,.34);min-width:0}
.nedcap-product-grid{display:grid;grid-template-columns:430px minmax(0,1fr);gap:18px}
.nedcap-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.nedcap-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.nedcap-editor-actions,.nedcap-actions,.nedcap-row-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.nedcap-row-actions{margin-top:8px}
.nedcap-row-actions button{min-height:34px;font-size:12px;padding:0 10px}
.nedcap-output{display:none;margin-top:14px;padding:12px 14px;border-radius:14px;background:#06111f;color:#fff;border:1px solid rgba(125,211,252,.2)}
.nedcap-output.is-visible{display:block}.nedcap-output code{color:#facc15;background:rgba(255,255,255,.08);padding:4px 8px;border-radius:8px;font-weight:900}
.nedcap-check{display:flex!important;gap:10px;align-items:center}.nedcap-check input{width:auto!important;min-height:auto!important}
.nedcap-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 16px;max-height:320px;overflow:auto}
.nedcap-check-tile{border:1px solid rgba(125,211,252,.14);background:rgba(15,31,52,.55);border-radius:14px;padding:10px;display:flex;gap:8px;align-items:flex-start}
.nedcap-check-tile input{width:auto!important;min-height:auto!important;margin-top:3px}
.nedcap-mini-list{display:grid;gap:10px;margin-top:16px}
.nedcap-list{line-height:1.8;color:rgba(234,248,255,.78)}
.nedcap-toast{position:fixed;right:20px;bottom:20px;display:none;max-width:380px;border-radius:16px;padding:14px 16px;background:rgba(20,83,45,.96);color:#dcfce7;font-weight:850;z-index:99999}
.nedcap-toast.is-error{background:rgba(127,29,29,.96);color:#fee2e2}
.nedcap-empty{display:grid;place-items:center;min-height:280px;color:rgba(234,248,255,.62);text-align:center}
.nedcap-status{display:inline-flex!important;align-items:center;justify-content:center;width:max-content;padding:4px 8px;border-radius:999px;font-size:11px;background:rgba(34,197,94,.14);color:#bbf7d0!important}
.nedcap-status.is-pending{background:rgba(245,158,11,.16);color:#fde68a!important}.nedcap-status.is-rejected{background:rgba(239,68,68,.16);color:#fecaca!important}
@media(max-width:1200px){.nedcap-shell{grid-template-columns:1fr}.nedcap-sidebar{position:static;height:auto}.nedcap-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.nedcap-stats-grid,.nedcap-user-layout,.nedcap-editor-grid,.nedcap-product-grid,.nedcap-settings-grid,.nedcap-command-grid{grid-template-columns:1fr}.nedcap-card-head{flex-direction:column;align-items:stretch}.nedcap-card-head input{max-width:none}.nedcap-check-grid{grid-template-columns:1fr}}


/* v1.2.0: full-width operational command center */
#nedcap-root {
  width: 100vw !important;
  max-width: 100vw !important;
}

.nedcap-shell {
  grid-template-columns: 292px minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.nedcap-main {
  width: 100% !important;
  max-width: none !important;
  padding: 22px 28px 34px !important;
}

.nedcap-topbar,
.nedcap-section,
.nedcap-wide {
  width: 100% !important;
  max-width: none !important;
}

.nedcap-sidebar {
  border-right: 1px solid rgba(34, 211, 238, .18) !important;
  box-shadow: 18px 0 60px rgba(0, 0, 0, .22);
}

.nedcap-section.is-active {
  animation: nedcapPanelIn .26s ease both;
}

@keyframes nedcapPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nedcap-stats-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
}

.nedcap-command-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr)) !important;
}

.nedcap-product-grid {
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr) !important;
  align-items: start !important;
}

.nedcap-user-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr) !important;
}

.nedcap-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.nedcap-product-list,
.nedcap-user-list,
.nedcap-transaction-list {
  max-height: calc(100vh - 230px) !important;
}

.nedcap-product-row {
  grid-template-columns: 86px minmax(0, 1fr) !important;
  align-items: center;
  gap: 14px !important;
}

.nedcap-product-thumb {
  width: 86px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .18);
  background:
    radial-gradient(circle at 50% 0, rgba(34, 211, 238, .18), transparent 40%),
    rgba(2, 8, 18, .72);
  display: grid;
  place-items: center;
}

.nedcap-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nedcap-product-thumb span {
  color: rgba(234, 248, 255, .42);
  font-weight: 950;
  font-size: 22px;
}

.nedcap-product-main {
  min-width: 0;
}

.nedcap-row-actions {
  grid-column: 2;
}

.nedcap-check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  max-height: 460px !important;
  padding: 4px;
}

.nedcap-check-tile {
  min-height: 96px;
  align-items: center !important;
  background:
    linear-gradient(145deg, rgba(15,31,52,.72), rgba(8,18,32,.74)) !important;
}

.nedcap-check-tile-thumb {
  width: 54px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2, 8, 18, .72);
  border: 1px solid rgba(125, 211, 252, .14);
  flex: 0 0 auto;
}

.nedcap-check-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nedcap-check-tile-body {
  min-width: 0;
}

.nedcap-check-tile-body b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nedcap-ops-preview {
  margin-top: 12px;
  border: 1px solid rgba(125, 211, 252, .12);
  border-radius: 16px;
  min-height: 120px;
  background:
    radial-gradient(circle at 20% 0, rgba(34,211,238,.10), transparent 32%),
    rgba(2,8,18,.34);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nedcap-ops-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: none;
}

.nedcap-ops-preview.has-image img {
  display: block;
}

.nedcap-ops-preview span {
  color: rgba(234,248,255,.46);
  font-weight: 850;
}

.nedcap-ops-preview.has-image span {
  display: none;
}

.nedcap-tx-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
}

.nedcap-tx-main {
  min-width: 0;
}

.nedcap-page-badge {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245,215,110,.36);
  color: #f7d35a;
  background: rgba(245,215,110,.08);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 1500px) {
  .nedcap-product-grid {
    grid-template-columns: minmax(480px, 600px) minmax(0, 1fr) !important;
  }

  .nedcap-check-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1200px) {
  .nedcap-shell {
    grid-template-columns: 1fr !important;
  }

  .nedcap-main {
    padding: 16px !important;
  }

  .nedcap-product-grid,
  .nedcap-user-layout,
  .nedcap-settings-grid,
  .nedcap-command-grid,
  .nedcap-stats-grid,
  .nedcap-check-grid {
    grid-template-columns: 1fr !important;
  }

  .nedcap-product-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  .nedcap-product-thumb {
    width: 72px;
    height: 58px;
  }
}


/* v1.2.1: viewport-safe full display and media browse buttons */
html:has(#nedcap-root),
body:has(#nedcap-root) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#nedcap-root {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.nedcap-shell {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  grid-template-columns: 292px minmax(0, 1fr) !important;
}

.nedcap-main {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.nedcap-topbar,
.nedcap-section,
.nedcap-wide,
.nedcap-card,
.nedcap-command-grid,
.nedcap-stats-grid,
.nedcap-product-grid,
.nedcap-user-layout,
.nedcap-settings-grid {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.nedcap-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.nedcap-command-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.nedcap-product-grid {
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr) !important;
}

.nedcap-card,
.nedcap-card-head,
.nedcap-product-row,
.nedcap-tx-row {
  overflow-wrap: anywhere;
}

.nedcap-media-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.nedcap-media-field input {
  min-width: 0;
}

.nedcap-media-field .nedcap-browse-media {
  white-space: nowrap;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4af37, #ffe082);
  color: #04111f;
}

@media (max-width: 1380px) {
  .nedcap-product-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .nedcap-shell {
    grid-template-columns: 1fr !important;
  }

  .nedcap-media-field {
    grid-template-columns: 1fr;
  }
}


/* v1.2.2: proportionate full-page layout with no large empty left space */
html:has(#nedcap-root),
body:has(#nedcap-root) {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background: #050b16 !important;
}

body:has(#nedcap-root) .site,
body:has(#nedcap-root) .site-content,
body:has(#nedcap-root) .ast-container,
body:has(#nedcap-root) .entry-content,
body:has(#nedcap-root) .wp-site-blocks,
body:has(#nedcap-root) main,
body:has(#nedcap-root) article,
body:has(#nedcap-root) .content-area {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nedcap-root {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nedcap-shell {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  grid-template-columns: clamp(260px, 18vw, 330px) minmax(0, 1fr) !important;
}

.nedcap-sidebar {
  width: auto !important;
  min-width: 0 !important;
  padding: clamp(18px, 1.5vw, 28px) !important;
}

.nedcap-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: clamp(18px, 1.8vw, 34px) !important;
}

.nedcap-section.is-active {
  width: 100% !important;
  max-width: none !important;
}

.nedcap-topbar {
  width: 100% !important;
  max-width: none !important;
}

.nedcap-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
}

.nedcap-command-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.nedcap-product-grid {
  grid-template-columns: minmax(420px, 34vw) minmax(0, 1fr) !important;
  width: 100% !important;
}

.nedcap-user-layout {
  grid-template-columns: minmax(340px, 28vw) minmax(0, 1fr) !important;
  width: 100% !important;
}

.nedcap-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
  width: 100% !important;
}

@media (min-width: 1600px) {
  .nedcap-main {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }

  .nedcap-product-grid {
    grid-template-columns: minmax(480px, 32vw) minmax(0, 1fr) !important;
  }

  .nedcap-user-layout {
    grid-template-columns: minmax(390px, 25vw) minmax(0, 1fr) !important;
  }
}

@media (max-width: 1200px) {
  .nedcap-shell {
    grid-template-columns: 1fr !important;
  }

  .nedcap-sidebar {
    position: relative !important;
    height: auto !important;
  }

  .nedcap-product-grid,
  .nedcap-user-layout,
  .nedcap-settings-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v1.2.3: wp-admin-like clarity, visible users, 5-tier controls, rolling image previews */
.nedcap-user-list {
  gap: 12px !important;
  scrollbar-width: thin;
}

.nedcap-user-row {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 78px !important;
  padding: 12px 14px !important;
  background: linear-gradient(135deg, rgba(15, 31, 52, .92), rgba(8, 18, 32, .86)) !important;
  border: 1px solid rgba(125, 211, 252, .18) !important;
  color: #eaf8ff !important;
  overflow: hidden !important;
}

.nedcap-user-row:hover,
.nedcap-user-row.is-active {
  background: linear-gradient(135deg, rgba(17, 84, 112, .86), rgba(14, 56, 94, .86)) !important;
  border-color: rgba(34, 211, 238, .56) !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, .12) !important;
}

.nedcap-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #04111f;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(34, 211, 238, .22);
}

.nedcap-user-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nedcap-user-row-main strong {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
}

.nedcap-user-row-main strong em {
  font-style: normal;
  color: #f7d35a;
  font-size: 12px;
}

.nedcap-user-row-main small {
  display: block;
  color: rgba(234, 248, 255, .78) !important;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nedcap-user-meta {
  color: #82eaff !important;
}

.nedcap-settings-grid {
  align-items: start !important;
}

#nedcap-tier-settings .nedcap-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#nedcap-tier-settings .nedcap-editor-grid > div:nth-child(n+6) {
  display: none !important;
}

.nedcap-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.nedcap-media-actions button {
  min-height: 40px;
}

.nedcap-rolling-preview {
  margin-top: 10px;
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 16px;
  min-height: 110px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(2, 8, 18, .38);
}

.nedcap-rolling-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.nedcap-rolling-preview span,
.nedcap-empty-mini {
  color: rgba(234, 248, 255, .52);
  font-weight: 850;
  padding: 14px;
  text-align: center;
}

.nedcap-rolling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.nedcap-rolling-thumb {
  position: relative;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 8, 18, .48);
  border: 1px solid rgba(125, 211, 252, .18);
}

.nedcap-rolling-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nedcap-rolling-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 50%;
  background: rgba(15, 23, 42, .88) !important;
  color: #fff !important;
  display: grid;
  place-items: center;
}

.nedcap-rolling-thumb button:hover {
  background: #ef4444 !important;
}

.nedcap-media-field {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

@media (max-width: 820px) {
  #nedcap-tier-settings .nedcap-editor-grid,
  .nedcap-media-field {
    grid-template-columns: 1fr !important;
  }
}


/* v1.2.4 multi product upload + online chat controls */
.nedcap-tier-checks,
.nedcap-tier-filter {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:8px 0 14px;
}

.nedcap-tier-checks label,
.nedcap-tier-filter button {
  border:1px solid rgba(125,211,252,.18);
  background:rgba(15,31,52,.72);
  color:#eaf8ff;
  border-radius:999px;
  min-height:38px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:850;
}

.nedcap-tier-filter button.is-active {
  background:linear-gradient(135deg,rgba(34,211,238,.26),rgba(247,211,90,.16));
  border-color:rgba(247,211,90,.55);
  color:#fff;
}

.nedcap-multi-image-preview {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(116px,1fr));
  gap:10px;
  margin:12px 0 14px;
}

.nedcap-multi-thumb {
  position:relative;
  border:1px solid rgba(125,211,252,.16);
  border-radius:15px;
  overflow:hidden;
  background:rgba(15,31,52,.72);
}

.nedcap-multi-thumb img {
  display:block;
  width:100%;
  height:88px;
  object-fit:cover;
}

.nedcap-multi-thumb strong {
  position:absolute;
  top:6px;
  left:6px;
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#22d3ee,#3b82f6);
  color:#04111f;
  font-size:11px;
  font-weight:950;
}

.nedcap-multi-thumb span {
  display:block;
  padding:7px 8px;
  font-size:11px;
  color:rgba(234,248,255,.74);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nedcap-multi-thumb button {
  position:absolute;
  top:6px;
  right:6px;
  width:24px;
  height:24px;
  min-height:24px;
  padding:0;
  border-radius:50%;
  background:#ef4444;
  color:white;
}

.nedcap-product-library-card {
  grid-column:1 / -1;
}

.nedcap-empty-mini {
  padding:14px;
  border:1px dashed rgba(125,211,252,.20);
  border-radius:14px;
  color:rgba(234,248,255,.62);
}


/* v1.2.5 admin-ready full control polish */
.nedcap-nav button[data-nedcap-section="support"] span {
  color:#86efac;
}
.nedcap-card.nedcap-wide {
  grid-column:1 / -1;
}
.nedcap-page-badge {
  background:linear-gradient(135deg,rgba(34,211,238,.24),rgba(247,211,90,.18));
  border:1px solid rgba(247,211,90,.38);
  color:#f7d35a;
}


/* v1.2.6: buttons fixed + futuristic hover polish */
#nedcap-root button,
#nedcap-root .button,
#nedcap-root input[type="submit"] {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(34, 211, 238, .10), inset 0 1px 0 rgba(255,255,255,.09);
}

#nedcap-root button::after,
#nedcap-root .button::after,
#nedcap-root input[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.24) 42%, transparent 68%);
  transform: translateX(-140%);
  transition: transform .48s ease;
}

#nedcap-root button:hover::after,
#nedcap-root .button:hover::after,
#nedcap-root input[type="submit"]:hover::after {
  transform: translateX(140%);
}

#nedcap-root button:hover,
#nedcap-root .button:hover,
#nedcap-root input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 211, 238, .18), 0 0 0 1px rgba(125,211,252,.20) inset;
}

#nedcap-root button:active,
#nedcap-root .button:active,
#nedcap-root input[type="submit"]:active {
  transform: translateY(0);
}

.nedcap-nav button[data-nedcap-section="multi-upload"] span {
  color: #22d3ee;
}

.nedcap-nav button[data-nedcap-section="multi-upload"].is-active {
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(247,211,90,.13));
  border-color: rgba(34,211,238,.52);
}

.nedcap-futuristic-upload {
  background:
    radial-gradient(circle at 8% 0%, rgba(34,211,238,.18), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(247,211,90,.12), transparent 32%),
    linear-gradient(145deg, rgba(11,23,42,.98), rgba(6,13,26,.98)) !important;
  border: 1px solid rgba(125,211,252,.24) !important;
  color: #eaf8ff;
}

.nedcap-futuristic-upload h2,
.nedcap-multi-upload-card h2 {
  color: #f7d35a;
}

.nedcap-futuristic-upload p,
.nedcap-multi-upload-card p {
  color: rgba(234,248,255,.74);
}

.nedcap-multi-upload-card textarea,
.nedcap-multi-upload-card input,
.nedcap-multi-upload-card select,
.nedcap-futuristic-upload textarea,
.nedcap-futuristic-upload input,
.nedcap-futuristic-upload select {
  background: rgba(8,18,32,.82) !important;
  border: 1px solid rgba(125,211,252,.22) !important;
  color: #ffffff !important;
}

.nedcap-multi-upload-card textarea:focus,
.nedcap-multi-upload-card input:focus,
.nedcap-multi-upload-card select:focus,
.nedcap-futuristic-upload textarea:focus,
.nedcap-futuristic-upload input:focus,
.nedcap-futuristic-upload select:focus {
  border-color: rgba(34,211,238,.75) !important;
  box-shadow: 0 0 0 3px rgba(34,211,238,.13), 0 0 20px rgba(34,211,238,.10) !important;
}

.nedcap-tier-checks label {
  transition: .18s ease;
  cursor: pointer;
}

.nedcap-tier-checks label:hover {
  transform: translateY(-2px);
  border-color: rgba(247,211,90,.55);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(247,211,90,.10));
}

.nedcap-multi-thumb {
  transition: .18s ease;
}

.nedcap-multi-thumb:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(247,211,90,.42);
  box-shadow: 0 16px 32px rgba(2,6,23,.28);
}

.nedcap-product-grid {
  gap: 18px;
}

.nedcap-product-library-card {
  border-color: rgba(125,211,252,.22) !important;
}


/* v1.2.7: multi-upload tier alignment polish */
.nedcap-tier-checks {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px !important;
  margin: 8px 0 18px !important;
}

.nedcap-tier-checks label {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 58px;
  padding: 10px 16px 10px 44px !important;
  margin: 0 !important;
  text-align: center;
  line-height: 1.15;
}

.nedcap-tier-checks label span {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 850;
  color: #eaf8ff;
  white-space: normal;
  word-break: keep-all;
}

.nedcap-tier-checks label input[type="checkbox"] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 5px;
  accent-color: #8b5cf6;
  flex: 0 0 18px;
}

.nedcap-tier-checks label:hover,
.nedcap-tier-checks label:has(input:checked) {
  border-color: rgba(247,211,90,.55);
  background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(247,211,90,.12));
  box-shadow: 0 14px 30px rgba(2,6,23,.20);
}

@media (max-width: 768px) {
  .nedcap-tier-checks label {
    min-width: calc(50% - 8px);
  }
}


/* v1.2.8: real support inbox + structured uploader */
body:has(#nedcap-root) #nedcap-user-support-widget,
body:has(#nedcap-root) .ned-support-widget,
body:has(#nedcap-root) .newedge-support-widget,
body:has(#nedcap-root) .ned-floating-support,
body:has(#nedcap-root) .newedge-floating-support,
body:has(#nedcap-root) [id*="support-widget"],
body:has(#nedcap-root) [class*="support-widget"] {
  display: none !important;
}

.nedcap-support-console {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: 620px;
}

.nedcap-support-thread-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 680px;
  overflow: auto;
  padding-right: 6px;
}

.nedcap-support-thread {
  border: 1px solid rgba(125,211,252,.14);
  background: rgba(15,31,52,.66);
  color: #eaf8ff;
  border-radius: 16px;
  padding: 13px;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.nedcap-support-thread:hover,
.nedcap-support-thread.is-active {
  transform: translateY(-2px);
  border-color: rgba(247,211,90,.48);
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(15,31,52,.88));
}

.nedcap-support-thread strong {
  margin: 0 0 4px;
  font-size: 14px;
}

.nedcap-support-thread small {
  display: block;
  color: rgba(234,248,255,.62);
  line-height: 1.45;
}

.nedcap-support-unread {
  display: inline-flex;
  margin-left: 8px;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.nedcap-support-conversation {
  border: 1px solid rgba(125,211,252,.14);
  border-radius: 22px;
  background: rgba(2,8,18,.36);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.nedcap-support-conversation-head {
  padding: 16px;
  border-bottom: 1px solid rgba(125,211,252,.12);
}

.nedcap-support-conversation-head strong {
  color: #f7d35a;
  font-size: 18px;
}

.nedcap-support-conversation-head small {
  display: block;
  color: rgba(234,248,255,.62);
  margin-top: 4px;
}

.nedcap-support-messages {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 490px;
  overflow: auto;
}

.nedcap-support-msg {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15,31,52,.86);
  border: 1px solid rgba(125,211,252,.13);
  color: #eaf8ff;
}

.nedcap-support-msg.is-admin {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(79,70,229,.18));
  border-color: rgba(34,211,238,.24);
}

.nedcap-support-msg small {
  display: block;
  margin-top: 6px;
  color: rgba(234,248,255,.50);
  font-size: 10px;
}

.nedcap-support-reply-form {
  padding: 14px;
  border-top: 1px solid rgba(125,211,252,.12);
  display: grid;
  gap: 10px;
}

.nedcap-support-reply-form textarea {
  width: 100%;
  min-height: 88px;
  border-radius: 16px;
  border: 1px solid rgba(125,211,252,.18);
  background: rgba(15,31,52,.86);
  color: #fff;
  padding: 12px 14px;
}

.nedcap-support-reply-form button {
  justify-self: end;
  min-width: 160px;
}

.nedcap-multi-upload-card textarea[name="structured_rows"],
.nedcap-futuristic-upload textarea[name="structured_rows"] {
  min-height: 136px;
  border-color: rgba(247,211,90,.26) !important;
  background: linear-gradient(180deg, rgba(10,22,38,.94), rgba(5,13,26,.94)) !important;
}

@media (max-width: 1000px) {
  .nedcap-support-console {
    grid-template-columns: 1fr;
  }
}


/* v1.2.9: realtime support notifications */
.nedcap-support-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nedcap-nav-badge {
  display: none;
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(239, 68, 68, .30);
}

.nedcap-nav-badge.is-visible {
  display: inline-flex;
  animation: nedcapPulseBadge 1.2s ease-in-out infinite;
}

@keyframes nedcapPulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(239, 68, 68, .30); }
  50% { transform: scale(1.08); box-shadow: 0 0 26px rgba(239, 68, 68, .55); }
}

.nedcap-support-thread:has(.nedcap-support-unread) {
  border-color: rgba(239, 68, 68, .38);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, .10) inset, 0 12px 28px rgba(239, 68, 68, .08);
}


/* v1.3.0: support inbox layout and notification fallback polish */
#nedcap-root .nedcap-support-console-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#nedcap-root .nedcap-section[data-nedcap-panel="support"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#nedcap-root .nedcap-section[data-nedcap-panel="support"] .nedcap-settings-grid {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

#nedcap-root .nedcap-support-console {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

#nedcap-root .nedcap-support-thread-list,
#nedcap-root .nedcap-support-conversation {
  min-width: 0 !important;
  max-width: 100% !important;
}

#nedcap-root .nedcap-support-thread-list {
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 20px;
  padding: 12px !important;
  background: rgba(2,8,18,.30);
}

#nedcap-root .nedcap-support-conversation {
  width: 100% !important;
  overflow: hidden !important;
}

#nedcap-root .nedcap-support-messages {
  min-height: 360px;
}

#nedcap-root .nedcap-support-head-actions {
  margin-left: auto;
}

#nedcap-root #nedcap-enable-notifications,
#nedcap-root #nedcap-refresh-support {
  white-space: nowrap;
}

#nedcap-root #nedcap-enable-notifications::before {
  content: "🔔";
  margin-right: 7px;
}

#nedcap-root #nedcap-refresh-support::before {
  content: "↻";
  margin-right: 7px;
}

body:has(#nedcap-root) #nedcap-user-support-widget,
body:has(#nedcap-root) .nedcap-user-support-widget,
body:has(#nedcap-root) .ned-support-widget,
body:has(#nedcap-root) .newedge-support-widget,
body:has(#nedcap-root) .ned-floating-support,
body:has(#nedcap-root) .newedge-floating-support,
body:has(#nedcap-root) .support-floating,
body:has(#nedcap-root) .floating-support,
body:has(#nedcap-root) [class*="floating"][class*="support"],
body:has(#nedcap-root) [id*="floating"][id*="support"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1050px) {
  #nedcap-root .nedcap-support-console {
    grid-template-columns: 1fr !important;
  }

  #nedcap-root .nedcap-support-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* v1.3.3: requested Credit/Debit buttons only */
#nedcap-root .nedcap-balance-action-row {
  display: flex;
  align-items: center;
  width: 100%;
}

#nedcap-root .nedcap-balance-action-row button {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 950;
  color: #04111f;
}

#nedcap-root #nedcap-credit-balance {
  background: linear-gradient(135deg, #22c55e, #86efac) !important;
}

#nedcap-root #nedcap-debit-balance {
  background: linear-gradient(135deg, #f97316, #facc15) !important;
}


/* v1.3.4: inline credit/debit amount control */
#nedcap-root .nedcap-balance-adjust-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(15,31,52,.66));
  border: 1px solid rgba(125,211,252,.18);
}

#nedcap-root .nedcap-balance-adjust-box label {
  margin: 0 !important;
  color: rgba(234,248,255,.78);
  font-weight: 900;
}

#nedcap-root #nedcap-balance-adjust-amount {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(125,211,252,.22);
  background: rgba(8,18,32,.90);
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

#nedcap-root #nedcap-balance-adjust-amount:focus {
  border-color: rgba(34,211,238,.75);
  box-shadow: 0 0 0 3px rgba(34,211,238,.13);
}

#nedcap-root .nedcap-balance-adjust-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

#nedcap-root .nedcap-balance-adjust-buttons button {
  min-height: 44px;
  width: 100%;
  border-radius: 14px;
  color: #04111f;
  font-weight: 950;
}

#nedcap-root #nedcap-credit-balance {
  background: linear-gradient(135deg, #22c55e, #86efac) !important;
}

#nedcap-root #nedcap-debit-balance {
  background: linear-gradient(135deg, #f97316, #facc15) !important;
}

#nedcap-root #nedcap-balance-adjust-message {
  min-height: 16px;
  color: rgba(234,248,255,.68);
  font-size: 12px;
  font-weight: 800;
}

#nedcap-root #nedcap-balance-adjust-message.is-success {
  color: #86efac;
}

#nedcap-root #nedcap-balance-adjust-message.is-error {
  color: #fecaca;
}

@media (max-width: 700px) {
  #nedcap-root .nedcap-balance-adjust-buttons {
    grid-template-columns: 1fr;
  }
}


/* v1.3.5: admin-only floating support removal + compact merge product cards */
body:has(#nedcap-root) #nedcap-user-support-widget,
body:has(#nedcap-root) .nedcap-user-support-widget,
body:has(#nedcap-root) .ned-floating-support,
body:has(#nedcap-root) .newedge-floating-support,
body:has(#nedcap-root) .support-floating,
body:has(#nedcap-root) .floating-support,
body:has(#nedcap-root) .chat-floating,
body:has(#nedcap-root) .floating-chat,
body:has(#nedcap-root) [id*="support"][class*="floating"],
body:has(#nedcap-root) [class*="support"][class*="floating"],
body:has(#nedcap-root) [id*="chat"][class*="floating"],
body:has(#nedcap-root) [class*="chat"][class*="floating"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the real admin support inbox visible */
#nedcap-root .nedcap-support-console,
#nedcap-root .nedcap-support-thread-list,
#nedcap-root .nedcap-support-conversation,
#nedcap-root .nedcap-nav {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Compact product picker for Merge / Combo / Lucky Bundle */
#nedcap-root #nedcap-bundle-products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
  gap: 10px !important;
  max-height: 520px !important;
  overflow: auto !important;
  padding: 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(125,211,252,.14) !important;
  background: rgba(2,8,18,.28) !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  min-height: 150px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  align-items: start !important;
  overflow: hidden !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile input[type="checkbox"] {
  position: absolute !important;
  top: 7px !important;
  left: 7px !important;
  z-index: 3 !important;
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  accent-color: #22d3ee !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile-thumb {
  display: block !important;
  width: 100% !important;
  height: 92px !important;
  border-radius: 11px !important;
  overflow: hidden !important;
  background: rgba(15,31,52,.80) !important;
  border: 1px solid rgba(125,211,252,.10) !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile-body {
  display: block !important;
  min-width: 0 !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile-body b {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  max-height: 28px !important;
  overflow: hidden !important;
  color: #eaf8ff !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile-body small {
  display: block !important;
  margin-top: 3px !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  color: rgba(234,248,255,.58) !important;
  max-height: 34px !important;
  overflow: hidden !important;
}

#nedcap-root #nedcap-bundle-products .nedcap-check-tile:has(input:checked) {
  border-color: rgba(34,211,238,.72) !important;
  box-shadow: 0 0 0 1px rgba(34,211,238,.25) inset, 0 0 22px rgba(34,211,238,.12) !important;
}

@media (max-width: 900px) {
  #nedcap-root #nedcap-bundle-products {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
  }
}


/* v1.3.6: account freeze/suspend + total earnings controls */
#nedcap-root .nedcap-account-status-box,
#nedcap-root .nedcap-earnings-adjust-box,
#nedcap-root .nedcap-status-action-box {
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(15,31,52,.62));
  padding: 12px;
}

#nedcap-root .nedcap-earnings-adjust-box,
#nedcap-root .nedcap-status-action-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

#nedcap-root .nedcap-earnings-adjust-buttons,
#nedcap-root .nedcap-status-action-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#nedcap-root .nedcap-earnings-adjust-buttons {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#nedcap-root #nedcap-debit-earnings {
  background: linear-gradient(135deg, #f97316, #facc15) !important;
  color: #04111f !important;
}

#nedcap-root #nedcap-reset-earnings,
#nedcap-root #nedcap-suspend-account {
  background: linear-gradient(135deg, #ef4444, #fb7185) !important;
  color: #fff !important;
}

#nedcap-root #nedcap-freeze-account {
  background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
  color: #04111f !important;
}

#nedcap-root #nedcap-activate-account {
  background: linear-gradient(135deg, #22c55e, #86efac) !important;
  color: #04111f !important;
}

#nedcap-root #nedcap-earnings-adjust-message {
  min-height: 16px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(234,248,255,.68);
}

#nedcap-root #nedcap-earnings-adjust-message.is-success { color: #86efac; }
#nedcap-root #nedcap-earnings-adjust-message.is-error { color: #fecaca; }

@media (max-width: 800px) {
  #nedcap-root .nedcap-earnings-adjust-buttons,
  #nedcap-root .nedcap-status-action-box {
    grid-template-columns: 1fr;
  }
}


/* v1.3.7: filename price import options */
#nedcap-root .nedcap-import-options {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(125,211,252,.18);
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(15,31,52,.62));
}

#nedcap-root .nedcap-import-options label {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  color: rgba(234,248,255,.78);
  font-size: 12px;
  font-weight: 850;
}

#nedcap-root .nedcap-import-options input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: #22d3ee;
}


/* v1.3.8: confirmation modal for irreversible admin actions */
.nedcap-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 8, 18, .72);
  backdrop-filter: blur(10px);
}

.nedcap-confirm-modal.is-open {
  display: flex;
}

.nedcap-confirm-card {
  width: min(92vw, 440px);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 211, 90, .16), transparent 38%),
    linear-gradient(145deg, rgba(13, 28, 48, .98), rgba(5, 14, 28, .98));
  border: 1px solid rgba(247, 211, 90, .34);
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 34px rgba(247,211,90,.10);
  color: #eaf8ff;
}

.nedcap-confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #04111f;
  font-size: 30px;
  font-weight: 950;
}

.nedcap-confirm-card h3 {
  margin: 0 0 9px;
  color: #f7d35a;
  font-size: 23px;
  font-weight: 950;
}

.nedcap-confirm-card p {
  margin: 0;
  color: rgba(234,248,255,.78);
  line-height: 1.55;
  font-size: 14px;
}

.nedcap-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.nedcap-confirm-actions button {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 950;
}

.nedcap-confirm-cancel {
  background: rgba(15,31,52,.88) !important;
  color: #eaf8ff !important;
  border: 1px solid rgba(125,211,252,.20) !important;
}

.nedcap-confirm-ok {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #fff !important;
  border: 0 !important;
}

@media (max-width: 560px) {
  .nedcap-confirm-actions {
    grid-template-columns: 1fr;
  }
}


/* v1.3.9: remove duplicate frontend support button from admin portal plugin only */
#nedcap-user-support-widget,
.nedcap-user-support-widget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* v1.4.0: Set Control inside /admin */
.nedcap-inline-set-control{
  margin-top:18px;
  border:1px solid rgba(245,215,110,.18);
  background:linear-gradient(145deg,rgba(15,31,52,.72),rgba(7,18,34,.84));
  border-radius:20px;
  padding:16px;
}
.nedcap-set-layout{align-items:start!important}
.nedcap-set-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.nedcap-set-head h2{margin:0;color:#f7d35a!important}.nedcap-set-head p{margin:4px 0 0;color:rgba(234,248,255,.68)}
.nedcap-set-tier{display:inline-flex!important;align-items:center;justify-content:center;border-radius:999px;padding:8px 12px;background:rgba(245,215,110,.13);border:1px solid rgba(245,215,110,.35);color:#fde68a!important;font-weight:950;white-space:nowrap}
.nedcap-set-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
.nedcap-set-stats div,.nedcap-set-compare div{border:1px solid rgba(125,211,252,.14);background:rgba(2,8,18,.34);border-radius:16px;padding:13px;min-width:0}
.nedcap-set-stats span,.nedcap-set-compare span{display:block!important;color:rgba(234,248,255,.66)!important;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 5px}
.nedcap-set-stats strong,.nedcap-set-compare strong{display:block!important;color:#fff!important;font-size:20px!important;margin:0!important}
.nedcap-lock-badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.nedcap-lock-badges span{display:inline-flex!important;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:950}
.nedcap-lock-badges .is-clear{background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.34);color:#bbf7d0!important}
.nedcap-lock-badges .is-warning{background:rgba(245,158,11,.16);border:1px solid rgba(245,158,11,.38);color:#fde68a!important}
.nedcap-set-form{border-top:1px solid rgba(125,211,252,.12);padding-top:14px}
.nedcap-set-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.nedcap-set-compare select{margin-top:6px!important}
.nedcap-set-log{margin-top:16px;border-top:1px solid rgba(125,211,252,.12);padding-top:12px;overflow:auto}
.nedcap-set-log table{width:100%;border-collapse:collapse;color:#eaf8ff;font-size:12px}
.nedcap-set-log th,.nedcap-set-log td{border-bottom:1px solid rgba(125,211,252,.12);padding:9px;text-align:left;white-space:nowrap}
.nedcap-set-log th{color:#82eaff;font-weight:950}
@media(max-width:1200px){.nedcap-set-stats,.nedcap-set-compare{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.nedcap-set-stats,.nedcap-set-compare{grid-template-columns:1fr}.nedcap-set-head{display:block}.nedcap-set-tier{margin-top:10px}}


/* v1.5.0 Product Pool Workspace inside /admin */
.nedcap-pool-workspace-card{min-height:calc(100vh - 170px)}
.nedcap-pool-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.nedcap-pool-tabs button{border:1px solid rgba(125,211,252,.14);background:rgba(15,31,52,.68);color:#eaf8ff;border-radius:999px;min-height:44px;padding:0 15px;font-weight:900;cursor:pointer}
.nedcap-pool-tabs button b{display:inline-flex;margin-left:8px;background:rgba(125,211,252,.12);color:#82eaff;border-radius:999px;padding:3px 8px}
.nedcap-pool-tabs button.is-active{background:linear-gradient(135deg,rgba(34,211,238,.24),rgba(250,204,21,.14));border-color:rgba(250,204,21,.5);color:#fff}
.nedcap-pool-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.nedcap-pool-stats div{border:1px solid rgba(125,211,252,.14);background:rgba(15,31,52,.62);border-radius:17px;padding:14px}.nedcap-pool-stats strong{font-size:25px}.nedcap-pool-stats span{display:block;color:rgba(234,248,255,.62);font-weight:850;text-transform:uppercase;font-size:11px;letter-spacing:.08em}
.nedcap-pool-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px}.nedcap-pool-toolbar{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;margin-bottom:14px;align-items:center}.nedcap-pool-toolbar span{color:#f7d35a;font-weight:900}
.nedcap-pool-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;max-height:calc(100vh - 360px);overflow:auto;padding:4px}.nedcap-pool-product{position:relative;border:1px solid rgba(125,211,252,.14);background:linear-gradient(145deg,rgba(15,31,52,.78),rgba(8,18,32,.78));border-radius:18px;padding:10px;cursor:pointer;transition:.18s ease}.nedcap-pool-product:hover{transform:translateY(-2px);border-color:rgba(250,204,21,.45)}.nedcap-pool-product input{position:absolute;top:10px;left:10px;z-index:2}.nedcap-pool-check{position:absolute!important;right:10px;top:10px;width:28px;height:28px;border-radius:999px;background:rgba(125,211,252,.12);display:grid!important;place-items:center;color:rgba(234,248,255,.45);font-weight:950}.nedcap-pool-product:has(input:checked){border-color:#facc15;background:linear-gradient(145deg,rgba(62,47,12,.75),rgba(8,18,32,.86))}.nedcap-pool-product:has(input:checked) .nedcap-pool-check{background:#facc15;color:#07111f}.nedcap-pool-img{height:142px;border-radius:14px;overflow:hidden;background:rgba(2,8,18,.68);display:grid;place-items:center;margin-bottom:10px}.nedcap-pool-img img{width:100%;height:100%;object-fit:cover}.nedcap-pool-img span{color:rgba(234,248,255,.45);font-weight:900}.nedcap-pool-product strong{display:block;color:#fff;min-height:38px;line-height:1.25}.nedcap-pool-product small{display:block;margin-top:6px;color:rgba(234,248,255,.65);line-height:1.35}.nedcap-pool-side{display:grid;gap:14px}.nedcap-pool-form{border:1px solid rgba(125,211,252,.14);background:rgba(2,8,18,.32);border-radius:18px;padding:15px}.nedcap-pool-form h3{margin-top:0!important}.nedcap-pool-form label{display:block;margin-top:10px}.nedcap-pool-form input,.nedcap-pool-form select{width:100%;margin-top:6px}.nedcap-pool-import-rows{display:grid;gap:8px;margin:10px 0}.nedcap-pool-import-row{display:grid;grid-template-columns:1fr 1fr 86px;gap:8px}.nedcap-pool-import-row button{min-height:40px!important;padding:0 10px!important}
@media(max-width:1200px){.nedcap-pool-layout{grid-template-columns:1fr}.nedcap-pool-stats{grid-template-columns:1fr 1fr}.nedcap-pool-toolbar{grid-template-columns:1fr}.nedcap-pool-products{max-height:none}.nedcap-pool-import-row{grid-template-columns:1fr}}


/* v1.5.1 product pool professional redesign */
.nedcap-pool-workspace-card,.nedcap-pool-workspace-card *{box-sizing:border-box}.nedcap-pool-workspace-card{overflow:hidden;background:radial-gradient(circle at top left,rgba(34,211,238,.10),transparent 36%),rgba(7,17,31,.82)!important}.nedcap-pool-tabs{position:sticky;top:0;z-index:7;padding:12px;border:1px solid rgba(125,211,252,.12);border-radius:20px;background:rgba(7,17,31,.82);backdrop-filter:blur(12px)}.nedcap-pool-tabs button{min-height:54px;padding:0 18px;border-radius:28px;background:linear-gradient(180deg,rgba(15,31,52,.92),rgba(8,18,32,.92));box-shadow:0 12px 25px rgba(0,0,0,.18);transition:.18s ease}.nedcap-pool-tabs button:hover{transform:translateY(-1px);border-color:rgba(250,204,21,.42)}.nedcap-pool-tabs button.is-active{background:linear-gradient(135deg,rgba(34,211,238,.22),rgba(250,204,21,.16));box-shadow:0 15px 30px rgba(34,211,238,.10)}.nedcap-pool-stats{gap:14px}.nedcap-pool-stats div{border-radius:20px;padding:17px;background:linear-gradient(180deg,rgba(15,31,52,.78),rgba(8,18,32,.75));box-shadow:0 13px 28px rgba(0,0,0,.16)}.nedcap-pool-layout{grid-template-columns:minmax(0,1fr) minmax(360px,420px);gap:18px;align-items:start;overflow:hidden}.nedcap-pool-main{min-width:0}.nedcap-pool-toolbar{grid-template-columns:minmax(0,1fr) 138px 138px 100px;background:rgba(2,8,18,.28);border:1px solid rgba(125,211,252,.12);border-radius:18px;padding:12px}.nedcap-pool-toolbar input{border-radius:12px!important}.nedcap-pool-toolbar button{min-height:42px!important;border-radius:12px!important;font-weight:900!important;white-space:normal!important;line-height:1.1!important}.nedcap-pool-products{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:16px;max-height:calc(100vh - 430px);min-height:360px;padding:10px;border:1px solid rgba(125,211,252,.12);border-radius:20px;background:rgba(2,8,18,.25)}.nedcap-pool-product{border-radius:20px;padding:10px;box-shadow:0 12px 26px rgba(0,0,0,.18)}.nedcap-pool-img{height:138px;border-radius:16px}.nedcap-pool-product strong{font-size:14px}.nedcap-pool-product small{font-size:12px}.nedcap-pool-side{min-width:0;position:sticky;top:92px;max-height:calc(100vh - 115px);overflow:auto;padding-right:2px}.nedcap-pool-form{border-radius:20px;padding:16px;background:linear-gradient(180deg,rgba(15,31,52,.82),rgba(8,18,32,.78));box-shadow:0 14px 30px rgba(0,0,0,.14)}.nedcap-pool-form h3{font-size:17px!important}.nedcap-pool-form input,.nedcap-pool-form select{border-radius:12px!important;min-height:42px!important}.nedcap-pool-form button{min-height:44px!important;border-radius:12px!important;font-weight:900!important;white-space:normal!important;line-height:1.15!important}.nedcap-pool-form .nedcap-editor-actions{display:grid!important;grid-template-columns:1fr;gap:9px!important}.nedcap-pool-import-rows{gap:10px}.nedcap-pool-import-row{grid-template-columns:1fr;gap:8px;padding:12px;border:1px solid rgba(125,211,252,.12);background:rgba(2,8,18,.24);border-radius:16px}.nedcap-pool-import-row button{width:100%;min-height:42px!important;color:#82eaff!important;border-color:rgba(125,211,252,.45)!important;background:rgba(34,211,238,.08)!important}@media(max-width:1300px){.nedcap-pool-layout{grid-template-columns:1fr}.nedcap-pool-side{position:static;max-height:none}.nedcap-pool-products{max-height:none}.nedcap-pool-toolbar{grid-template-columns:1fr 1fr}.nedcap-pool-stats{grid-template-columns:1fr 1fr}}@media(max-width:720px){.nedcap-pool-toolbar,.nedcap-pool-stats{grid-template-columns:1fr}.nedcap-pool-products{grid-template-columns:1fr 1fr}.nedcap-pool-tabs button{width:calc(50% - 6px)}}@media(max-width:480px){.nedcap-pool-products{grid-template-columns:1fr}.nedcap-pool-tabs button{width:100%}}

/* v1.5.2 direct tier send polish */
#nedcap-pool-send-tier{background:linear-gradient(135deg,#22d3ee,#2563eb)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 12px 24px rgba(37,99,235,.22)!important}

/* Global gallery mode */
#nedcap-pool-rule-form,#nedcap-pool-action-form,#nedcap-pool-reprice-tier,#nedcap-pool-remove-neutral{display:none!important}

/* v1.7.4 compact square Global Product Gallery — visual only */
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-products{
  grid-template-columns:repeat(auto-fill,minmax(128px,1fr))!important;
  gap:10px!important;
  padding:8px!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-product{
  min-width:0!important;
  padding:7px!important;
  border-radius:13px!important;
  display:flex!important;
  flex-direction:column!important;
  box-shadow:0 8px 18px rgba(0,0,0,.16)!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-img{
  height:auto!important;
  aspect-ratio:1/1!important;
  border-radius:10px!important;
  margin-bottom:7px!important;
  background:rgba(2,8,18,.72)!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-img img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  padding:4px!important;
  box-sizing:border-box!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-product strong{
  font-size:11.5px!important;
  line-height:1.25!important;
  min-height:29px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  word-break:break-word!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-product small{
  font-size:10px!important;
  line-height:1.25!important;
  margin-top:4px!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-product .nedcap-row-actions,
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:5px!important;
  margin-top:auto!important;
  padding-top:7px!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-product button,
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-product .nedcap-row-actions button{
  min-height:28px!important;
  padding:0 6px!important;
  border-radius:8px!important;
  font-size:10px!important;
  line-height:1.1!important;
}
#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-check{
  width:23px!important;height:23px!important;right:7px!important;top:7px!important;font-size:11px!important;
}
@media(min-width:1600px){#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-products{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important}}
@media(max-width:720px){#nedcap-root [data-nedcap-panel="product-pools"] .nedcap-pool-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
