/* GTANEX requested feature enhancements */
/* Three product cards per row + paging */
#card-grid, #productGrid, #products-grid, [data-product-grid], [data-product-host] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.gtanex-product-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px auto 0; }
.gtanex-product-pagination[hidden] { display: none !important; }
.gtanex-product-pagination button { min-width: 40px; height: 40px; padding: 0 13px; color: #dfe6ff; background: rgba(255,255,255,.045); border: 1px solid rgba(157,171,215,.2); border-radius: 10px; font-weight: 800; cursor: pointer; }
.gtanex-product-pagination button:hover:not(:disabled), .gtanex-product-pagination button.active { color: #fff; background: linear-gradient(135deg,#8b5cf6,#08b9db); border-color: transparent; }
.gtanex-product-pagination button:disabled { opacity: .38; cursor: not-allowed; }

/* Header cart retained after product-system refresh */
.gtanex-header-cart { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #f5f1ff; background: rgba(255,255,255,.04); border: 1px solid rgba(157,171,215,.18); border-radius: 11px; text-decoration: none; }
.gtanex-header-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gtanex-cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; display: none; align-items: center; justify-content: center; padding: 0 5px; color: #fff; background: linear-gradient(135deg,#8b5cf6,#08b9db); border: 2px solid #080a14; border-radius: 999px; font-size: 10px; font-weight: 900; }
.gtanex-cart-badge.visible { display: inline-flex; }

/* Automatic review slider */
body.nightify-home .review-grid { display: block !important; position: relative; overflow: visible; }
.gtanex-review-viewport { width: 100%; overflow: hidden; }
.gtanex-review-track { display: flex; gap: 16px; transition: transform .58s cubic-bezier(.2,.75,.25,1); will-change: transform; }
body.nightify-home .gtanex-review-track .review-card { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; }
.gtanex-review-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.gtanex-review-controls > button { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.045); border: 1px solid rgba(157,171,215,.2); border-radius: 50%; cursor: pointer; }
.gtanex-review-controls > button:disabled { opacity: .35; cursor: not-allowed; }
.gtanex-review-dots { display: flex; align-items: center; gap: 7px; }
.gtanex-review-dot { width: 8px !important; height: 8px !important; min-width: 8px; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: rgba(157,171,215,.34) !important; cursor: pointer; }
.gtanex-review-dot.active { width: 24px !important; background: linear-gradient(90deg,#8b5cf6,#08b9db) !important; }

/* Admin edit/copy/role UI */
.product-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product-form-actions > button { flex: 1 1 180px; }
.admin-copy-button { border: 1px solid rgba(139,92,246,.4); background: rgba(139,92,246,.12); color: #eee8ff; border-radius: 9px; padding: 9px 13px; font-weight: 800; cursor: pointer; }
.admin-role-badge, .user-role-badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 5px 10px; border: 1px solid rgba(148,163,184,.3); border-radius: 999px; color: #d7deef; background: rgba(148,163,184,.12); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.role-premium { color: #ffe18b !important; border-color: rgba(245,190,49,.45) !important; background: rgba(245,190,49,.13) !important; }
.role-vip { color: #f4c5ff !important; border-color: rgba(217,70,239,.45) !important; background: rgba(217,70,239,.13) !important; }
.role-moderator { color: #9cefff !important; border-color: rgba(6,182,212,.45) !important; background: rgba(6,182,212,.13) !important; }

/* Dashboard live warnings and copy controls */
.dashboard-warning-host { width: min(1180px, calc(100% - 32px)); display: grid; gap: 10px; margin: 14px auto 0; }
.dashboard-warning-host[hidden] { display: none; }
.dashboard-warning-card { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start; padding: 15px 16px; color: #fff4e6; background: linear-gradient(135deg,rgba(127,29,29,.88),rgba(124,45,18,.82)); border: 1px solid rgba(251,146,60,.42); border-radius: 13px; box-shadow: 0 16px 44px rgba(0,0,0,.22); }
.dashboard-warning-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #2b1100; background: #fb923c; border-radius: 10px; font-weight: 1000; }
.dashboard-warning-copy strong { display: block; margin-bottom: 4px; font-size: 13px; }
.dashboard-warning-copy p { margin: 0 0 5px; color: #ffedd5; font-size: 12px; line-height: 1.55; }
.dashboard-warning-copy small { color: #fdba74; font-size: 9px; }
.dashboard-warning-dismiss { width: 30px; height: 30px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; cursor: pointer; }
.profile-value-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.profile-value-actions strong { overflow-wrap: anywhere; }
.profile-copy-button { padding: 6px 9px; color: #dcd5ff; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35); border-radius: 8px; font-size: 9px; font-weight: 900; cursor: pointer; }
.header-user .user-role-badge { margin-inline: 2px; }

@media (max-width: 1050px) {
  #card-grid, #productGrid, #products-grid, [data-product-grid], [data-product-host] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.nightify-home .gtanex-review-track .review-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 720px) {
  #card-grid, #productGrid, #products-grid, [data-product-grid], [data-product-host] { grid-template-columns: 1fr !important; }
  body.nightify-home .gtanex-review-track .review-card { flex-basis: 100%; }
  .dashboard-warning-card { grid-template-columns: 34px 1fr; }
  .dashboard-warning-dismiss { position: absolute; top: 9px; right: 9px; }
  .profile-value-actions { align-items: flex-end; flex-direction: column; }
  .gtanex-product-pagination button { min-width: 36px; height: 36px; padding: 0 10px; }
}

/* Extra category links remain usable on wider and narrower headers */
.site-nav, .nx-nav { flex-wrap: wrap; }
.site-nav a, .nx-nav a { white-space: nowrap; }
@media (min-width: 1051px) {
  .site-nav, .nx-nav { column-gap: 14px !important; row-gap: 6px !important; }
  .site-nav a, .nx-nav a { font-size: 11px !important; }
}
