:root {
	--bg-dark: #050816;
	--bg-dark-alt: #0b1020;
	--bg-light: #f5f7fb;
	--bg-light-alt: #ffffff;
	--accent: #00c3ff;
	--accent-soft: rgba(0, 195, 255, 0.15);
	--accent-green: #00ffb7;
	--text-dark: #0b1020;
	--text-light: #f5f7fb;
	--muted-dark: #9ea4c4;
	--muted-light: #6b7280;
	--card-radius: 22px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden !important; /* CEGAH SCROLL KIRI-KANAN */
	overflow-y: auto !important; /* scroll hanya vertikal */
	font-family: "Poppins", sans-serif;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	transition: background 0.4s ease, color 0.4s ease;
}

body[data-theme="dark"] {
	background: radial-gradient(
		circle at top,
		#1a237e 0,
		#050816 40%,
		#02030a 100%
	);
	color: var(--text-light);
}

body[data-theme="light"] {
	background: radial-gradient(
		circle at top,
		#e0f2ff 0,
		#f5f7fb 40%,
		#e5ecff 100%
	);
	color: var(--text-dark);
}

.bg-orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.6;
	pointer-events: none;
	z-index: 0;
	mix-blend-mode: screen;
}

body[data-theme="dark"] .bg-orb:nth-child(1) {
	background: #00c3ff;
}

body[data-theme="dark"] .bg-orb:nth-child(2) {
	background: #8e2de2;
}

body[data-theme="light"] .bg-orb:nth-child(1) {
	background: #90caf9;
}

body[data-theme="light"] .bg-orb:nth-child(2) {
	background: #ffcc80;
}

.bg-orb:nth-child(1) {
	width: 320px;
	height: 320px;
	top: -80px;
	left: -40px;
}

.bg-orb:nth-child(2) {
	width: 280px;
	height: 280px;
	bottom: -60px;
	right: -40px;
}

.app-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	padding: 16px;
}

.app-card {
	border-radius: 26px;
	padding: 24px 22px;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 20px;
	align-items: stretch;
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
	animation: fadeUp 0.6s ease-out;
}

