/* dashboard.html page styles (moved out of the page). */
.cat-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.cat-bar .field { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin-top: 16px; }
.cat-game { display: block; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: inherit; }
.cat-game:hover, .cat-game.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,45,245,.12); }
.cat-game .art { aspect-ratio: 1; background: #eef1f8; display: grid; place-items: center; overflow: hidden; }
.cat-game .art img { width: 100%; height: 100%; object-fit: cover; }
.cat-game .art .ph { font-size: 26px; font-weight: 900; color: var(--primary); }
.cat-game .nm { padding: 8px 10px 10px; font-weight: 700; font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.cat-products { margin-top: 18px; }
.cat-products .head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.cat-products .head img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.cat-page-head { display: flex; gap: 16px; align-items: center; margin: 14px 0 6px; }
.cat-page-head .art { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: #eef1f8; display: grid; place-items: center; flex: none; }
.cat-page-head .art img { width: 100%; height: 100%; object-fit: cover; }
.cat-page-head .art .ph { font-size: 32px; font-weight: 900; color: var(--primary); }
.cat-page-head h2 { font-size: 22px; margin: 0; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.item-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.item-card:hover { border-color: var(--primary); }
.item-card .top { display: flex; gap: 10px; align-items: center; }
.item-card .top .pimg { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.item-card .top .ph { width: 44px; height: 44px; border-radius: 12px; background: #eef1f8; display: grid; place-items: center; font-weight: 900; color: var(--primary); flex: none; }
.item-card .nm { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.item-card .price { font-size: 17px; font-weight: 800; }
.item-card .price small { font-size: 11.5px; font-weight: 600; color: var(--text2); margin-left: 4px; }
.item-card .price s { font-size: 12px; color: var(--light); margin-left: 6px; font-weight: 600; }
.item-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.item-card code { font-family: var(--mono); font-size: 11.5px; background: #f1f3fb; padding: 1px 6px; border-radius: 6px; }
a.cat-game { text-decoration: none; }
.pimg { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 8px; background: #eef1f8; }
@media (max-width: 520px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

/* ── Provider cards ── */
.conn-intro { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.conn-intro h2 { font-size: 18px; margin-bottom: 2px; }
.conn-intro p { max-width: 640px; }
.conn-progress { min-width: 220px; }
.conn-progress .lbl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.conn-progress .bar { height: 8px; border-radius: 100px; background: #e4e8f3; overflow: hidden; }
.conn-progress .bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.pcard.is-on { border-color: #bfe6cc; }
.pcard.is-warn { border-color: #f3c6c6; }
.pcard.is-soon { background: #fafbfe; border-style: dashed; }
.pcard.is-soon .plogo, .pcard.is-soon .ttl p { opacity: .75; }
.badge.soon { background: #fff4e0; color: #b45309; }
.pcard .top { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 0; }
.plogo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px; flex: none; box-shadow: 0 8px 18px rgba(23,35,59,.15); }
.plogo.has-img { background: #fff; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 6px 14px rgba(23,35,59,.1); }
.plogo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plogo.fit-crop img { transform: scale(1.12); }
.plogo.fit-native img { width: 32px; height: 32px; object-fit: contain; }
.pcard .ttl { flex: 1; min-width: 0; }
.pcard .ttl h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard .ttl p { font-size: 13px; color: var(--text2); margin-top: 3px; }
.pchips { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 20px 0; }
.pchips span { font-size: 11.5px; font-weight: 600; color: var(--text2); background: #f1f3fa; border-radius: 100px; padding: 3px 10px; }
.pbody { padding: 14px 20px 4px; flex: 1; }
.acct { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fbfcff; }
.acct .row1 { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.acct .nm { font-weight: 700; font-size: 14px; }
.acct .sub { font-size: 12px; color: var(--text2); }
.acct dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.acct dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--light); }
.acct dd { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .err { margin-top: 8px; font-size: 12px; color: var(--red); background: #fdeeee; border-radius: 8px; padding: 6px 9px; }
.acct .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pempty { border: 1.5px dashed var(--border); border-radius: 14px; padding: 16px; text-align: center; color: var(--text2); font-size: 13px; }
.pfoot { display: flex; gap: 10px; align-items: center; padding: 14px 20px 18px; }
.pfoot a.site { font-size: 12.5px; font-weight: 600; margin-left: auto; }
.setup-steps { list-style: none; counter-reset: st; display: grid; gap: 10px; margin: 6px 0 16px; }
.setup-steps li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13.5px; color: var(--text2); }
.setup-steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 8px; background: rgba(91,45,245,.1); color: var(--primary); font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
.setup-steps b { color: var(--text); }
.modal.wide { max-width: 560px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .acct dl { grid-template-columns: 1fr 1fr; } .conn-progress { width: 100%; } }

/* ── Two-panel layout: sidebar (left) + content (right) ── */
body { background: var(--bg); }
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #0e0b26; color: #e9e6ff; border-right: 1px solid rgba(255,255,255,.06); z-index: 1000; }
.side .brand { color: #fff; padding: 20px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side .brand small { color: #8a84b8; }
.side nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.side .grp { font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: #6f6a9c; margin: 14px 10px 6px; }
.side .grp:first-child { margin-top: 2px; }
.side nav button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-radius: 12px; padding: 9px 10px; margin-bottom: 2px; cursor: pointer; color: #cfcbef; font: inherit; }
.side nav button:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav button .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #b9b2ff; }
.side nav button .ic svg { width: 18px; height: 18px; }
.side nav button b { display: block; font-size: 13.5px; font-weight: 700; color: inherit; }
.side nav button small { display: block; font-size: 11.5px; color: #8a84b8; line-height: 1.3; }
.side nav button.active { background: linear-gradient(135deg, rgba(124,92,255,.32), rgba(91,45,245,.18)); color: #fff; box-shadow: inset 0 0 0 1px rgba(167,139,250,.35); }
.side nav button.active .ic { background: linear-gradient(135deg, #8b5cff, #5b2df5); color: #fff; }
.side nav button.active small { color: #c9c2ff; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.who { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.who .av { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #8b5cff, #3b82f6); color: #fff; font-weight: 900; display: grid; place-items: center; flex: none; }
.who .nm { font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .em { font-size: 11.5px; color: #8a84b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who > div:last-child { min-width: 0; }
.side-links { display: flex; gap: 4px; margin-top: 10px; }
.side-links a { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: #b9b4e0; padding: 7px 6px; border-radius: 9px; border: 1px solid rgba(255,255,255,.08); }
.side-links a:hover { color: #fff; background: rgba(255,255,255,.05); }

.main { min-width: 0; display: flex; flex-direction: column; }
.main-head { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(244,246,252,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.main-head h1 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.main-head p { font-size: 12.5px; color: var(--text2); }
.main-head .chip { margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 12px; }
.main-head .chip span { font-size: 11px; font-weight: 700; color: var(--light); text-transform: uppercase; letter-spacing: .5px; }
.main-head .chip b { font-size: 15px; }
.burger { display: none; background: var(--surface); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer; flex: none; }
.main-body { padding: 24px 28px 60px; max-width: 1180px; width: 100%; }
.side-backdrop { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; }
  body.menu-open .side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  body.menu-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(14,11,38,.45); z-index: 950; }
  .burger { display: block; }
  .main-head { padding: 12px 16px; }
  .main-body { padding: 18px 14px 50px; }
  #stats { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) { .main-head .chip span { display: none; } .main-head p { display: none; } }
