@media (max-width: 400px) {
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}
	.product-card {
		padding: 10px 6px !important;
		min-width: 0 !important;
		font-size: 12px !important;
	}
	.product-card-icon img {
		width: 32px !important;
		height: 32px !important;
	}
	.product-card-name {
		font-size: 12px !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		display: block !important;
	}
	.product-card-price {
		font-size: 12px !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		display: block !important;
	}
}

:root {
	--navy-900: #0b1b2b;
	--navy-800: #0f2942;
	--navy-700: #163a5a;
	--navy-600: #1f4a73;
	--teal-500: #14b8a6;
	--teal-600: #0d9488;
	--teal-300: #5eead4;
	--yellow-400: #fbbf24;
	--slate-100: #f1f5f9;
	--slate-200: #e2e8f0;
	--slate-300: #cbd5e1;
	--white: #ffffff;
	--muted: #94a3b8;

	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;

	--shadow-sm: 0 4px 14px rgba(2, 6, 23, 0.08);
	--shadow-md: 0 10px 25px rgba(2, 6, 23, 0.12);
	--shadow-lg: 0 20px 45px rgba(2, 6, 23, 0.18);

	--container: 1200px;
	--nav-height: 70px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; overflow-x: hidden; }
body {
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--slate-100);
	background: radial-gradient(1200px 800px at 80% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
				radial-gradient(1000px 700px at 0% 10%, rgba(251, 191, 36, 0.10), transparent 55%),
				var(--navy-900);
	line-height: 1.6;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1rem;
}

/* ================= Order Page Wrap ================= */

.order-page-wrap {
	padding-top: 10px;
	position: relative;
}

@media (max-width: 640px) {
	.order-page-wrap {
		padding-top: 10px;
	}
}

@media (max-width: 420px) {
	.order-page-wrap {
		padding-top: 10px;
	}
}


@media (max-width: 400px) {
	.product-grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}
}

/* Small devices: stack product card vertically so name can use more width */
@media (max-width: 480px) {
    .product-card {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .product-card-icon {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0;
    }

    .product-card-icon img {
        display: block !important;
        margin: 0 auto 6px !important;
        width: clamp(36px, 12vw, 56px) !important;
        height: auto !important;
    }

    .product-card-info {
        width: 100% !important;
        text-align: center !important;
    }

    .product-card-name {
        font-size: 13px !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        margin-bottom: 6px !important;
    }

    .product-card-price {
        font-size: 13px !important;
    }
}


.game-banner {
	background: linear-gradient(135deg, rgba(15,41,66,.92) 0%, rgba(22,58,90,.92) 100%);
	border-radius: 12px;
	padding: 18px;
	/* Add top spacing based on header height so banner never gets covered */
	margin-top: calc(var(--nav-height) + 28px);
	margin-bottom: 16px; 
	border: 1px solid rgba(94, 234, 212, 0.20);
	box-shadow: var(--shadow-sm);
	position: relative;
	z-index: 1;
}

.game-banner-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.game-banner-logo {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 6px 22px rgba(0,0,0,.35);
	flex-shrink: 0;
}

.game-banner-meta {
	min-width: 0;
}

.game-banner-title {
	font-size: 28px;
	font-weight: 600;
	margin: 8px 0 6px; /* add a bit of top spacing */
	color: var(--teal-300);
}

.game-banner-subtitle {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	margin-top: -2px;
}

.game-banner-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	font-size: 14px;
}

.game-banner-feature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	text-align: center;
}

.game-banner-feature-text {
	min-width: 0;
	line-height: 1.2;
}

@media (max-width: 640px) {
	.game-banner {
		padding: 14px;
	}

	.game-banner-inner {
		gap: 10px;
	}

	.game-banner-logo {
		width: 64px;
		height: 64px;
	}

	.game-banner-title {
		font-size: 22px;
		margin: 6px 0 6px; /* keep consistent spacing on mobile */
	}

	.game-banner-features {
		grid-template-columns: repeat(2, minmax(0, max-content));
		justify-content: center;
		gap: 10px 14px;
		font-size: 12.5px;
	}

	.game-banner-feature {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 420px) {
	.game-banner-logo {
		width: 58px;
		height: 58px;
	}

	.game-banner-title {
		font-size: 21px;
	}

	.game-banner-features {
		gap: 8px 12px;
		font-size: 12px;
	}
}

/* ================= Navbar ================= */
body.nav-open {
	overflow: hidden !important;
	height: 100vh;
	position: fixed;
	width: 100vw;
}

.site-header {
	position: fixed; /* fixed on all devices */
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 10000;
	backdrop-filter: blur(18px);
	background: rgba(11,27,43,.72);
	border-bottom: 1px solid rgba(255,255,255,.06);
	transition: background-color .25s ease, box-shadow .25s ease;
}

/* Ensure main content is pushed below the fixed header so it isn't hidden */
.main-content {
	padding-top: var(--nav-height);
}

.site-header.scrolled {
	background: rgba(11,27,43,.85);
	box-shadow: 0 4px 18px -4px rgba(0,0,0,.45);
	backdrop-filter: blur(22px) saturate(1.2);
}

/* Mobile performance: avoid expensive blur/repaints during scroll */
@media (max-width: 768px) {
	.site-header {
		backdrop-filter: none;
		/* Make header fixed on mobile so it follows while scrolling */
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		width: 100%;
		z-index: 10000;
	}

	.site-header.scrolled {
		backdrop-filter: none;
	}

	.mobile-drawer {
		backdrop-filter: none;
	}

	/* Push main content below fixed header so it is not hidden */
	.main-content {
		padding-top: var(--nav-height);
	}

	/* Home banner animation can cause continuous repaints on low-end devices */
	.banner-placeholder::before {
		animation: none;
	}
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	height: var(--nav-height);
}

.brand {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-weight: 600;
	letter-spacing: .3px;
}

.brand img {
	height: 34px;
	width: auto;
}

.main-nav {
	margin-left: auto;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 1.1rem;
}

.main-nav li {
	display: flex;
	align-items: center;
}

.main-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .55rem .55rem;
	font-weight: 500;
	font-size: .95rem;
	position: relative;
	color: var(--slate-100);
	border-radius: 8px;
	transition: color .35s ease;
	outline: none;
	border: none;
}