body[data-theme="light"] .app-card {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(15, 23, 42, 0.06);
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

body[data-theme="dark"] .app-card {
	background: linear-gradient(
		135deg,
		rgba(15, 23, 42, 0.88),
		rgba(15, 23, 42, 0.96)
	);
}

@media (max-width: 768px) {
	.app-card {
		grid-template-columns: 1fr;
		height: 100%;
		max-height: 640px;
		overflow-y: auto;
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.app-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-logo {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(
		circle at 30% 0,
		#fff 0,
		#00c3ff 30%,
		#673ab7 80%
	);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand-text {
	display: flex;
	flex-direction: column;
}

.brand-name {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.brand-sub {
	font-size: 11px;
	opacity: 0.8;
}

.theme-toggle {
	border-radius: 999px;
	border: none;
	padding: 6px 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.15s ease;
}

body[data-theme="dark"] .theme-toggle {
	background: rgba(15, 23, 42, 0.9);
	color: var(--muted-dark);
}

body[data-theme="light"] .theme-toggle {
	background: rgba(255, 255, 255, 0.9);
	color: var(--muted-light);
	border: 1px solid rgba(148, 163, 184, 0.4);
}

.theme-toggle:hover {
	transform: translateY(-1px);
}

.left-pane,
.right-pane {
	border-radius: var(--card-radius);
	padding: 20px 18px;
}

body[data-theme="dark"] .left-pane {
	background: rgba(15, 23, 42, 0.9);
}

body[data-theme="light"] .left-pane {
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

body[data-theme="dark"] .right-pane {
	background: radial-gradient(
		circle at top,
		rgba(56, 189, 248, 0.18),
		rgba(15, 23, 42, 0.96)
	);
}

body[data-theme="light"] .right-pane {
	background: linear-gradient(135deg, #f5f7ff, #ffffff);
	border: 1px solid rgba(148, 163, 184, 0.22);
}

.left-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.left-subtitle {
	font-size: 12px;
	opacity: 0.78;
	margin-bottom: 18px;
}

.badge-speed {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0, 195, 255, 0.12);
	color: var(--accent-green);
	margin-bottom: 14px;
}

.form-field {
	margin-bottom: 12px;
}

.form-label {
	font-size: 12px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.form-input-wrap {
	position: relative;
}

.form-input {
	width: 100%;
	padding: 10px 12px 10px 34px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.6);
	font-size: 13px;
	outline: none;
	background: rgba(15, 23, 42, 0.7);
	color: var(--text-light);
	transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
		transform 0.12s ease;
}

body[data-theme="light"] .form-input {
	background: #f9fafb;
	color: var(--text-dark);
}

.form-input::placeholder {
	font-size: 11px;
	opacity: 0.6;
}

.form-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px rgba(0, 195, 255, 0.45);
	transform: translateY(-1px);
}

.field-icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	opacity: 0.8;
}

.helper-text {
	font-size: 11px;
	opacity: 0.7;
	margin-bottom: 6px;
}

.btn-primary {
	margin-top: 6px;
	width: 100%;
	padding: 11px;
	border-radius: 999px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	background: radial-gradient(circle at 0 0, #fff 0, #00c3ff 25%, #673ab7 85%);
	color: white;
	position: relative;
	overflow: hidden;
	transition: transform 0.12s ease, box-shadow 0.15s ease;
	box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 40px rgba(79, 70, 229, 0.55);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-primary span {
	position: relative;
	z-index: 2;
}

.btn-primary::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
}

.btn-primary.ripple::after {
	width: 220%;
	height: 220%;
	opacity: 0;
}

.login-note {
	margin-top: 10px;
	font-size: 11px;
	opacity: 0.8;
	display: flex;
	align-items: center;
	gap: 4px;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.right-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.right-title-main {
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.right-title-sub {
	font-size: 11px;
	opacity: 0.75;
}

.pill {
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(15, 23, 42, 0.6);
	color: var(--accent-green);
}

body[data-theme="light"] .pill {
	background: rgba(15, 23, 42, 0.03);
	color: #059669;
}

.price-grid {
	margin-top: 8px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

@media (min-width: 480px) {
	.price-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.price-card {
	border-radius: 16px;
	padding: 10px 10px 9px;
	font-size: 11px;
	border: 1px solid rgba(148, 163, 184, 0.55);
	display: flex;
	flex-direction: column;
	gap: 3px;
	position: relative;
	overflow: hidden;
	cursor: default;
	transition: transform 0.14s ease, box-shadow 0.18s ease,
		border-color 0.18s ease, background 0.18s ease;
}

body[data-theme="dark"] .price-card {
	background: rgba(15, 23, 42, 0.75);
}

body[data-theme="light"] .price-card {
	background: #ffffff;
}

.price-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
	border-color: var(--accent);
}

.price-name {
	font-weight: 600;
}

.price-meta {
	font-size: 10px;
	opacity: 0.75;
}

.price-amount {
	margin-top: 3px;
	font-weight: 700;
	font-size: 12px;
	color: var(--accent-green);
}

.chip-speed {
	margin-top: 3px;
	font-size: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(0, 195, 255, 0.12);
}

.qr-box {
	margin-top: 14px;
	border-radius: 16px;
	padding: 10px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px;
	align-items: center;
	background: rgba(15, 23, 42, 0.7);
	border: 1px dashed rgba(148, 163, 184, 0.8);
}

body[data-theme="light"] .qr-box {
	background: rgba(248, 250, 252, 0.9);
}

.qr-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: repeating-linear-gradient(
		45deg,
		rgba(15, 23, 42, 0.2) 0,
		rgba(15, 23, 42, 0.2) 4px,
		transparent 4px,
		transparent 8px
	);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
}

body[data-theme="light"] .qr-placeholder {
	background: repeating-linear-gradient(
		45deg,
		rgba(148, 163, 184, 0.25) 0,
		rgba(148, 163, 184, 0.25) 4px,
		transparent 4px,
		transparent 8px
	);
}

.qr-text-title {
	font-size: 12px;
	font-weight: 600;
}

.qr-text-sub {
	font-size: 11px;
	opacity: 0.8;
}

.qr-badges {
	margin-top: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.qr-badge {
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.7);
}

body[data-theme="light"] .qr-badge {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.3);
}

@keyframes shake {
	0% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(-4px);
	}

	40% {
		transform: translateX(4px);
	}

	60% {
		transform: translateX(-3px);
	}

	80% {
		transform: translateX(3px);
	}

	100% {
		transform: translateX(0);
	}
}

.shake {
	animation: shake 0.28s;
}

/* Badge speed - warna teks ketika light mode */
body[data-theme="light"] .badge-speed {
	color: #000; /* Hitam */
}

/* Harga paket - warna teks ketika light mode */
body[data-theme="light"] .price-amount {
	color: #000; /* Hitam */
}

.btn-paket {
	display: inline-flex;
	align-items: center;
	gap: 5px; /* lebih kecil */
	padding: 7px 14px; /* lebih kecil */
	border-radius: 999px;
	font-size: 11.5px; /* lebih kecil */
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	background: radial-gradient(circle at 0 0, #fff 0, #00c3ff 25%, #673ab7 85%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3); /* lebih kecil */
	transition: transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-paket:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(79, 70, 229, 0.55);
}

.btn-paket:active {
	transform: translateY(0);
}

/* Tombol daftar paket hanya ditampilkan di desktop */
.pill-paket-desktop {
	display: inline-flex;
	align-items: center;
	gap: 5px; /* lebih kecil */
	padding: 7px 14px; /* lebih kecil */
	border-radius: 999px;
	font-size: 11.5px; /* lebih kecil */
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	background: radial-gradient(circle at 0 0, #fff 0, #00c3ff 25%, #673ab7 85%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3); /* lebih kecil */
	transition: transform 0.15s ease, box-shadow 0.18s ease;
}

/* SEMBUNYIKAN di mobile */
@media (max-width: 768px) {
	.pill-paket-desktop {
		display: none !important;
	}
}

/* ---------------------------- */
/*  TOMBOL DAFTAR PAKET MOBILE */
/* ---------------------------- */

.btn-paket-mobile {
	display: none; /* default: tidak tampil di desktop */
}

/* MOBILE ONLY */
@media (max-width: 768px) {
	.btn-paket-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;

		width: 100%;
		padding: 12px 20px;

		font-size: 14px;
		font-weight: 600;
		text-transform: uppercase;
		text-decoration: none;

		border-radius: 999px;
		color: #fff;

		background: radial-gradient(
			circle at 0 0,
			#ffffff 0%,
			#00c3ff 35%,
			#673ab7 100%
		);
		box-shadow: 0 12px 26px rgba(79, 70, 229, 0.35);

		margin-top: 16px;
		margin-bottom: 10px;

		transition: transform 0.15s ease, box-shadow 0.2s ease;
	}

	.btn-paket-mobile:active {
		transform: scale(0.97);
		box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
	}
}

.badge-speed {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(0, 195, 255, 0.12);
	color: var(--accent-green);
}

/* LINGKARAN ICON */
.badge-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 195, 255, 0.25);
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--accent-green);
	font-size: 14px;
	flex-shrink: 0;
}

/* Light mode */
body[data-theme="light"] .badge-speed {
	background: rgba(0, 0, 0, 0.05);
	color: #000;
}

body[data-theme="light"] .badge-icon {
	background: rgba(0, 0, 0, 0.15);
	color: #000;
}
