:root {
  --bg: #0b0a0d;
  --bg-2: #15131a;
  --bg-3: #211d27;

  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(215, 215, 220, 0.14);

  --text: #f5f5f7;
  --muted: #b9b7bf;

  --primary: #ef7441;
  --primary-2: #e7b458;
  --accent: #d7d8de;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1200px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(239, 116, 65, 0.14), transparent 24%),
    radial-gradient(circle at left center, rgba(231, 180, 88, 0.10), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-title {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-tag,
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-title h2,
.page-hero h1,
.hero h1 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
}

.section-title p,
.muted,
.card p,
.card li,
.page-hero p,
.hero p,
.stat-box p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}

.card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 116, 65, 0.12);
  border: 1px solid rgba(239, 116, 65, 0.24);
  color: #ffd2bd;
  font-size: 0.85rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(14, 12, 17, 0.88);
  border-bottom: 1px solid rgba(215, 216, 222, 0.08);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-subtext {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(239, 116, 65, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

.btn-full {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 1.7rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 8, 10, 0.97);
}

.mobile-menu a.active {
  color: white;
}

.mobile-menu.active {
  display: flex;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8, 8, 10, 0.88), rgba(8, 8, 10, 0.42)),
    url("assets/hero-bg.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 5rem 0;
  max-width: 900px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.3rem);
  margin-bottom: 1rem;
}

.hero h1 span,
.page-hero h1 span {
  background: linear-gradient(135deg, #ffffff, #f0ba63, #ef7441);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(12px);
}

.stat-box h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.page-hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(239,116,65,0.08), rgba(231,180,88,0.03)),
    linear-gradient(180deg, rgba(7,11,20,0.65), rgba(7,11,20,0.88));
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.list-check li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f0ba63;
}

.cta-band {
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 116, 65, 0.12), rgba(231, 180, 88, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.staff-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.role-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #ffd2bd;
  font-weight: 700;
  font-size: 0.9rem;
}

.rule-block h3 {
  margin-bottom: 0.7rem;
}

.social-icon-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.icon-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  transition: var(--transition);
}