.main-nav a:focus-visible {
	outline: none;
	box-shadow: none;
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 4px;
	height: 2px;
	background: linear-gradient(90deg,var(--teal-500),var(--teal-300));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.65,.05,.36,1);
	border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
	transform: scaleX(1);
}

.main-nav a.active {
	color: var(--teal-300);
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: .45rem;
	margin-left: auto;
	border-radius: 10px;
	transition: background .3s ease;
}

.nav-toggle:hover {
	background: rgba(255,255,255,.06);
}

.nav-toggle .bar {
	display: block;
	width: 24px;
	height: 3px;
	background: var(--slate-100);
	margin: 4px 0;
	border-radius: 2px;
	transition: .4s;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer: sticky, full height, scrollable menu */
.mobile-drawer {
	position: fixed;
	top: var(--nav-height);
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	max-height: none;
	background: rgba(11,27,43,.95);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,.08);
	padding: 1rem 1.1rem 1.5rem;
	animation: slideDown .45s cubic-bezier(.19,1,.22,1);
	overflow-y: auto;
	z-index: 1002;
}

@keyframes slideDown {
	0% { opacity: 0; transform: translateY(-14px); }
	100% { opacity: 1; transform: translateY(0); }
}

.mobile-drawer nav ul {
	display: grid;
	gap: .2rem;
}

.mobile-drawer a {
	display: block;
	padding: .75rem .75rem;
	border-radius: 10px;
	font-weight: 500;
	font-size: .95rem;
	color: #f1f5f9;
}

.mobile-drawer a:hover {
	background: rgba(255,255,255,.07);
}

.mobile-drawer a.active {
	background: rgba(20,184,166,.14);
	color: var(--teal-300);
}

@media (max-width: 980px) {
	/*
	  Some browsers treat backdrop-filter as creating a containing block for
	  fixed-position descendants. Since the mobile drawer (#mobileNav) lives
	  inside the header, keep the header blur off on mobile/tablet widths so
	  the drawer can occupy full viewport height.
	*/
	.site-header,
	.site-header.scrolled {
		backdrop-filter: none;
	}

	.main-nav { display: none; }
	.nav-toggle { display: block; }
}

@media (max-width: 560px) {
	:root { --nav-height: 62px; }
	.brand img { height: 30px; }
}

/* ================= Invoice (Cek Status) - Minimal Motion ================= */
body.invoice-page .btn:hover {
	transform: none;
}

