:root {
	/* Base neutrals (dark, high contrast) */
	--bg: #0b1220;
	--panel: rgba(255, 255, 255, 0.045);
	--panel-2: rgba(255, 255, 255, 0.065);
	--panel-3: rgba(255, 255, 255, 0.085);
	--text: rgba(255, 255, 255, 0.93);
	--muted: rgba(255, 255, 255, 0.78);
	--border: rgba(255, 255, 255, 0.331);

	/* Brand accents */
	--primary: #5b9bff;
	--primary-2: #2f6bff;
	--accent: #a78bfa;

	/* Status colors */
	--success: #22c55e;
	--warning: #f59e0b;
	--danger: #ef4444;

	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.32);
	--radius: 14px;
	--radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}

::selection { background: rgba(110, 168, 254, 0.28); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 10px; }

/* Add breathing room between header/content and content/footer */
main.container {
	flex: 1 0 auto;
	padding-top: 90px;
	padding-bottom: 90px;
}

.footer {
	margin-top: auto;
	border-top: 1px solid var(--border);
	background: rgba(11, 18, 32, 0.55);
}

.footer-inner {
	padding-top: 10px;
	padding-bottom: 30px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.footer-inner a {
	color: var(--muted);
	font-weight: 600;
}

.footer-inner a:hover {
	color: var(--text);
}

.footer-sep {
	margin: 0 8px;
	opacity: 0.75;
}

.header {
	position: sticky;
	top: 0;
	backdrop-filter: blur(10px);
	background: rgba(11, 18, 32, 0.75);
	border-bottom: 1px solid var(--border);
	z-index: 10;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--text);
}

.brand-logo {
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	image-rendering: auto;
}

.nav {
	display: flex;
	align-items: center;
	padding: 0px 0px 0px 22px;
	gap: 14px;
}

.nav a {
	color: var(--muted);
	padding: 10px 10px;
	border-radius: 10px;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
	font-weight: 700; /* make nav text bold */
}

.nav a:hover {
	text-decoration: none;
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.nav a:active { transform: translateY(1px); }

.nav a[aria-current="page"] {
	color: var(--text);
	background: rgba(255, 255, 255, 0.00);
	border: 2px solid var(--border);
}

.nav-logout-form {
	margin: 0;
	display: inline-flex;
}

.nav-logout-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--muted);
	padding: 10px 10px;
	border-radius: 10px;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nav-logout-btn:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.nav-logout-btn:active { transform: translateY(1px); }

/* Account page: top-of-page alerts */
.page-alert {
	margin-top: 10px;
	margin-bottom: 10px;
	display: flex;
	justify-content: center;
}

.page-alert .notice-pill {
	width: auto;
	max-width: min(900px, 100%);
	text-align: center;
}

/* Account card: make key metadata lines larger */
.account-card .account-meta {
	font-size: 16px;
}

.account-card .account-meta-label {
	color: var(--text);
	font-weight: 800;
}

.account-card strong {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hero {
	padding: 20px 10px 20px;
	position: center;
}

.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 0px; }
.hero p { margin: 0 0 16px; color: var(--muted); font-size: 16px; max-width: 72ch; }

.hero-surface {
	padding: 24px 22px;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
		radial-gradient(900px 220px at 20% 0%, rgba(91, 155, 255, 0.20), transparent 60%),
		radial-gradient(900px 240px at 90% 10%, rgba(167, 139, 250, 0.16), transparent 60%),
		rgba(255, 255, 255, 0.02);
	box-shadow: var(--shadow);
	backdrop-filter: blur(8px);
	overflow: hidden;
}

.hero-surface::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px 120px at 70% 0%, rgba(255, 255, 255, 0.10), transparent 60%);
	opacity: 0.9;
	pointer-events: none;
}

.grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 16px;
}

.card {
	background: var(--panel);
	border: 3px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card-inner { padding: 20px; }

.card h2 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.notice-area {
	margin-bottom: 14px;
}

.notice-pill {
	display: flex;
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 16px;
	border-radius: 14px;
}

.card-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.card-header-row h2 {
	margin: 0;
}

.inline-form {
	margin: 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 12px;
	border: 2px solid var(--border);
	padding: 14px 20px;
	cursor: pointer;
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
	line-height: 1.2;
	font: inherit;
	transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

button.btn,
input[type="submit"].btn,
input[type="button"].btn,
input[type="reset"].btn {
	appearance: none;
	-webkit-appearance: none;
}

button.btn::-moz-focus-inner {
	border: 0;
	padding: 0;
}

.btn-sm {
	padding: 10px 14px;
	border-radius: 11px;
	font-size: 14px;
}

.btn:hover {
	background: rgba(255, 255, 255, 0.10);
	text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.22), var(--shadow);
}

.btn[disabled],
.btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
	filter: saturate(0.9);
}

