/* GODPM SHOP v16: clean admin layout, stable table scrolling, clearer puzzle and limit notices. */
.admin-shell{background:#070a10;color:#edf2f8}
.admin-shell .admin-page-main{display:block!important;max-width:1280px!important;width:calc(100% - 32px)!important;min-width:0!important;margin:0 auto!important;padding:24px 0 48px!important;overflow:visible!important;box-sizing:border-box}
.admin-shell .admin-page-main *{box-sizing:border-box}
.admin-shell .admin-site-header{position:relative;z-index:20}
.admin-shell .admin-page-main>.panel,.admin-shell .admin-page-main .panel{display:block;position:relative;min-width:0;width:100%;max-width:100%;margin:16px 0;padding:22px;background:linear-gradient(145deg,#121a26 0%,#0b111a 100%);border:1px solid #2a3749;border-radius:16px;color:#edf2f8;box-shadow:0 14px 36px #0002;overflow:visible}
.admin-shell .admin-page-main h1,.admin-shell .admin-page-main h2,.admin-shell .admin-page-main h3{color:#f5f7fb;line-height:1.7;margin-top:0;overflow-wrap:anywhere}
.admin-shell .admin-page-main h2{font-size:19px;margin-bottom:14px}
.admin-shell .admin-page-main p,.admin-shell .admin-page-main small,.admin-shell .admin-page-main label{line-height:1.9}
.admin-shell .admin-nav{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px!important;margin:16px 0 22px!important;padding:12px!important;border:1px solid #263345!important;border-radius:15px!important;background:#0b111a!important;overflow:visible}
.admin-shell .admin-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px!important;border:1px solid #2c394c!important;border-radius:10px!important;background:#111b28!important;color:#d1dae7!important;font-size:12px!important;line-height:1.6;white-space:normal;overflow-wrap:anywhere;text-decoration:none;transition:background .15s,border-color .15s}
.admin-shell .admin-nav a:hover,.admin-shell .admin-nav a.active{background:#652033!important;border-color:#f04c66!important;color:#fff!important}
.admin-shell .admin-page-main .stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 18px!important}
.admin-shell .admin-page-main .stat{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;min-height:94px;padding:17px!important;border:1px solid #2a3749!important;border-radius:14px!important;background:linear-gradient(145deg,#141e2b,#0b1119)!important;color:#ecf1f8!important;overflow-wrap:anywhere}
.admin-shell .admin-page-main .stat small{color:#a8b4c5!important;font-size:12px}.admin-shell .admin-page-main .stat b{font-size:clamp(15px,1.5vw,22px);line-height:1.6;overflow-wrap:anywhere}
.admin-shell .admin-page-main .section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;min-width:0}
.admin-shell .admin-page-main .table-wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:14px 0 2px!important;overflow-x:auto!important;overflow-y:hidden!important;border:1px solid #2b394b;border-radius:12px;background:#0a1018;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.admin-shell .admin-page-main table.table{display:table!important;width:100%!important;min-width:760px!important;max-width:none!important;margin:0!important;border-collapse:separate!important;border-spacing:0!important;table-layout:auto!important;color:#eaf0f8!important;font-size:12px;line-height:1.9}
.admin-shell .admin-page-main .table thead{display:table-header-group!important}
.admin-shell .admin-page-main .table tbody{display:table-row-group!important}
.admin-shell .admin-page-main .table tr{display:table-row!important}
.admin-shell .admin-page-main .table th,.admin-shell .admin-page-main .table td{display:table-cell!important;position:static!important;height:auto!important;padding:12px 13px!important;vertical-align:middle!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal;line-height:1.9;border-bottom:1px solid #273447!important}
.admin-shell .admin-page-main .table th{background:#172333!important;color:#e7edf6!important;font-weight:800;white-space:nowrap!important}
.admin-shell .admin-page-main .table tbody tr:nth-child(even){background:#ffffff04}
.admin-shell .admin-page-main .table tbody tr:hover{background:#f1f5ff08}
.admin-shell .admin-page-main .table tbody tr:last-child td{border-bottom:0!important}
.admin-shell .admin-page-main .table td .btn{margin:2px 0;white-space:nowrap}
.admin-shell .admin-page-main .table td form{display:inline-flex;vertical-align:middle;max-width:100%;margin:2px;gap:6px;flex-wrap:wrap}
.admin-shell .admin-page-main .field,.admin-shell .admin-page-main input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.admin-shell .admin-page-main textarea,.admin-shell .admin-page-main select{width:100%;min-width:0;max-width:100%;min-height:42px;padding:10px 12px;background:#090f17!important;color:#eff3f9!important;border:1px solid #344258!important;border-radius:10px!important;box-shadow:none!important;line-height:1.8}
.admin-shell .admin-page-main textarea{min-height:90px;resize:vertical}
.admin-shell .admin-page-main .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 15px;align-items:start}
.admin-shell .admin-page-main .form-row{min-width:0;margin:0 0 12px}
.admin-shell .admin-page-main .actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:13px}
.admin-shell .admin-page-main .actions form{display:inline-flex;max-width:100%;margin:0}
.admin-shell .admin-page-main .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;min-height:39px;padding:9px 14px;border-radius:10px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;text-decoration:none}
.admin-shell .admin-page-main .btn:disabled{opacity:.45;cursor:not-allowed}
.admin-shell .admin-page-main .notice,.admin-shell .admin-page-main .alert{max-width:100%;line-height:2;overflow-wrap:anywhere}
.admin-shell .admin-page-main .muted{color:#9eacbf!important}
.admin-shell .admin-page-main code{overflow-wrap:anywhere}
.admin-shell .gds-kyc-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-shell .gds-kyc-admin-grid>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px;border:1px solid #2a394d;border-radius:11px;background:#0c131d;overflow-wrap:anywhere}
.admin-shell .gds-kyc-admin-grid small{color:#a4b1c4}.admin-shell .gds-kyc-admin-grid b{overflow-wrap:anywhere;line-height:1.8}
.gds-wallet-limits{line-height:2.2!important;overflow-wrap:anywhere}
.gds-wallet-limits small{color:#aab5c5}
/* Retina-sized puzzle assets with aspect-ratio locking so board and piece remain aligned. */
.gds-puzzle{max-width:900px;margin:20px auto!important;padding:18px!important;border:1px solid #344154!important;border-radius:16px!important;background:linear-gradient(145deg,#0d1520,#080d14)!important;box-shadow:0 10px 28px #0003}
.gds-puzzle-title{gap:12px;margin-bottom:14px!important}.gds-puzzle-title b{font-size:14px!important;color:#f3f6fb}.gds-puzzle-title span,.gds-puzzle-note{font-size:12px!important;line-height:1.9;color:#bac5d5!important}
.gds-puzzle-track{width:100%!important;height:auto!important;aspect-ratio:600 / 122!important;max-width:860px!important;margin:0 auto!important;border-radius:12px!important;border:1px solid #55677f!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:inset 0 0 0 1px #fff1,0 8px 20px #0003;overflow:hidden!important}
.gds-puzzle-track:after{background:linear-gradient(0deg,#02060b12,#ffffff04 50%,#02060b12)!important}
.gds-puzzle-piece{top:50%!important;transform:translateY(-50%)!important;width:7.6666667%!important;height:auto!important;aspect-ratio:1 / 1!important;border:2px solid #fff!important;border-radius:9px!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:0 0 0 1px #07101a,0 5px 18px #000a,0 0 18px #ff244970!important}
.gds-puzzle-piece.is-dragging{filter:brightness(1.15) drop-shadow(0 0 5px #ff7488)!important}
.gds-puzzle-range{height:9px!important;margin:15px 0 7px!important;accent-color:#fa4261!important}
.gds-puzzle-note{display:block;margin-top:7px!important}
@media(max-width:900px){.admin-shell .admin-page-main .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-shell .gds-kyc-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-shell .admin-page-main .panel{padding:18px}}
@media(max-width:600px){.admin-shell .admin-page-main{width:calc(100% - 20px)!important;padding:14px 0 32px!important}.admin-shell .admin-page-main>.panel,.admin-shell .admin-page-main .panel{padding:14px!important;margin:12px 0;border-radius:13px}.admin-shell .admin-page-main h2{font-size:17px}.admin-shell .admin-nav{padding:8px!important;gap:6px!important;margin:11px 0 16px!important}.admin-shell .admin-nav a{flex:1 1 auto;min-height:36px;padding:7px 9px!important;font-size:11px!important}.admin-shell .admin-page-main .stats{gap:8px!important}.admin-shell .admin-page-main .stat{min-height:82px;padding:12px!important}.admin-shell .admin-page-main .stat b{font-size:15px}.admin-shell .admin-page-main .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:0}.admin-shell .gds-kyc-admin-grid{grid-template-columns:minmax(0,1fr)}.admin-shell .admin-page-main .section-head{align-items:flex-start}.admin-shell .admin-page-main .actions{align-items:stretch}.admin-shell .admin-page-main .actions>.btn,.admin-shell .admin-page-main .actions>form,.admin-shell .admin-page-main .actions>form .btn{flex:1 1 auto}.gds-puzzle{padding:11px!important}.gds-puzzle-title{align-items:flex-start;flex-direction:column;gap:3px}.gds-puzzle-track{border-radius:9px!important}.gds-puzzle-piece{border-radius:5px!important;border-width:1.5px!important}.gds-puzzle-note{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.admin-shell *,.gds-puzzle *{transition:none!important;animation:none!important}}


/* V17: mobile image/layout hardening and account-contained identity flow. */
[hidden]{display:none!important}
body.store-shell{overflow-x:hidden!important}
body.store-shell img{max-width:100%;height:auto}
.godpm-page-main,.godpm-page-main *,.product-detail-layout,.checkout-layout{min-width:0}
.godpm-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important}
.godpm-product-card{min-width:0!important;max-width:100%!important}
.godpm-product-image{display:grid!important;place-items:center!important;width:100%!important;min-width:0!important;aspect-ratio:4/3!important;height:auto!important;min-height:0!important;overflow:hidden!important;background:#0b1018!important}
.godpm-product-image>img{display:block;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;object-fit:contain!important;object-position:center!important;padding:7px!important;transform:none!important;filter:none!important;image-rendering:auto!important}
.godpm-product-fallback{width:100%;height:100%;min-height:0!important;display:grid;align-content:center;justify-items:center;gap:8px;padding:16px;text-align:center;background:radial-gradient(circle at 70% 20%,#f02f5020,transparent 45%),linear-gradient(145deg,#131c29,#080d14);color:#fff;overflow-wrap:anywhere}
.godpm-product-fallback>span{display:grid;place-items:center;width:52px;height:52px;border:1px solid #ff506e75;border-radius:15px;background:#f02f5015;color:#ff6d85;font-size:21px;font-weight:900}
.godpm-product-fallback>small{color:#c1cad7;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.product-detail-image{width:100%;min-width:0;min-height:0!important;max-height:none!important;aspect-ratio:4/3;height:auto!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:#0b1018!important}
.product-detail-image>img{position:relative!important;inset:auto!important;display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important;padding:10px!important;transform:none!important}
.product-detail-placeholder{position:relative;inset:auto;display:grid;place-items:center;align-content:center;gap:10px;width:100%;height:100%;min-height:100%;padding:18px;background:radial-gradient(circle at 70% 20%,#f02f5020,transparent 45%),linear-gradient(145deg,#131c29,#080d14);color:#fff;text-align:center;overflow-wrap:anywhere}
.product-detail-placeholder b{color:#e8edf5;font-size:13px}
.product-detail-placeholder .placeholder-star-icon{width:68px;height:68px;fill:#ffc84a;stroke:#ffdf83;stroke-width:1.1}
.godpm-hero-visual,.godpm-about-visual,.godpm-category-tile{min-width:0}
.godpm-hero-visual>img,.godpm-about-visual>img{max-width:100%;image-rendering:auto}
.gds-account-section-head{margin-bottom:18px!important}
.gds-account-kyc-content{min-width:0;width:100%}
.gds-account-kyc-content .checkout-layout{grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);align-items:start}
.gds-account-kyc-content .gds-kyc-hero,.gds-account-kyc-content .gds-kyc-grid,.gds-account-kyc-content .gds-kyc-warning{max-width:100%;overflow-wrap:anywhere}
.gds-account-kyc-content input,.gds-account-kyc-content select,.gds-account-kyc-content textarea{max-width:100%;min-width:0}
.godpm-security-grid{grid-template-columns:minmax(0,1fr)!important}
@media(max-width:900px){
 .godpm-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .godpm-product-image{aspect-ratio:4/3!important}
 .godpm-product-content{min-width:0!important}
 .godpm-hero-visual>img{object-position:25% center}
 .gds-account-kyc-content .checkout-layout{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
 .container{width:calc(100% - 24px)!important;max-width:none!important}
 .godpm-page-main{padding-top:12px!important;padding-bottom:34px!important}
 .godpm-hero-v12{min-height:300px!important;height:auto!important;border-radius:17px!important}
 .godpm-hero-v12 .godpm-hero-copy{width:100%!important;max-width:none!important;padding:28px 20px!important}
 .godpm-hero-v12 .godpm-hero-visual{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:.56!important}
 .godpm-hero-v12 .godpm-hero-visual>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:28% center!important;padding:0!important}
 .godpm-hero-v12 .godpm-hero-copy h1{font-size:clamp(28px,8vw,38px)!important;line-height:1.45!important;overflow-wrap:anywhere}
 .godpm-hero-v12 .godpm-hero-copy>p{font-size:13px!important;line-height:2!important}
 .godpm-hero-v12 .godpm-hero-actions{flex-wrap:wrap!important;gap:8px!important}
 .godpm-hero-v12 .godpm-hero-actions>.btn{flex:1 1 135px;min-width:0}
 .godpm-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .godpm-product-card{border-radius:12px!important}
 .godpm-product-image{aspect-ratio:1/1!important;border-radius:10px 10px 0 0!important}
 .godpm-product-image>img{padding:7px!important;object-fit:contain!important}
 .godpm-product-content{padding:10px!important;gap:5px}
 .godpm-product-content h3{font-size:12px!important;line-height:1.8!important;min-height:0!important}
 .godpm-product-content p{font-size:10px!important;line-height:1.8!important;min-height:0!important}
 .godpm-product-bottom{gap:8px!important;align-items:stretch!important;flex-direction:column!important}
 .godpm-price{font-size:12px!important;overflow-wrap:anywhere}
 .godpm-product-buy-btn{width:100%!important;min-height:40px!important;justify-content:center!important}
 .godpm-categories-v14{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .godpm-category-tile{grid-template-columns:38px minmax(0,1fr) 18px!important;min-width:0!important;min-height:105px!important;gap:8px!important;padding:12px 10px!important}
 .godpm-category-tile-copy{min-width:0!important}
 .godpm-category-tile-copy b,.godpm-category-tile-copy small{overflow-wrap:anywhere!important}
 .godpm-about-v12{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 .godpm-about-visual{width:100%;min-height:235px!important;padding:24px 14px!important}
 .godpm-about-visual .godpm-about-visual-chip{font-size:8px!important;padding:6px 7px!important}
 .godpm-about-visual .godpm-about-visual-chip.chip-one{right:10px!important;top:10px!important}
 .godpm-about-visual .godpm-about-visual-chip.chip-two{left:10px!important;bottom:10px!important}
 .godpm-about-visual img{max-width:100%!important;object-fit:contain!important}
 .godpm-about-copy{min-width:0!important}
 .godpm-security-grid{grid-template-columns:minmax(0,1fr)!important}
 .product-detail-layout,.checkout-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .product-detail-image{aspect-ratio:1/1!important;border-radius:13px!important}
 .product-detail-image>img{object-fit:contain!important;padding:9px!important}
 .product-detail-panel,.product-purchase-panel{padding:14px!important;min-width:0!important}
 .gds-account-section-head{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
 .gds-account-kyc-content .gds-kyc-hero{padding:18px 14px!important}
 .gds-account-kyc-content .gds-kyc-grid{grid-template-columns:minmax(0,1fr)!important}
 .gds-account-kyc-content .panel{padding:14px!important}
 .gds-account-kyc-content .gds-puzzle{padding:10px!important}
 .gds-account-kyc-content .gds-puzzle-track{aspect-ratio:600/122!important}
 .gds-account-kyc-content .gds-consent-line{align-items:flex-start!important;gap:9px!important}
 .gds-account-kyc-content .gds-consent-line span{min-width:0!important;overflow-wrap:anywhere!important}
 .account-actions{align-items:stretch!important}
 .account-actions>.btn,.account-actions>form,.account-actions>form>.btn{flex:1 1 100%!important;width:100%!important}
}
@media(max-width:380px){
 .godpm-products-grid,.godpm-categories-v14{grid-template-columns:minmax(0,1fr)!important}
 .godpm-product-image{aspect-ratio:1.25/1!important}
 .godpm-product-content h3{font-size:14px!important}
 .godpm-product-content p{font-size:11px!important}
 .godpm-product-bottom{flex-direction:row!important;align-items:center!important}
 .godpm-product-buy-btn{width:auto!important;flex:0 0 auto!important}
}