body.invoice-page .btn {
	transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

body.invoice-page .mobile-drawer {
	animation: none;
}

body.invoice-page .main-nav a::after {
	transition: none;
}

/* ================= Buttons ================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .7rem 1rem;
	border-radius: 12px;
	font-weight: 600;
	font-family: inherit;
	border: 1px solid transparent;
	transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
	cursor: pointer;
	font-size: .95rem;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn-primary {
	background: var(--teal-500);
	color: var(--white);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	box-shadow: var(--shadow-md);
}


.btn-ghost {
	background: transparent;
	border: 1.5px solid rgba(255,255,255,.14);
	color: var(--slate-100);
	transition: background .18s, border-color .18s, color .18s;
	border-radius: 8px;
	box-shadow: none;
}

.btn-ghost:hover, .btn-ghost:focus {
	background: rgba(255,255,255,.10);
	border-color: rgba(255,255,255,.14);
	color: var(--teal-500);
}

.logout-btn svg {
	display: inline-block;
	vertical-align: middle;
	color: currentColor;
}

/* Pastikan button logout di navbar desktop sejajar dengan link lainnya */
.main-nav .logout-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: .55rem .75rem !important;
	font-weight: 500 !important;
	font-size: .95rem !important;
	gap: 6px !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.btn.small {
	padding: .55rem .85rem;
	font-size: .85rem;
}

/* Match SMM-Panel dashboard button style */
.dashboard-btn {
	background: var(--teal-500);
	color: #fff;
	padding: 0.6rem 1.1rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-size: .93rem;
	line-height: 1.1;
	min-height: 40px;
	border: 1px solid var(--teal-600);
	box-shadow: none;
	font-family: inherit;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.dashboard-btn:hover {
	background: var(--teal-600);
	border-color: var(--teal-600);
	color: #fff;
}

.dashboard-btn:active {
	background: var(--teal-600);
}

.dashboard-btn:focus-visible {
	outline: 2px solid var(--teal-300);
	outline-offset: 2px;
}

.dashboard-btn::after,
.dashboard-btn::before {
	display: none;
	content: none;
}

@media (max-width: 980px) {
	.mobile-drawer .dashboard-btn {
		width: 100%;
		display: flex;
	}
}

/* ================= Main Content ================= */
.main-content {
	flex: 1 0 auto;
	padding: 2rem 0;
}

.site-footer {
	flex-shrink: 0;
}

.page-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 .5rem;
	letter-spacing: -.3px;
}

.page-subtitle {
	color: var(--slate-200);
	margin: 0 0 2rem;
}

/* ================= Banner Section ================= */
.banner-section {
	margin-bottom: 2rem;
}

.banner-placeholder {
	width: 100%;
	height: 280px;
	background: linear-gradient(135deg, rgba(20,184,166,.08) 0%, rgba(20,184,166,.03) 100%);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 18px;
	font-weight: 600;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.banner-placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 30%, rgba(20,184,166,.14) 0%, transparent 70%);
	animation: pulse 8s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

.banner-placeholder > * {
	position: relative;
	z-index: 1;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: .85; }
	50% { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 768px) {
	.banner-placeholder {
		height: 180px;
		font-size: 16px;
	}
}

/* ================= Section Title ================= */
.section-header {
	/* Use header height so it is always below the fixed navbar */
	margin-top: calc(var(--nav-height) + 28px);
	margin-bottom: 1.5rem;
	padding-top: 4px;
}

@media (max-width: 768px) {
	.section-header { margin-top: calc(var(--nav-height) + 22px); }
}

.section-title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin: 0 0 .5rem;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.section-title::before {
	content: '🔥';
	font-size: 1.75rem;
}

.muted {
	color: var(--muted);
}

/* ================= Game Grid ================= */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}

@media (max-width: 1024px) {
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

@media (max-width: 640px) {
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: .8rem;
	}
}

/* Game Card */
a.card {
	display: block;
	color: inherit;
}

a.card .game-card {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: transform .2s cubic-bezier(.4, 0, .2, 1), border-color .2s cubic-bezier(.4, 0, .2, 1), background-color .2s cubic-bezier(.4, 0, .2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
	/* Performance: skip painting offscreen cards (Chrome/Android) */
	content-visibility: auto;
	contain-intrinsic-size: 220px 260px;
}

a.card .game-thumb {
	width: 100%;
	aspect-ratio: 1;
	background: linear-gradient(135deg, rgba(20,184,166,.15) 0%, rgba(20,184,166,.05) 100%);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	position: relative;
}

/* a.card .game-thumb::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background-image: url('https://storage.acispayment.com/images/favicon.png');
	background-size: contain;
	background-repeat: no-repeat;
	opacity: .50;
	pointer-events: none;
} */

.game-thumb.has-img::after { display: none !important; }

a.card .game-info {
	padding: 12px;
	flex: 1;
}

a.card .game-name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	margin-bottom: 4px;
}

a.card .game-id {
	font-size: 11px;
	color: var(--muted);
}

a.card .game-card:hover {
	transform: translateY(-2px);
	border-color: rgba(20,184,166,.3);
}

/* Touch devices: avoid hover transform work while scrolling */
@media (hover: none) {
	a.card .game-card:hover {
		transform: none;
	}
}

/* Order Cards & Steps - Modern Clean Style */
.order-step {
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(94,234,212,.15);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .3s ease;
}

.order-step:hover {
	border-color: rgba(94,234,212,.25);
}

.order-step + .order-step { margin-top: 18px; }

.step-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	background: rgba(20,184,166,.08);
	border-bottom: 1px solid rgba(94,234,212,.12);
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--teal-500);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

.step-content { padding: 20px; }

/* Payment Method (Step 3) - Card Selector */
.payment-method-toggle {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.payment-option {
	appearance: none;
	border: 1px solid rgba(94,234,212,.15);
	background: rgba(255,255,255,.03);
	border-radius: 12px;
	padding: 14px;
	width: 100%;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
	position: relative;
	overflow: hidden;
	font-family: inherit;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: auto;
	font-kerning: normal;
}

.payment-option:hover {
	border-color: rgba(94,234,212,.28);
	background: rgba(255,255,255,.04);
}

.payment-option:active {
	transform: translateY(1px);
}

.payment-option.is-disabled {
	opacity: .55;
	cursor: not-allowed;
}

.payment-option.is-locked {
	opacity: .55;
	cursor: not-allowed;
	border-style: dashed;
}

.payment-radio {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2px solid rgba(94,234,212,.30);
	flex-shrink: 0;
	position: relative;
}

.payment-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(15,41,66,.92);
	border: 1px solid rgba(255,255,255,.08);
	color: var(--slate-100);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.payment-icon img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.payment-details {
	min-width: 0;
	flex: 1;
}

.payment-details h4 {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
	color: var(--slate-100);
	letter-spacing: 0;
	font-kerning: normal;
	text-rendering: auto;
}

.payment-title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.payment-limit {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 500;
	color: #dc2626;
	font-kerning: normal;
	text-rendering: auto;
}

.payment-details p {
	font-size: 12px;
	margin-top: 4px;
	color: var(--muted);
	line-height: 1.35;
}

.payment-option.selected {
	border-color: var(--teal-500);
	box-shadow: 0 0 0 3px rgba(20,184,166,.16);
}

.payment-option.selected .payment-radio {
	border-color: var(--teal-500);
}

.payment-option.selected .payment-radio::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--teal-500);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Account fields grid (Order Step 1) */
.account-fields {
	min-width: 0;
}

