/* =========================================================
   GAMING VPN — Portal (matches sandbox.vpn.ozot.com.au)
   Palette:
     --bg        #07070b  near-black base
     --surface   #12121c  card surface
     --red       #ff2d46  neon brand red (primary)
     --cyan      #22e0e8  electric secondary accent
     --gold      #d8b46a  premium accent (sparingly)
   Fonts: 'Chakra Petch' (display) + 'Inter' (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&display=swap');

:root {
	--bg: #07070b;
	--bg-2: #0c0c14;
	--surface: #12121c;
	--surface-2: #181826;
	--border: #25253a;
	--red: #ff2d46;
	--red-deep: #a61d1b;
	--red-glow: rgba(255, 45, 70, 0.55);
	--cyan: #22e0e8;
	--gold: #d8b46a;
	--text: #f3f3f8;
	--muted: #9a9ab2;
	--lime: #39ff8b;
	--radius: 14px;
	--maxw: 1200px;
	--display: 'Chakra Petch', 'Inter', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	background-image:
		radial-gradient(1200px 600px at 50% -10%, rgba(255, 45, 70, 0.14), transparent 70%),
		radial-gradient(900px 500px at 90% 10%, rgba(34, 224, 232, 0.06), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: auto, auto, 48px 48px, 48px 48px;
	background-attachment: fixed;
}

h1, h2, h3, .display {
	font-family: var(--display);
	letter-spacing: 0.5px;
	line-height: 1.12;
}

a { color: var(--cyan); text-decoration: none; }

::selection {
	background: var(--red);
	color: #fff;
}

/* =========================================================
   Header / Nav
   ========================================================= */

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	padding: 0 5vw;
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(7, 7, 11, 0.78);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-left-side {
	display: flex;
	align-items: center;
}

.header-logo {
	width: auto;
	height: 48px;
	display: block;
}

nav ul {
	background: var(--bg-2);
	position: fixed;
	z-index: 999;
	top: 0;
	right: 0;
	height: 100vh;
	margin: 0;
	list-style: none;
	width: 75%;
	max-width: 320px;
	padding: 1.5em;
	text-align: right;
	transform: translateX(0);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	border-left: 1px solid var(--border);
}

nav ul li { margin: 1em 0; }
nav ul li:nth-of-type(1) { margin-bottom: 2em; }

nav ul li a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.05rem;
	transition: color 0.2s;
}

nav ul li a:hover { color: var(--red); }

.nav-menu-button { width: 34px; height: auto; cursor: pointer; }
.nav-menu-close-button { width: 30px; height: auto; }

.open { transform: translateX(0%); }
nav ul.open { opacity: 1; visibility: visible; pointer-events: auto; }
.hide-on-mobile { display: none; }

/* =========================================================
   Section wrappers (legacy class names)
   ========================================================= */

[class^="html-prison-"] {
	width: 100%;
	height: auto;
	padding: 70px 5vw;
	text-align: center;
	position: relative;
	border-top: 1px solid var(--border);
}

.desktop-prison {
	max-width: var(--maxw);
	margin: 0 auto;
	width: 100%;
}

[class^="word-prison-"] {
	max-width: var(--maxw);
	margin: 0 auto;
	width: 100%;
}

/* Headings */
.h1-1 {
	color: var(--text);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	text-transform: uppercase;
	padding-top: 30px;
}

.h2-1 {
	margin-top: 40px;
	color: var(--text);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 700;
	text-transform: uppercase;
}

.h2-2 {
	margin-top: 30px;
	margin-bottom: 6px;
	color: var(--cyan);
	font-size: clamp(1.3rem, 3vw, 1.7rem);
	font-weight: 600;
	text-transform: uppercase;
}

/* Prose paragraphs */
.p-1, .p-1-1, .p-2, .p-3, .p-4, .p-5 {
	margin-top: 14px;
	font-size: 1.1rem;
	color: var(--muted);
}

main p { color: var(--muted); }

.img-1 { margin-top: 14px; width: 80%; max-width: 640px; height: auto; border-radius: var(--radius); }
.img-2 { margin-top: 14px; width: 100%; height: auto; border-radius: var(--radius); }

/* =========================================================
   Forms
   ========================================================= */

form {
	max-width: 460px;
	margin: 0 auto;
	text-align: left;
}

label {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.5px;
	color: var(--text);
	margin-bottom: 6px;
}

input {
	background: var(--surface);
	color: var(--text);
	width: 100%;
	height: 46px;
	padding: 0 14px;
	text-align: left;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(255, 45, 70, 0.2);
}

input::placeholder { color: var(--muted); font-size: 1rem; }

input[type="radio"], input[type="checkbox"] {
	width: auto;
	height: auto;
	accent-color: var(--red);
}

.button-container {
	max-width: none;
	margin: 0 auto;
	text-align: center;
}

/* =========================================================
   Buttons
   solid background-color so inline color overrides still win
   (account.php / service.php set style="background-color:...")
   ========================================================= */

button { font-family: var(--display); cursor: pointer; border: none; border-radius: 10px; }