.icon-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(7, 10, 17, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.legal-content {
  display: grid;
  gap: 1.25rem;
}

.legal-content .card h3 {
  margin-bottom: 0.75rem;
}

.legal-content .card p + p,
.legal-content .card ul {
  margin-top: 0.9rem;
}

.spacer-top {
  margin-top: 1rem;
}

.spacer-lg {
  margin-top: 2rem;
}

.center {
  text-align: center;
}

@media (max-width: 1024px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* SERVER STATUS */

.status-grid{
display:grid;
grid-template-columns:2fr 1fr;
gap:20px;
}

.status-pill{
display:inline-flex;
align-items:center;
gap:8px;
padding:6px 14px;
border-radius:999px;
font-weight:600;
font-size:14px;
border:1px solid rgba(255,255,255,0.15);
}

.status-dot{
width:10px;
height:10px;
border-radius:50%;
background:#999;
}

.status-pill.online .status-dot{
background:#4ade80;
}

.status-pill.offline .status-dot{
background:#ef4444;
}

.status-stats{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:15px;
margin-top:20px;
}

.status-stat{
background:rgba(255,255,255,0.05);
padding:15px;
border-radius:10px;
text-align:center;
}

.status-stat-value{
font-size:22px;
font-weight:700;
}

.status-meta{
margin-top:20px;
display:grid;
gap:10px;
}

.status-meta-row{
display:flex;
justify-content:space-between;
font-size:14px;
border-bottom:1px solid rgba(255,255,255,0.1);
padding-bottom:5px;
}

@media(max-width:900px){

.status-grid{
grid-template-columns:1fr;
}

.status-stats{
grid-template-columns:1fr;
}

}

<form method="POST" class="application-form">

<div class="form-section">
<h3>Basic Information</h3>

<div class="form-group">
<label>Age</label>
<input type="number" name="age" value="<?php echo htmlspecialchars($application['age']); ?>">
</div>

<div class="form-group">
<label>Region</label>
<input type="text" name="region" value="<?php echo htmlspecialchars($application['region']); ?>">
</div>
</div>


<div class="form-section">
<h3>Roleplay Experience</h3>

<div class="form-group">
<label>What experience do you have in the roleplay space?</label>
<textarea name="rp_experience"><?php echo htmlspecialchars($application['rp_experience']); ?></textarea>
</div>

<div class="form-group">
<label>What has made you apply for Second Life RP?</label>
<textarea name="why_second_life_rp"><?php echo htmlspecialchars($application['why_second_life_rp']); ?></textarea>
</div>
</div>


<div class="form-section">
<h3>Character Information</h3>

<div class="form-group">
<label>Character Name</label>
<input type="text" name="character_name" value="<?php echo htmlspecialchars($application['character_name']); ?>">
</div>

<div class="form-group">
<label>Character Backstory</label>
<small>Minimum 500 words recommended.</small>
<textarea name="character_backstory"><?php echo htmlspecialchars($application['character_backstory']); ?></textarea>
</div>
</div>


<div class="form-section">
<h3>Roleplay Knowledge</h3>

<div class="form-group">
<label>Define Meta-Gaming and provide two examples.</label>
<textarea name="metagaming_definition"><?php echo htmlspecialchars($application['metagaming_definition']); ?></textarea>
</div>

<div class="form-group">
<label>Define Fail RP and provide two examples.</label>
<textarea name="failrp_definition"><?php echo htmlspecialchars($application['failrp_definition']); ?></textarea>
</div>
</div>


<div class="form-section">
<h3>Scenario Questions</h3>

<div class="form-group">
<label>Clothing store robbery scenario</label>
<textarea name="scenario_1"><?php echo htmlspecialchars($application['scenario_1']); ?></textarea>
</div>

<div class="form-group">
<label>Street race accident scenario</label>
<textarea name="scenario_2"><?php echo htmlspecialchars($application['scenario_2']); ?></textarea>
</div>

<div class="form-group">
<label>Vehicle switching during police chase</label>
<textarea name="scenario_3"><?php echo htmlspecialchars($application['scenario_3']); ?></textarea>
</div>
</div>


<div class="form-section">
<h3>In-City Interests</h3>

<div class="form-group">
<label>What would your interests in-city be?</label>
<textarea name="city_interests"><?php echo htmlspecialchars($application['city_interests']); ?></textarea>
</div>
</div>


<div class="form-section">
<h3>Voice Recording</h3>

<div class="form-group">
<label>Vocaroo link</label>
<small>Record yourself saying: "The quick brown fox jumps over the lazy dog"</small>
<input type="text" name="voice_recording_link" value="<?php echo htmlspecialchars($application['voice_recording_link']); ?>">
</div>
</div>


<div class="form-section">
<h3>Confirmations</h3>

<label class="form-checkbox">
<input type="checkbox" name="confirm_original_answers" value="1"
<?php echo ((int)$application['confirm_original_answers'] === 1) ? 'checked' : ''; ?>>
All answers are my own work.
</label>

<label class="form-checkbox">
<input type="checkbox" name="confirm_rules_read" value="1"
<?php echo ((int)$application['confirm_rules_read'] === 1) ? 'checked' : ''; ?>>
I have read the server rules.
</label>

<label class="form-checkbox">
<input type="checkbox" name="confirm_no_ticket_tolerance" value="1"
<?php echo ((int)$application['confirm_no_ticket_tolerance'] === 1) ? 'checked' : ''; ?>>
I understand I should not open a ticket about my whitelist.
</label>

<label class="form-checkbox">
<input type="checkbox" name="confirm_follow_rules" value="1"
<?php echo ((int)$application['confirm_follow_rules'] === 1) ? 'checked' : ''; ?>>
I agree to follow the rules if accepted.
</label>

<div class="form-actions">
<button class="btn btn-primary" type="submit">Save Draft</button>
<a class="btn btn-secondary" href="/apply">Back</a>
</div>

</div>

</form>