.account-fields.is-one {
	grid-template-columns: 1fr;
}

.account-fields.is-two {
	grid-template-columns: 1fr 1fr;
}

/* Product Grid - Horizontal Card Layout */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 10px;
}

.product-section-title {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	color: var(--text);
	margin: 6px 0 2px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-section-title::before {
	content: '';
	font-size: 14px;
	line-height: 1;
}

.product-section-title.special::before {
	content: '🔥';
}

.product-section-title.diamonds::before {
	content: '✨';
}

@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 12px;
	}
}

.product-card {
	background: rgba(255,255,255,.04);
	border: 2px solid rgba(255,255,255,.08);
	border-radius: 10px;
	padding: 12px;
	cursor: pointer;
	transition: all .25s ease;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.product-card.with-logo-top {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.product-card-logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 10px;
	background: rgba(0,0,0,.18);
	border: 1px solid rgba(255,255,255,.08);
}

.product-card.with-logo-top .product-card-info {
	width: 100%;
}

.product-card:hover:not(.disabled) {
	border-color: var(--teal-500);
	background: rgba(20,184,166,.06);
}

.product-card.selected {
	border-color: var(--teal-500);
	background: rgba(20,184,166,.12);
	border-width: 2px;
	box-shadow: 0 0 0 3px rgba(94,234,212,.18);
}

.product-card-icon {
	font-size: 42px;
	line-height: 1;
	flex-shrink: 0;
}

.product-card-info {
	flex: 1;
	min-width: 0;
}

.product-card-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--slate-100);
	line-height: 1.3;
	margin-bottom: 4px;
	word-wrap: break-word;
}

.product-card-price {
	font-size: 15px;
	font-weight: 700;
	color: #f97316;
}

.product-card-badge {
	background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
	color: white;
	font-size: 10px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	letter-spacing: 0.5px;
	flex-shrink: 0;
	white-space: nowrap;
}

