/* ============================================================
   PARLIMEN BELIA MALAYSIA — Design System
   Theme: Blue, Red, Light Grey | Minimalist & Modern
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Primary Palette */
  --blue-900: #0a1628;
  --blue-800: #0d2246;
  --blue-700: #0f3460;
  --blue-600: #1a4d8a;
  --blue-500: #1e63b3;
  --blue-400: #3a80d2;
  --blue-300: #6aa9e8;
  --blue-100: #dbeafb;
  --blue-50: #eef5fc;

  --red-600: #c0392b;
  --red-500: #e63946;
  --red-400: #ee6b75;
  --red-100: #fde8ea;

  --grey-900: #1a1a2e;
  --grey-700: #3e3e5e;
  --grey-500: #6b7280;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f1f5f9;
  --grey-50: #f8fafc;

  --white: #ffffff;
  --black: #0a0a0a;

  /* Semantic */
  --color-primary: var(--blue-600);
  --color-primary-d: var(--blue-700);
  --color-accent: var(--red-500);
  --color-surface: var(--white);
  --color-bg: var(--grey-50);
  --color-text: var(--grey-900);
  --color-muted: var(--grey-500);
  --color-border: var(--grey-200);
  --color-card: var(--white);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 52, 96, 0.10), 0 1px 4px rgba(15, 52, 96, 0.06);
  --shadow-lg: 0 10px 40px rgba(15, 52, 96, 0.14), 0 2px 8px rgba(15, 52, 96, 0.08);
  --shadow-blue: 0 6px 24px rgba(30, 99, 179, 0.28);
  --shadow-red: 0 6px 24px rgba(230, 57, 70, 0.28);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease);
  --transition-md: 300ms var(--ease);
  --transition-slow: 500ms var(--ease);

  /* Nav */
  --nav-height: 68px;
  --header-height: 58px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ── App Shell ─────────────────────────────────────────── */
#app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(15, 52, 96, 0.15);
}

/* ── Header ────────────────────────────────────────────── */
#app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: 100;
  transition: background var(--transition-md);
}

#app-header.hidden {
  transform: translateX(-50%) translateY(-100%);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-blue);
}

.header-logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.2;
}

.header-logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--grey-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-btn {
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
  font-size: 16px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-btn:hover {
  background: var(--blue-100);
  color: var(--color-primary);
}

/* ── Bottom Navigation ─────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 var(--space-sm);
  transition: transform var(--transition-md);
}

#bottom-nav.hidden {
  transform: translateX(-50%) translateY(100%);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--space-xs) 0;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--grey-400);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  color: var(--color-primary);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item .nav-icon {
  font-size: 22px;
  transition: transform var(--transition-fast);
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-item .nav-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

/* ── App Content Area ──────────────────────────────────── */
#app-content {
  padding-top: var(--header-height);
  padding-bottom: var(--nav-height);
  min-height: 100vh;
}

/* When header/nav hidden (landing/login) */
#app-content.fullscreen {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Page Transitions ──────────────────────────────────── */
.page {
  display: none;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  animation: pageEnter 0.3s var(--ease) both;
}

.page.active {
  display: block;
}

.fullscreen .page.active {
  min-height: 100vh;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Typography ────────────────────────────────────────── */
h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--grey-500);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8em 1.8em;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.10);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(30, 99, 179, 0.38);
}

.btn-accent {
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  color: white;
  box-shadow: var(--shadow-red);
}

.btn-accent:hover {
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--blue-50);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-500);
}

.btn-ghost:hover {
  background: var(--grey-100);
  color: var(--grey-700);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.55em 1.3em;
}

.btn-lg {
  font-size: 1rem;
  padding: 1em 2.2em;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 0.55em;
  border-radius: var(--radius-sm);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-body {
  padding: var(--space-lg);
}

.card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge-red {
  background: var(--red-100);
  color: var(--red-600);
}

.badge-grey {
  background: var(--grey-100);
  color: var(--grey-500);
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

/* ── Form Elements ──────────────────────────────────────── */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 99, 179, 0.12);
}

.form-input::placeholder {
  color: var(--grey-300);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-input {
  padding-left: 2.8em;
}

.input-icon {
  position: absolute;
  left: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  font-size: 1.05em;
  pointer-events: none;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--grey-300);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}