.main-button {
	margin-top: 12px;
	margin-bottom: 6px;
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 1.2rem;
	padding: 13px 34px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	background-color: var(--red);
	color: #fff;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 0 22px var(--red-glow);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}

.main-button:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 0 38px var(--red-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
	color: #fff;
}

/* =========================================================
   Service cards (services.php / billing.php)
   ========================================================= */

.service-box {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 22px;
	margin-bottom: 20px;
	text-decoration: none;
	color: var(--text);
	text-align: left;
	transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

a:hover .service-box {
	background: var(--surface-2);
	border-color: rgba(255, 45, 70, 0.5);
	transform: translateY(-3px);
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-container {
	display: flex;
	justify-content: center;
	margin: 30px auto 0;
}

.pricing-box {
	background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
	border: 1px solid rgba(255, 45, 70, 0.5);
	border-radius: 18px;
	padding: 34px 30px;
	text-align: center;
	max-width: 420px;
	width: 100%;
	box-shadow: 0 0 50px rgba(255, 45, 70, 0.15);
	transition: transform 0.2s;
}

.pricing-box:hover { transform: translateY(-3px); }

.pricing-box h2 {
	font-size: 1.6rem;
	text-transform: uppercase;
	color: var(--text);
}

.pricing-box p {
	font-family: var(--display);
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--text);
}

.pricing-button-cta {
	width: 100%;
	margin-top: 18px;
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 1.3rem;
	padding: 14px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	background-color: var(--red);
	color: #fff;
	box-shadow: 0 0 22px var(--red-glow);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}

.pricing-button-cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 0 38px var(--red-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   Tables (e.g. order summaries)
   ========================================================= */

table {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.95rem;
}

th, td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
}

th {
	font-family: var(--display);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.8rem;
	color: var(--cyan);
}

/* =========================================================
   Stripe (update-card.php)
   ========================================================= */

#payment-form {
	max-width: 460px;
	margin: 24px auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Stripe Card Element renders default dark text — keep on a light field */
#card-element {
	background: #ffffff;
	border-radius: 8px;
	padding: 14px 12px;
	margin-top: 8px;
}

#card-errors { color: var(--red); font-size: 0.9em; margin-top: 8px; }

#messages {
	font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
	display: none;
	background-color: #0A253C;
	color: #00D924;
	padding: 20px;
	margin: 20px auto;
	max-width: 460px;
	border-radius: var(--radius);
	font-size: 0.7em;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
	width: 100%;
	text-align: center;
	padding: 50px 5vw;
	border-top: 1px solid var(--border);
	background: var(--bg-2);
	color: var(--muted);
}

footer .foot-brand {
	font-family: var(--display);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 14px;
}

footer p { margin: 4px 0; font-size: 0.92rem; }
footer .foot-accent { color: var(--red); }
footer a { color: var(--cyan); }

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 1024px) {
	.menu-open, .menu-close { display: none; }

	header { height: 80px; }
	.header-logo { height: 56px; }

	nav ul {
		background: transparent;
		position: relative;
		height: auto;
		width: auto;
		max-width: none;
		padding: 0;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		display: flex;
		align-items: center;
		border: none;
	}

	nav ul li { display: inline-flex; align-items: center; margin: 0 0 0 1.6em; }
	nav ul li:nth-of-type(1) { display: none; } /* close btn */
	nav ul li a { font-size: 1rem; }
}

@media (max-width: 600px) {
	[class^="html-prison-"] { padding: 50px 6vw; }
	.main-button, .pricing-button-cta { font-size: 1.1rem; }
	.header-logo { height: 44px; }
}

/* Recruit a Friend */
.referral-eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin-bottom: 20px; }
.referral-hero { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: center; text-align: left; }
.referral-hero h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -1px; margin-bottom: 22px; }
.referral-hero h1 span { color: var(--cyan); }
.referral-hero p { color: var(--muted); max-width: 650px; line-height: 1.7; }
.referral-hero .referral-friend-note { color: var(--text); margin-top: 14px; font-size: .94rem; }
.referral-reward { display: grid; justify-items: center; padding: 28px 18px; border: 1px solid var(--border); border-radius: 20px; background: radial-gradient(ellipse at top,rgba(255,45,70,.18),transparent 80%),var(--surface); }
.referral-reward strong { font-family: var(--display); font-size: 3rem; margin-top: 10px; }
.referral-reward span { color: var(--muted); font-size: .88rem; }
.referral-share { text-align: left; margin: 40px 0 28px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.referral-share h2 { margin-bottom: 24px; font-size: 1.4rem; }
.referral-share label { font-size: .86rem; color: var(--muted); display: block; margin-bottom: 8px; }
.referral-copy-row { display: flex; gap: 12px; }
.referral-share input { min-width: 0; margin: 0; font-size: .93rem; }
.referral-copy-row input { flex: 1; width: 100%; }
.referral-share button { margin: 0; padding: 12px 22px; font-size: .9rem; flex-shrink: 0; white-space: nowrap; }
.referral-code-row { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.referral-code-row label { margin: 0; }
.referral-code-row input { width: 190px; color: var(--cyan); font-family: monospace; letter-spacing: 1px; }
.referral-code-row button { background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.referral-copy-status { min-height: 1.6em; margin-top: 12px; font-size: .85rem; color: var(--cyan); }
.referral-steps { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: 0; gap: 18px; text-align: left; }
.referral-steps li { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: rgba(18,18,28,.75); }
.referral-steps li > span { color: var(--cyan); font-family: var(--display); font-size: 1.1rem; }
.referral-steps h2 { margin: 16px 0 12px; font-size: 1.2rem; }
.referral-steps p, .referral-policy { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.referral-policy { text-align: left; margin-top: 24px; max-width: 900px; }
.referral-share button:focus-visible, .referral-share a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
@media (max-width: 760px) {
    .referral-hero { grid-template-columns: 1fr; gap: 24px; }
    .referral-reward { grid-template-columns: 64px 1fr; text-align: left; justify-items: start; gap: 0 20px; padding: 20px; }
    .referral-reward img { grid-row: 1 / 3; width: 64px; height: 64px; align-self: center; }
    .referral-reward strong { margin: 0; font-size: 2.4rem; }
    .referral-share { padding: 22px; }
    .referral-copy-row { flex-direction: column; }
    .referral-copy-row input { flex: none; height: 46px; }
    .referral-steps { grid-template-columns: 1fr; }
}