/* Alert Top - Clean Style */
.alert-top {
	position: fixed;
	top: calc(var(--nav-height) + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	z-index: 160;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	background: linear-gradient(135deg, rgba(20,184,166,.92), rgba(13,148,136,.92));
	border: 1px solid rgba(94,234,212,.22);
	color: var(--slate-100);
	font-weight: 600;
	border-radius: 999px;
	padding: 11px 16px;
	box-shadow: 0 12px 28px rgba(0,0,0,.28);
	max-width: min(720px, calc(100vw - 24px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	text-align: center;
	line-height: 1.25;
}

.alert-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.alert-top #alertTopIcon {
	font-weight: 700;
}

.alert-top #alertTopText {
	min-width: 0;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.alert-top {
		top: calc(var(--nav-height) + 4px);
		left: 12px;
		right: 12px;
		transform: translateY(-10px);
		font-size: 13px;
		padding: 10px 12px;
		border-radius: 14px;
		max-width: none;
	}

	.alert-top.is-visible {
		transform: translateY(0);
	}
	
	/* 2 columns for tablets/larger phones */
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	
	.product-card {
		padding: 11px 10px;
		gap: 10px;
	}
	
	.product-card-icon {
		font-size: 38px;
		flex-shrink: 0;
	}

	.product-card-icon img {
		width: 38px;
		height: 38px;
	}

	.product-card-badge {
		position: absolute;
		top: 8px;
		right: 8px;
		padding: 4px 9px;
		font-size: 8px;
	}

	.product-card-info {
		flex: 1;
		min-width: 0;
	}

	.product-card.has-badge .product-card-info {
		padding-right: 52px;
	}
	
	.product-card-name {
		font-size: 12px;
		line-height: 1.35;
		margin-bottom: 3px;
		word-wrap: break-word;
		white-space: normal;
	}
	
	.product-card-price {
		font-size: 13px;
		font-weight: 700;
	}
}

@media (max-width: 480px) {
	/* Default: stack account fields on small screens */
	.account-fields.is-two {
		grid-template-columns: 1fr;
	}

	/* Exception: MLBB uses 2 columns like the reference */
	.account-fields.is-mlbb.is-two {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	/* Smaller 2 column grid for phones */
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.product-card {
		padding: 10px 8px;
		gap: 8px;
	}

	.product-card-icon {
		font-size: 34px;
	}

	.product-card-icon img {
		width: 34px;
		height: 34px;
	}

	.product-card-name {
		font-size: 11px;
		line-height: 1.3;
	}

	.product-card-price {
		font-size: 12px;
	}

	.product-card-badge {
		font-size: 7.5px;
		padding: 4px 8px;
	}

	.product-card.has-badge .product-card-info {
		padding-right: 48px;
	}
}

@media (max-width: 400px) {
	/* Very small phones - single column */
	.product-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.product-card {
		padding: 12px;
		gap: 12px;
		align-items: center;
	}

	.product-card-icon {
		font-size: 42px;
	}

	.product-card-icon img {
		width: 42px;
		height: 42px;
	}

	.product-card-info {
		flex: 1;
		min-width: 0;
	}

	.product-card.has-badge .product-card-info {
		padding-right: 65px;
	}

	.product-card-name {
		font-size: 13px;
		line-height: 1.4;
		word-break: break-word;
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
		white-space: normal;
	}

	.product-card-price {
		font-size: 14px;
	}

	.product-card-badge {
		font-size: 9px;
		padding: 5px 11px;
		top: 10px;
		right: 10px;
	}
}

/* ================= Box (Generic Container) ================= */
.box {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	padding: 1rem;
	border-radius: var(--radius-md);
}

/* ================= Forms ================= */
label {
	display: block;
	margin: 1rem 0 .5rem;
	font-weight: 500;
	color: var(--slate-200);
}

/* ===== Auth Pages (match SMM-Panel) ===== */
.auth-page {
	min-height: calc(100vh - var(--nav-height));
	min-height: calc(100dvh - var(--nav-height));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	position: relative;
}

.auth-page::before,
.auth-page::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.auth-page::before {
	background:
		radial-gradient(circle at 18% 24%, rgba(20,184,166,.18), transparent 60%),
		radial-gradient(circle at 82% 70%, rgba(94,234,212,.12), transparent 55%);
	opacity: .9;
}

.auth-wrapper {
	width: 100%;
	max-width: 480px;
	/* add top offset to avoid fixed header overlap */
	margin: calc(var(--nav-height) + 18px) auto 0;
}

.auth-grid {
	display: block !important;
}

.auth-side {
	display: none;
}

.auth-card {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
	padding: 2rem 1.5rem;
	border-radius: 20px;
	width: 100%;
	box-shadow: var(--shadow-md);
	backdrop-filter: blur(10px);
	position: relative;
}

.auth-lead {
	color: var(--slate-300);
	margin: 0 0 1.6rem;
	font-size: .95rem;
}

.auth-benefits {
	list-style: none;
	margin: 0 0 1.8rem;
	padding: 0;
	display: grid;
	gap: .55rem;
}

.auth-benefits li {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	font-size: .85rem;
	color: var(--slate-200);
	line-height: 1.45;
}

.auth-benefits li svg {
	width: 18px;
	height: 18px;
	color: var(--teal-300);
	flex-shrink: 0;
}

.auth-form {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
	padding: 1.4rem 1.5rem 1.8rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	backdrop-filter: blur(6px);
}

.auth-form.compact {
	padding: 1.1rem 1.15rem 1.3rem;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.auth-form .form-group {
	margin-bottom: 1.05rem;
}

.form-group label {
	font-size: .75rem;
	letter-spacing: .6px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--slate-300);
	margin-bottom: .45rem;
}

.form-group input {
	background: rgba(15,41,66,.6);
	border: 1px solid rgba(255,255,255,.18);
	color: #fff;
	font: inherit;
	padding: .75rem .85rem;
	border-radius: 12px;
	transition: border-color .25s, background .25s;
}

.form-group input:focus {
	border-color: var(--teal-300);
	background: rgba(15,41,66,.75);
	outline: none;
}

.auth-switch {
	text-align: center;
	font-size: .85rem;
	color: var(--slate-300);
	margin-top: 1.4rem;
}

.auth-switch a {
	color: var(--teal-300);
	font-weight: 500;
}

.auth-switch a:hover {
	text-decoration: underline;
}

.alert-inline {
	padding: .8rem .9rem;
	border-radius: 12px;
	font-size: .8rem;
	display: flex;
	gap: .55rem;
	align-items: flex-start;
	line-height: 1.4;
	margin: 0 0 1rem;
}

.alert-inline.error {
	background: rgba(220,38,38,.14);
	border: 1px solid rgba(248,113,113,.35);
	color: #fecaca;
}

.alert-inline.success {
	background: rgba(22,163,74,.16);
	border: 1px solid rgba(74,222,128,.35);
	color: #bbf7d0;
}

@media (max-width: 640px) {
	.auth-wrapper { max-width: 400px; }
	.auth-card { padding: 1.5rem 1.25rem; border-radius: 18px; }
}

@media (max-width: 480px) {
	.auth-wrapper { max-width: 340px; }
	.auth-card { padding: 1.25rem 1rem; border-radius: 16px; }
	.form-group input { padding: .7rem .75rem; font-size: .9rem; }
}

@media (max-width: 360px) {
	.auth-page { padding: .75rem; }
	.auth-wrapper { max-width: 100%; }
	.auth-card { padding: 1rem .85rem; border-radius: 14px; }
}

input, select, textarea {
	width: 100%;
	padding: .75rem;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--radius-sm);
	background: rgba(0,0,0,.3);
	color: var(--slate-100);
	font-family: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--teal-500);
}

input::placeholder {
	color: var(--muted);
}

select option {
	background: var(--navy-800);
	color: var(--slate-100);
}

button[type="submit"] {
	margin-top: 1rem;
	width: 100%;
}

.row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.row {
		grid-template-columns: 1fr;
	}
}