.btn[disabled]:hover,
.btn.disabled:hover {
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
}

.btn-primary {
	background: linear-gradient(180deg, rgba(91, 155, 255, 0.98), rgba(47, 107, 255, 0.98));
	border-color: rgba(255, 255, 255, 0.16);
	color: #07101f;
	font-weight: 700;
}

.btn-primary:hover {
	background: linear-gradient(180deg, rgba(91, 155, 255, 1), rgba(47, 107, 255, 1));
}

.btn-danger {
	background: rgba(239, 68, 68, 0.14);
	border-color: rgba(239, 68, 68, 0.38);
	color: #ffd7d7;
}

.btn-warning {
	background: rgba(245, 158, 11, 0.18);
	border-color: rgba(245, 158, 11, 0.55);
	color: #ffefd2;
	font-weight: 700;
}

.btn-warning:hover {
	background: rgba(245, 158, 11, 0.24);
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 22px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 0;
}

.modal-content {
	position: relative;
	z-index: 1;
	width: min(460px, 92vw);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(11, 18, 32, 0.82);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(8px);
	overflow: hidden;
	padding: 16px 16px 14px;
}

.modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	align-items: center;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	padding: 7px 10px;
	cursor: pointer;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.10);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }

.purchase-row {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.preview-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
}

.preview-thumb {
	appearance: none;
	display: block;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 14px;
	width: 200px;
	max-width: 200px;
	flex: 0 0 200px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	box-shadow: none;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.preview-thumb:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.06);
}

.preview-thumb:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.20), var(--shadow);
}

.preview-thumb img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 120px;
	object-fit: cover;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.lightbox[hidden] {
	display: none;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 0;
}

.lightbox-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 92vw;
	max-height: 86vh;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(11, 18, 32, 0.80);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(8px);
	overflow: hidden;
	padding: 12px;
}

.lightbox-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	padding: 7px 10px;
	cursor: pointer;
	z-index: 2;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.10);
}

.lightbox-image {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 14px;
	border: none;
	background: rgba(0, 0, 0, 0.20);
}

@media (max-width: 860px) {
	.preview-thumb {
		width: 100%;
	}
	.preview-thumb img {
		height: 180px;
	}
}

.segmented {
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	height: 48px;
	box-sizing: border-box;
}

.segmented-item {
	position: relative;
	display: flex;
	align-items: stretch;
	cursor: pointer;
	user-select: none;
	flex: 1 1 0;
}

.segmented-item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.segmented-item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 18px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.15px;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.06);
	border: 2px solid var(--border);
	line-height: 1;
	box-sizing: border-box;
	transition: transform 140ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.segmented-item + .segmented-item span {
	margin-left: -2px;
}

.segmented-item:first-child span {
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
}

.segmented-item:last-child span {
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
}

.purchase-row--cta {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.purchase-row--cta .segmented {
	flex: 0 0 auto;
}

.purchase-row--cta .btn {
	flex: 0 0 auto;
}

@media (max-width: 860px) {
	.purchase-row--cta {
		flex-direction: column;
		align-items: stretch;
	}
	.purchase-row--cta .segmented,
	.purchase-row--cta .btn {
		width: 100%;
	}
}

.segmented-item:hover span {
	color: var(--text);
	background: rgba(255, 255, 255, 0.10);
}

.segmented-item input:checked + span {
	color: #07101f;
	background: linear-gradient(180deg, rgba(91, 155, 255, 0.98), rgba(47, 107, 255, 0.98));
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.16);
	position: relative;
	z-index: 1;
}

.segmented-item:focus-within span {
	outline: none;
	box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.22), var(--shadow);
}

.form {
	max-width: 600px;
}

label { display: block; margin-top: 12px; margin-bottom: 2px; color: var(--muted); font-size: 16px; }

input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 2px solid var(--border);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	text-align: left;
}

input::placeholder {
	text-align: left;
}

.code-input::placeholder {
	text-align: center;
}

.code-label {
	text-align: center;
}

.label-center {
	text-align: center;
}

.input-center {
	text-align: center !important;
}