/* ── Alert / Toast ──────────────────────────────────────── */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.alert-info {
  background: var(--blue-50);
  color: var(--blue-700);
  border-left: 3px solid var(--blue-400);
}

.alert-error {
  background: var(--red-100);
  color: var(--red-600);
  border-left: 3px solid var(--red-500);
}

/* ── Utility ────────────────────────────────────────────── */
.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--grey-500);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.8rem;
}

.text-xs {
  font-size: 0.7rem;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.w-full {
  width: 100%;
}

.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.px-lg {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hidden {
  display: none !important;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 9999px;
}

/* ============================================================
   PAGE: LANDING
   ============================================================ */
#page-landing {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-500) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.landing-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  position: relative;
  z-index: 1;
  text-align: center;
}

.landing-emblem {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
  animation: emblem-pulse 3s ease-in-out infinite;
}

@keyframes emblem-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
}

.landing-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.landing-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-2xl);
  max-width: 280px;
  line-height: 1.7;
}

.landing-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.landing-stat {
  text-align: center;
}

.landing-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.landing-stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.landing-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.landing-actions .btn-primary {
  background: white;
  color: var(--blue-700);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.landing-actions .btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.landing-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.landing-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.landing-footer {
  padding: var(--space-xl);
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

/* Wave separator on landing */
.landing-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

/* ============================================================
   PAGE: LOGIN
   ============================================================ */
#page-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.login-hero {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: var(--space-2xl) var(--space-xl) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  clip-path: ellipse(100% 88% at 50% 0%);
}

.login-logo {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.login-hero h2 {
  color: white;
  font-size: 1.4rem;
}

.login-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  margin-top: 4px;
}

.login-form-section {
  flex: 1;
  padding: var(--space-xl) var(--space-xl);
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-100);
}

.login-tabs {
  display: flex;
  gap: 0;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: var(--space-xl);
}

.login-tab {
  flex: 1;
  padding: 0.5em;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: calc(var(--radius-md) - 3px);
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  color: var(--grey-500);
  font-family: inherit;
}

.login-tab.active {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.login-opt-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.9em var(--space-md);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: white;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.login-opt-btn:hover {
  border-color: var(--color-primary);
  background: var(--blue-50);
  color: var(--blue-700);
}

.login-opt-icon {
  font-size: 1.3rem;
}

/* ============================================================
   PAGE: DASHBOARD (Home)
   ============================================================ */
.dash-welcome-card {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: white;
  margin: var(--space-md);
  position: relative;
  overflow: hidden;
}

.dash-welcome-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -40px;
  top: -40px;
}

.dash-welcome-card::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  right: 60px;
  bottom: -30px;
}

.dash-welcome-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-top: 4px;
}

.dash-welcome-tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.dash-welcome-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.dash-ws {
  text-align: center;
}

.dash-ws-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.dash-ws-lbl {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-md) var(--space-sm);
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grey-900);
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: 0 var(--space-md) var(--space-md);
}

.module-card {
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--white);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.module-card:active {
  transform: scale(0.96);
}

.module-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.module-icon.blue {
  background: var(--blue-100);
}

.module-icon.red {
  background: var(--red-100);
}

.module-icon.grey {
  background: var(--grey-100);
}

.module-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.25;
}

.module-desc {
  font-size: 0.65rem;
  color: var(--grey-500);
  line-height: 1.4;
}

.module-count {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.65rem;
  color: var(--color-primary);
  font-weight: 600;
}

.activity-list {
  padding: 0 var(--space-md) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--grey-100);
  transition: background var(--transition-fast);
}

.activity-item:hover {
  background: var(--grey-50);
}

.activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.activity-text {
  flex: 1;
}

.activity-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-900);
}

.activity-sub {
  font-size: 0.7rem;
  color: var(--grey-500);
  margin-top: 1px;
}

.activity-time {
  font-size: 0.65rem;
  color: var(--grey-400);
}

/* ============================================================
   PAGE: PENDAFTARAN BELIA
   ============================================================ */
.module-header {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: var(--space-xl) var(--space-lg);
  color: white;
}

.module-header-back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.module-header-back:hover {
  color: white;
}

.module-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
}

.module-header-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.form-section {
  padding: var(--space-lg) var(--space-md);
}

.form-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--blue-100);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--space-lg) var(--space-md) 0;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--grey-300);
  color: var(--grey-400);
  background: white;
  transition: all var(--transition-md);
}