/* ================= Status Page ================= */
code {
	background: rgba(20,184,166,.12);
	border: 1px solid rgba(20,184,166,.25);
	padding: 3px 10px;
	border-radius: 6px;
	color: var(--teal-300);
	font-size: 14px;
}

pre {
	background: rgba(0,0,0,.5);
	border: 1px solid rgba(255,255,255,.08);
	padding: 1rem;
	border-radius: var(--radius-sm);
	overflow: auto;
	color: var(--slate-200);
	font-size: 14px;
}

hr {
	border: 0;
	border-top: 1px solid rgba(255,255,255,.08);
	margin: 1rem 0;
}

.err {
	margin-top: .75rem;
	color: #ff6b6b;
}

/* ================= Footer ================= */
.site-footer {
	margin-top: 3rem;
	border-top: 1px solid rgba(255,255,255,.08);
	background: linear-gradient(180deg, rgba(15,41,66,.6), rgba(11,27,43,.9));
	padding: 0 1rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr .8fr;
	gap: 2rem;
	padding: 2rem 0 1rem;
	max-width: var(--container);
	margin: 0 auto;
}

.site-footer h4 {
	margin: 0 0 .8rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--slate-100);
}

.site-footer a {
	color: var(--slate-200);
	opacity: .9;
	transition: color .2s ease;
	display: inline-block;
	padding: .2rem 0;
}

.site-footer a:hover {
	color: var(--teal-300);
	opacity: 1;
}

.site-footer ul li {
	margin-bottom: .4rem;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 1rem 0;
	max-width: var(--container);
	margin: 0 auto;
}

.footer-bottom p {
	margin: 0;
	color: var(--muted);
	font-size: .9rem;
	text-align: center;
}

@media (max-width: 768px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* Remove default focus rings on mouse click; keep focus-visible for keyboard users */
:focus {
	outline: none;
	box-shadow: none;
}
:focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
}

/* Fix for Firefox inner focus border */
::-moz-focus-inner {
	border: 0;
}

/* Touch devices: remove focus outlines and tap highlight (Android) */
@media (pointer: coarse) {
	:focus {
		outline: none !important;
		box-shadow: none !important;
		outline-color: transparent !important;
	}
	a:focus, button:focus, input:focus, textarea:focus, select:focus {
		outline: none !important;
		box-shadow: none !important;
	}
	html, body, a, button, input, textarea, select {
		-webkit-tap-highlight-color: transparent;
	}
}

/* ================= Utilities ================= */
.text-center {
	text-align: center;
}

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.w-full {
	width: 100%;
}

/* ================= Login/Register Pages ================= */
.auth-container {
	max-width: 480px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.auth-box {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	padding: 2rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.auth-box h1 {
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 2rem;
}

.auth-box p {
	text-align: center;
	margin-top: 1rem;
	color: var(--slate-200);
}

/* ================= Loading State ================= */
.loading {
	text-align: center;
	padding: 2rem;
}

.loading::after {
	content: '⏳';
	font-size: 2rem;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
/* ================= Order Page Styles ================= */
.order-layout {
	display: grid;
	/* Make right column responsive: flexible width between 320px and 480px */
	grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 480px);
	gap: 18px;
	align-items: start;
	overflow: visible;
	position: relative;
}

.order-main {
	min-width: 0;
}

.order-side {
	min-width: 0;
	/* use responsive width from the grid, allow internal flex layout */
	max-width: 520px;
	display: flex;
	flex-direction: column;
	align-self: start;
}

.order-side.is-fixed {
	position: fixed;
	top: calc(var(--nav-height) + 18px);
	/* Keep the sidebar above the footer/contact area; increased gap to raise it slightly */
	bottom: calc(84px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(94, 234, 212, 0.3) transparent;
	will-change: transform;
	z-index: 100;
}

.order-side.is-bottom {
	position: absolute;
	top: auto;
	bottom: 0;
	max-height: none;
}

/* Webkit Scrollbar Styling for Order Side */
.order-side::-webkit-scrollbar {
	width: 6px;
}

.order-side::-webkit-scrollbar-track {
	background: transparent;
}

.order-side::-webkit-scrollbar-thumb {
	background: rgba(94, 234, 212, 0.3);
	border-radius: 3px;
}

.order-side::-webkit-scrollbar-thumb:hover {
	background: rgba(94, 234, 212, 0.5);
}

.order-summary {
	margin-bottom: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	/* Do not force full height — let content size naturally to avoid large empty gaps */
}

.order-summary-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255,255,255,.06);
}

.order-summary-game {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(0,0,0,.12);
	flex-shrink: 0;
}

.order-summary-game-fallback {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	flex-shrink: 0;
}

.order-summary-meta {
	min-width: 0;
}

.order-summary-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--slate-100);
	line-height: 1.2;
}

.order-summary-sub {
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.35;
}