.input-center::placeholder {
	text-align: center !important;
}

input.input-center {
	text-align: center !important;
}

input.input-center::placeholder {
	text-align: center !important;
}

.input-with-icon {
	position: relative;
}

.input-with-icon input {
	padding-right: 46px;
	padding-bottom: 10px;
	
}

.input-icon-btn {
	position: absolute;
	top: 50%;
	right: 3px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted);
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.input-icon-btn:hover {
	background: rgba(255, 255, 255, 0.10);
	color: var(--text);
}

.input-icon-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.25);
}

input:focus {
	outline: none;
	border-color: rgba(110, 168, 254, 0.55);
	box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
}

.hint { color: var(--muted); font-size: 16px; }
.error { color: #ffd7d7; background: rgba(255, 107, 107, 0.14); border: 1px solid rgba(255, 107, 107, 0.35); padding: 10px 12px; border-radius: 12px; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	font-size: 12px;
}

.badge-success {
	border-color: rgba(34, 197, 94, 0.40);
	background: rgba(34, 197, 94, 0.14);
	color: #d9ffe8;
}

.badge-neutral {
	border-color: rgba(167, 139, 250, 0.40);
	background: rgba(167, 139, 250, 0.12);
	color: #efe9ff;
}

/* Store / product listing */
.product-grid {
	margin-top: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.product-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.store-hero p { margin-bottom: 0; }

.store-featured { margin-top: 14px; }

.featured-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.featured-visual {
	width: 210px;
	height: 120px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background:
		radial-gradient(160px 90px at 30% 20%, rgba(91, 155, 255, 0.45), transparent 60%),
		radial-gradient(170px 100px at 80% 40%, rgba(167, 139, 250, 0.42), transparent 60%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.store-catalog { margin-top: 16px; }

.store-section-title {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--muted);
	font-weight: 700;
	letter-spacing: 0.22px;
	text-transform: uppercase;
}

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
	gap: 16px;
}

.catalog-card {
	background: rgba(255, 255, 255, 0.045);
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.catalog-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: var(--shadow-soft);
}

.catalog-card-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.catalog-copy {
	min-width: 0;
	flex: 1;
}

.catalog-title {
	margin: 0 0 6px;
	font-size: 20px;
}

.catalog-tagline {
	margin: 0;
	color: var(--muted);
}

.catalog-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.catalog-visual {
	width: 190px;
	height: 110px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background:
		radial-gradient(160px 90px at 30% 20%, rgba(91, 155, 255, 0.35), transparent 60%),
		radial-gradient(170px 100px at 80% 40%, rgba(167, 139, 250, 0.30), transparent 60%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

@media (max-width: 980px) {
	.catalog-grid { grid-template-columns: 1fr; }
	.catalog-card-inner { flex-direction: column; }
	.catalog-side { align-items: flex-start; }
	.catalog-visual, .featured-visual { width: 100%; }
}

.featured-product {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
		radial-gradient(900px 260px at 20% 0%, rgba(91, 155, 255, 0.22), transparent 60%),
		radial-gradient(900px 260px at 90% 0%, rgba(167, 139, 250, 0.18), transparent 60%),
		var(--panel);
}

.featured-product-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.featured-title {
	font-size: 26px;
	letter-spacing: 0.2px;
}

.product-row {
	background: rgba(255, 255, 255, 0.045);
	box-shadow: var(--shadow);
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.product-row:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
}

.product-row-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.product-row-title { font-size: 18px; }

@media (max-width: 860px) {
	.product-row-inner { flex-direction: column; align-items: flex-start; }
}

.product-card {
	grid-column: auto;
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
		radial-gradient(900px 300px at 20% 0%, rgba(167, 139, 250, 0.14), transparent 55%),
		var(--panel);
	box-shadow: var(--shadow);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 180px at 70% 0%, rgba(91, 155, 255, 0.18), transparent 60%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
	opacity: 0.65;
	pointer-events: none;
}

.product-card::after {
	content: "";
	position: absolute;
	inset: -40% -60%;
	background: linear-gradient(
		120deg,
		transparent 0%,
		rgba(255, 255, 255, 0.05) 40%,
		rgba(255, 255, 255, 0.18) 50%,
		rgba(255, 255, 255, 0.06) 60%,
		transparent 100%
	);
	transform: translateX(-55%) rotate(10deg);
	opacity: 0;
	transition: transform 650ms ease, opacity 650ms ease;
	pointer-events: none;
}

.product-card-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 0;
}

.product-card .card-inner { padding: 22px; }

.product-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-soft);
	border-color: rgba(255, 255, 255, 0.20);
}