.step-dot.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.step-dot.done {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--grey-200);
  transition: background var(--transition-md);
}

.step-line.done {
  background: var(--color-primary);
}

/* ============================================================
   PAGE: PENGURUSAN PARTI
   ============================================================ */
.parti-header-wrap {
  background: linear-gradient(135deg, var(--grey-900), var(--grey-700));
}

.parti-stats-row {
  display: flex;
  padding: 0 var(--space-md) var(--space-md);
  gap: var(--space-md);
}

.parti-stat-card {
  flex: 1;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--grey-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.parti-stat-card-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--grey-900);
}

.parti-stat-card-lbl {
  font-size: 0.65rem;
  color: var(--grey-500);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.parti-list {
  padding: 0 var(--space-md) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.parti-member {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--grey-100);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.parti-member:hover {
  background: var(--grey-50);
  box-shadow: var(--shadow-sm);
}

.parti-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--grey-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.parti-member-info {
  flex: 1;
}

.parti-member-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-900);
}

.parti-member-role {
  font-size: 0.7rem;
  color: var(--grey-500);
  margin-top: 2px;
}

.parti-member-status {
  flex-shrink: 0;
}

/* ============================================================
   PAGE: PENGUNDIAN (VOTING)
   ============================================================ */
.voting-header-wrap {
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
}

.voting-countdown {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.voting-countdown span {
  font-weight: 700;
  color: white;
}

.candidate-list {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.candidate-card {
  border-radius: var(--radius-lg);
  border: 2px solid var(--grey-200);
  background: var(--white);
  overflow: hidden;
  transition: all var(--transition-md);
  cursor: pointer;
}

.candidate-card.selected {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.10);
}

.candidate-card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-md);
}

.candidate-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}

.candidate-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--grey-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--grey-100);
  overflow: hidden;
}

.candidate-info {
  flex: 1;
}

.candidate-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey-900);
}

.candidate-parti {
  font-size: 0.72rem;
  color: var(--grey-500);
  margin-top: 2px;
}

.candidate-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--grey-300);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.candidate-card.selected .candidate-num {
  color: var(--red-500);
}

.candidate-bar-wrap {
  padding: 0 var(--space-md) var(--space-md);
}

.candidate-bar-bg {
  height: 5px;
  background: var(--grey-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.candidate-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
  border-radius: var(--radius-full);
  transition: width 0.8s var(--ease);
}

.vote-btn-wrap {
  padding: var(--space-md);
  padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
}

.vote-btn {
  width: 100%;
  padding: 1em;
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.vote-btn:hover {
  box-shadow: 0 10px 36px rgba(230, 57, 70, 0.4);
  transform: translateY(-1px);
}

.vote-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-md);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-xl);
  padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform var(--transition-md);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.5s var(--ease) both;
}

.animate-scale-in {
  animation: scaleIn 0.4s var(--ease-bounce) both;
}

/* Stagger utility */
.stagger-1 {
  animation-delay: 0.05s;
}

.stagger-2 {
  animation-delay: 0.10s;
}

.stagger-3 {
  animation-delay: 0.15s;
}

.stagger-4 {
  animation-delay: 0.20s;
}

.stagger-5 {
  animation-delay: 0.25s;
}

.stagger-6 {
  animation-delay: 0.30s;
}

/* ── Profile Page ───────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  text-align: center;
  color: white;
}

.profile-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto var(--space-md);
  overflow: hidden;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.profile-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.profile-list-section {
  padding: var(--space-md);
}

.profile-list-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey-400);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.profile-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.profile-list-item:hover {
  background: var(--grey-50);
}

.profile-list-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.profile-list-text {
  flex: 1;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--grey-800);
}

.profile-list-arrow {
  color: var(--grey-300);
  font-size: 1.1rem;
}

/* ── Notif Page ─────────────────────────────────────────── */
.notif-list {
  padding: var(--space-sm) var(--space-md) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.notif-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-100);
  background: var(--white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.notif-item.unread {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.notif-item:hover {
  background: var(--grey-50);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-dot.read {
  background: transparent;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--grey-900);
}

.notif-body {
  font-size: 0.77rem;
  color: var(--grey-500);
  margin-top: 2px;
  line-height: 1.5;
}

.notif-time {
  font-size: 0.65rem;
  color: var(--grey-400);
  margin-top: 4px;
}