/* Purchase guide box (desktop + mobile placements) */
.purchase-guide {
	background: rgba(15,41,66,.96);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 12px;
	padding: 12px 14px;
	box-shadow: var(--shadow-sm);
	color: var(--slate-100);
	margin-bottom: 14px;
}
.purchase-guide-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--teal-300);
	margin: 0 0 8px;
}
.purchase-guide-list {
	margin: 0;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--muted);
}
.purchase-guide-list li { margin-bottom: 8px; }
.purchase-guide .muted { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Visibility helpers: desktop vs mobile */
.purchase-guide.is-desktop { display: block; }
.purchase-guide.is-mobile { display: none; }

@media (max-width: 768px) {
	.purchase-guide.is-desktop { display: none; }
	.purchase-guide.is-mobile { display: block; }
	.purchase-guide { padding: 12px; margin-bottom: 16px; }
}

.order-summary-body {
	padding: 16px 20px 18px;
	flex: 1 1 auto;
	overflow: auto;
	min-height: 0; /* allow flex children to shrink */
}

.order-summary-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
}

.order-summary-key {
	font-size: 12.5px;
	color: var(--muted);
}

.order-summary-val {
	font-size: 13px;
	font-weight: 600;
	color: var(--slate-100);
	text-align: right;
}

.order-summary-divider {
	height: 1px;
	background: rgba(255,255,255,.08);
	margin: 10px 0;
}

.order-summary-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.order-summary-total-key {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--slate-100);
}

.order-summary-total-val {
	font-size: 15px;
	font-weight: 700;
	color: var(--teal-300);
	text-align: right;
}

.order-summary-submit {
	display: flex;
	align-items: center;

/* Button loading state (used for "Pesan Sekarang" while checking/processing) */
.btn.is-loading {
	position: relative;
	pointer-events: none;
}

.btn.is-loading::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 10px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-right-color: transparent;
	vertical-align: -2px;
	animation: btnspin 0.8s linear infinite;
}

@keyframes btnspin {
	to { transform: rotate(360deg); }
}
	justify-content: center;
	width: 80%;
	max-width: 340px;
	margin: 12px auto 12px auto; /* tighten vertical margins */
	box-sizing: border-box;
	text-align: center;
	background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
	color: #fff;
	font-size: 1.08rem;
	font-weight: 600;
	border-radius: 16px;
	border: none;
	box-shadow: none;
	padding: 1rem 0;
	transition: background .18s, color .18s;
}

.order-summary-submit:hover:not(:disabled),
.order-summary-submit:focus:not(:disabled) {
	background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
	color: #fff;
	box-shadow: none;
	transform: none;
}

/* Avoid duplicate CTA: on mobile (<=640px) use the bottom mobile checkout bar only */
@media (max-width: 640px) {
	.order-side .order-summary-submit {
		display: none !important;
	}
}

@media (max-width: 980px) {
	.order-summary-submit {
		width: 100%;
		max-width: 340px;
		padding: 0.85rem 0;
		font-size: 1rem;
		border-radius: 14px;
	}
}

@media (max-width: 640px) {
	.order-summary-submit {
		width: 90%;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
		display: block;
		padding: 0.8rem 0;
		font-size: 0.98rem;
		border-radius: 12px;
	}
}

@media (max-width: 420px) {
	.order-summary-submit {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		display: block;
		padding: 0.7rem 0;
		font-size: 0.95rem;
		border-radius: 10px;
	}
}

@media (max-width: 640px) {
	.order-summary-submit {
		width: 90%;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}

@media (max-width: 420px) {
	.order-summary-submit {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		display: block;
	}
}

.order-summary-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* Mobile sticky checkout bar */
.mobile-checkout {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 115;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(11,27,43,.90);
	border-top: 1px solid rgba(255,255,255,.08);
	backdrop-filter: blur(16px);
}

.mobile-checkout-product {
	font-size: 13px;
	color: var(--slate-100);
	opacity: 0.95;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 641px) {
	.mobile-checkout {
		display: none;
	}
}

@media (max-width: 640px) {
	body.has-mobile-checkout .order-page-wrap {
		padding-bottom: calc(var(--mobile-checkout-h, 0px) + 18px);
	}
}

.mobile-checkout.is-docked {
	/* Keep the checkout fixed and overlay the footer to remain visible */
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1200;
}

.mobile-checkout-inner {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	gap: 12px;
	align-items: stretch;
	justify-content: space-between;
}

.mobile-checkout-card {
	flex: 1;
	min-width: 0;
	min-width: 160px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	min-height: 48px;
}

.mobile-checkout-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--slate-100);
	line-height: 1.25;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
}


.mobile-checkout-btn {
	white-space: nowrap;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100% !important; 
	flex: 1; 
	min-width: 0; 
	margin-left: 8px;
	padding: 12px 14px; 
	border-radius: 12px; 
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.mobile-checkout-card { margin-right: 0; }
	.mobile-checkout-btn { margin-left: 0; }
}
.mobile-checkout-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

@media (hover: none) {
	.mobile-checkout .btn:hover {
		transform: none;
	}
	.mobile-checkout .btn-primary:hover {
		box-shadow: var(--shadow-sm);
	}
}
.order-step {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(2,6,23,.16);
}

.order-step.no-shadow {
	box-shadow: none;
}

.step-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	background: linear-gradient(90deg, rgba(20,184,166,.15), rgba(20,184,166,.06));
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: radial-gradient(160% 160% at 50% -30%, var(--teal-300), var(--teal-600));
	color: white;
	font-weight: 700;
	font-size: 18px;
	border-radius: 50%;
	flex-shrink: 0;
}

.step-header h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--teal-300);
}

.step-content {
	padding: 20px;
}