.product-card:hover::after {
	opacity: 1;
	transform: translateX(55%) rotate(10deg);
}

.product-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.product-title {
	margin: 0 0 6px;
	font-size: 24px;
	letter-spacing: 0.2px;
}

.product-tagline {
	margin: 0;
	color: var(--muted);
}

.product-cta {
	margin-top: auto;
	padding-top: 14px;
}

/* Featured product card (used on home page) */
.product-card-featured {
	grid-column: span 12;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
		radial-gradient(900px 260px at 20% 0%, rgba(91, 155, 255, 0.22), transparent 60%),
		radial-gradient(900px 260px at 90% 0%, rgba(167, 139, 250, 0.18), transparent 60%),
		var(--panel);
}

.feature-tile {
	background: var(--panel-2);
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.12);
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.feature-tile:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.11);
	border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 860px) {
	.product-grid { grid-template-columns: 1fr; }
	.product-card { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
	body { animation: none; }
	.nav a,
	.btn,
	.product-card { transition: none; }
	.product-card:hover { transform: none; }
	.product-card::after { transition: none; opacity: 0; }
	.feature-tile { transition: none; }
	.feature-tile:hover { transform: none; }
	.product-row { transition: none; }
	.product-row:hover { transform: none; }
	.catalog-card { transition: none; }
	.catalog-card:hover { transform: none; }
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.pill::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
}

.pill-success {
	border-color: rgba(34, 197, 94, 0.40);
	background: rgba(34, 197, 94, 0.14);
	color: #d9ffe8;
}

.pill-success::before { background: rgba(34, 197, 94, 0.95); }

.pill-warning {
	border-color: rgba(245, 158, 11, 0.45);
	background: rgba(245, 158, 11, 0.14);
	color: #ffefd2;
}

.pill-warning::before { background: rgba(245, 158, 11, 0.95); }

.pill-danger {
	border-color: rgba(239, 68, 68, 0.48);
	background: rgba(239, 68, 68, 0.14);
	color: #ffd7d7;
}

.pill-danger::before { background: rgba(239, 68, 68, 0.95); }

.pill-neutral {
	border-color: rgba(167, 139, 250, 0.40);
	background: rgba(167, 139, 250, 0.12);
	color: #efe9ff;
}

.pill-neutral::before { background: rgba(167, 139, 250, 0.95); }

/* Account page: make Subscription status clearer/larger */
.subscription-status {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.subscription-status-label {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.subscription-status .pill {
	font-size: 16px;
	font-weight: 800;
	padding: 8px 12px;
}

.subscription-status .pill::before {
	width: 13px;
	height: 13px;
}

.subscription-content {
	margin-top: 12px;
}

.subscription-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }

.table-center th,
.table-center td {
	text-align: center;
	vertical-align: middle;
}

.table-center time {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

pre {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border);
	padding: 12px;
	border-radius: 12px;
	overflow: auto;
}

.section-divider {
	border: 0;
	border-top: 2px solid var(--border);
	margin: 26px 0;
}

@media (max-width: 720px) {
	.hero h1 { font-size: 32px; }
	.container { padding: 16px; }
	.nav { gap: 8px; }
}

@media (max-width: 860px) {
	html,
	body {
		overflow-x: hidden;
		max-width: 100%;
	}

	.header-inner {
		flex-wrap: wrap;
	}

	.brand {
		width: 100%;
		justify-content: center;
	}

	.nav {
		width: 100%;
		padding: 0;
		flex-wrap: wrap;
		justify-content: center;
	}

	main.container {
		padding-top: 120px;
	}

	.grid {
		grid-template-columns: 1fr;
	}

	.grid > * {
		grid-column: 1 / -1 !important;
	}

	.card-inner {
		padding: 16px;
	}

	.btn-row {
		gap: 12px;
	}

	.btn-row .btn {
		width: 100%;
	}

	/* Prevent iOS Safari auto-zoom on form field focus */
	input,
	select,
	textarea {
		font-size: 16px;
	}

	.table-scroll {
		max-width: 100vw;
	}

	.table-scroll table {
		width: 100%;
		min-width: 0;
		table-layout: fixed;
	}

	.table-center time {
		white-space: normal;
	}

	.table-center th,
	.table-center td {
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
	}
}