.product-card {
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	background: rgba(255,255,255,.06);
	border: 2px solid var(--border);
	border-radius: 10px;
	padding: 14px;
	transition: all .2s ease;
}

.product-card:not(.disabled):hover {
	transform: translateY(-2px);
	border-color: var(--teal-300);
}

.product-card:not(.disabled):active {
	transform: translateY(0);
}

.product-card.selected {
	border-color: var(--teal-500) !important;
}

/* Responsive Order Page */
@media (max-width: 860px) {
	/* Keep summary on the right, but make it narrower so it still fits */
	.order-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 14px;
	}

	.order-side {
		top: calc(var(--nav-height) + 10px);
	}

	.step-header h3 {
		font-size: 16px;
	}

	.step-number {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}
}

@media (max-width: 720px) {
	.order-layout {
		grid-template-columns: 1fr;
	}

	.order-side {
		position: static;
		margin-top: 18px;
	}
}

@media (max-width: 640px) {
	.order-side {
		display: none;
	}

	.step-content > div[style*="grid-template-columns"] {
		grid-template-columns: 1fr !important;
	}

	/* Alert Top */
	.alert-top {
		top: calc(var(--nav-height) + 10px);
		z-index: 150;
		padding: 10px 16px;
		font-size: 14px;
	}

	#productGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 400px) {
	#productGrid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.product-card-icon img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	display: block;
}

/* Prevent background scroll when modal is open */
body.modal-open {
	overflow: hidden;
}

/* ML User ID info icon + popup */
.info-icon {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.06);
	color: var(--teal-300);
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform .12s ease, background-color .18s ease, border-color .18s ease;
}

.info-icon:hover {
	border-color: rgba(94,234,212,.28);
	background: rgba(255,255,255,.08);
}

.info-icon:active {
	transform: scale(.92);
}

.info-modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease-out;
	/* prevent background scroll chaining on mobile */
	touch-action: none;
}

.info-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Respect HTML hidden attribute (our .info-modal sets display:flex) */
.info-modal[hidden] {
	display: none !important;
}

.info-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.60);
	opacity: 0;
	transition: opacity .18s ease-out;
}

.info-modal.is-open .info-modal-backdrop {
	opacity: 1;
}

.info-modal-dialog {
	position: relative;
	width: min(560px, calc(100vw - 36px));
	background: rgba(15,41,66,.96);
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 16px;
	/* Allow dialog content to scroll when taller than viewport */
	max-height: calc(100vh - 48px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: var(--shadow-lg);
	transform: translateY(10px) scale(.985);
	opacity: 0;
	will-change: transform, opacity;
	transition: transform .20s ease-out, opacity .20s ease-out;
	/* Prevent scroll chaining to the body */
	overscroll-behavior: contain;
}

@media (max-width: 640px) {
	.info-modal {
		/* Center modals vertically on small screens for better visibility */
		align-items: center;
		padding: 12px;
	}
	.info-modal-dialog {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 40px);
		margin-top: 12px;
		margin-bottom: 12px;
	}
}

.info-modal.is-open .info-modal-dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.info-modal.is-closing .info-modal-backdrop {
	opacity: 0;
}

.info-modal.is-closing .info-modal-dialog {
	transform: translateY(6px) scale(.99);
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.info-modal,
	.info-modal-backdrop,
	.info-modal-dialog,
	.info-icon {
		transition: none !important;
	}
	.info-modal-dialog {
		transform: none !important;
	}
}

.info-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(255,255,255,.06);
	color: var(--slate-100);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.info-modal-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Login required modal content */
.login-required-modal-body {
	padding: 18px;
}

.login-required-modal-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--slate-100);
	letter-spacing: .1px;
	margin-bottom: 6px;
}

.login-required-modal-text {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}

.login-required-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

/* Order confirmation modal */
.order-confirm {
	padding: 20px;
	text-align: center;
}

.order-confirm-hero {
	display: flex;
	justify-content: center;
	margin-top: 6px;
	margin-bottom: 12px;
}

.order-confirm-icon {
	width: 76px;
	height: 76px;
	border-radius: 999px;
	background: rgba(20,184,166,.22);
	border: 1px solid rgba(94,234,212,.22);
	color: var(--teal-300);
	display: grid;
	place-items: center;
	font-size: 34px;
	font-weight: 800;
}

.order-confirm-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--slate-100);
	margin-bottom: 6px;
}

.order-confirm-sub {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
	margin-bottom: 14px;
}

.order-confirm-card {
	text-align: left;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 14px;
}

.order-confirm-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
}

.order-confirm-key {
	font-size: 12.5px;
	color: var(--muted);
}

.order-confirm-val {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--slate-100);
	text-align: right;
}

.order-confirm-agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.45;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(255,255,255,.03);
	cursor: pointer;
	margin-bottom: 14px;
}

.order-confirm-agree.has-error {
	background: rgba(220,38,38,0.04);
	border-color: rgba(220,38,38,0.12);
}

.order-confirm-agree.has-error .order-confirm-agree-text {
	color: #dc2626;
}

.order-confirm-agree input {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var(--teal-500);
}

.order-confirm-agree-text {
	min-width: 0;
}

.order-confirm-actions {
	display: grid;
	gap: 10px;
}

.order-confirm-actions .btn {
	width: 100%;
}