/* ============================================================
   PSB 2023 — Siberia.es Inspired Design System
   ============================================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #f0ece2;
  --bg-secondary: #e8e4da;
  --bg-dark: #1a1a1a;
  --text-primary: #000000;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-light: #f0ece2;
  --accent-green: #00c853;
  --accent-red: #ff1744;
  --border-color: #000000;
  --border-light: rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-mono: 'Space Mono', monospace;
  --fs-xs: 0.625rem;    /* 10px */
  --fs-sm: 0.75rem;     /* 12px */
  --fs-base: 0.875rem;  /* 14px */
  --fs-md: 1rem;        /* 16px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.375rem;    /* 22px */
  --fs-2xl: 2rem;       /* 32px */
  --fs-3xl: 3rem;       /* 48px */
  --fs-4xl: 4.5rem;     /* 72px */
  --fs-5xl: 6rem;       /* 96px */
  --fs-hero: clamp(3rem, 8vw, 9rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 80px;
  --side-menu-width: 300px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Utility Classes --- */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

.fs-xs { font-size: var(--fs-xs); }
.fs-sm { font-size: var(--fs-sm); }
.fs-base { font-size: var(--fs-base); }
.fs-md { font-size: var(--fs-md); }
.fs-lg { font-size: var(--fs-lg); }
.fs-xl { font-size: var(--fs-xl); }
.fs-2xl { font-size: var(--fs-2xl); }
.fs-3xl { font-size: var(--fs-3xl); }
.fs-4xl { font-size: var(--fs-4xl); }
.fs-5xl { font-size: var(--fs-5xl); }
.fs-hero { font-size: var(--fs-hero); }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.w-full { width: 100%; }
.mw-800 { max-width: 800px; }
.mw-1200 { max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

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

.px-page { padding-left: clamp(1.5rem, 4vw, 4rem); padding-right: clamp(1.5rem, 4vw, 4rem); }
.py-section { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }

.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-underline:hover {
  opacity: 1;
  text-decoration-thickness: 2px;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-base);
}

.site-header.scrolled {
  background: rgba(240, 236, 226, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

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

/* Logo */
.logo {
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

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

/* Hamburger Menu Toggle */
.menu-toggle {
  width: 32px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* CTA Button (Header) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--text-primary);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--text-primary);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  opacity: 1;
}

/* Claim Text (header tagline) */
.header-claim {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  max-width: 200px;
  text-align: center;
}

/* --- Side Menu (Overlay) --- */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--side-menu-width);
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-height) + 2rem) var(--space-lg) var(--space-lg);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  border-right: 1px solid var(--border-light);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.side-menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.side-menu .menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.side-menu .menu-list a {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
}

.side-menu .menu-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width var(--transition-base);
}

.side-menu .menu-list a:hover::after {
  width: 100%;
}

.side-menu .menu-list a:hover {
  opacity: 1;
}

.side-menu .menu-list a.active {
  opacity: 1;
}

.side-menu .menu-list a.active::after {
  width: 100%;
}

.side-menu .menu-footer {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 2;
  color: var(--text-muted);
}

/* Color bars next to menu items */
.side-menu .menu-list li {
  position: relative;
}

.side-menu .menu-list li .color-bar {
  position: absolute;
  left: calc(-1 * var(--space-lg));
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  border-radius: 2px;
  transition: height var(--transition-base);
}

.side-menu .menu-list li:hover .color-bar,
.side-menu .menu-list li .active ~ .color-bar {
  height: 100%;
}

.side-menu .menu-list li:nth-child(1) .color-bar { background: linear-gradient(180deg, #f5edbe, #eb8e58, #5398ec); }
.side-menu .menu-list li:nth-child(2) .color-bar { background: linear-gradient(180deg, #c4f0c5, #45d34a); }
.side-menu .menu-list li:nth-child(3) .color-bar { background: linear-gradient(180deg, #ff6b6b, #ee5a24); }
.side-menu .menu-list li:nth-child(4) .color-bar { background: linear-gradient(180deg, #74b9ff, #0984e3); }

/* --- Hero Section --- */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-xl)) clamp(1.5rem, 4vw, 4rem) var(--space-xl);
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xl);
}

/* --- Sections --- */
.section {
  padding: var(--space-3xl) clamp(1.5rem, 4vw, 4rem);
  position: relative;
}

.section-label {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-title-lg {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-text {
  font-size: var(--fs-xl);
  line-height: 1.7;
  max-width: 670px;
}

/* --- Steps List (Alur Pendaftaran) --- */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  cursor: default;
  transition: all var(--transition-base);
}

.step-item:first-child {
  border-top: 1px solid var(--border-light);
}

.step-item:hover {
  padding-left: var(--space-sm);
}

.step-number {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  min-width: 40px;
  color: var(--text-muted);
}

.step-title {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

.step-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  display: block;
}

/* --- Project/Feature List (Jurusan) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:nth-child(1)::before { background: linear-gradient(90deg, #f5edbe, #eb8e58); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, #c4f0c5, #45d34a); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, #74b9ff, #0984e3); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, #ff6b6b, #ee5a24); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, #fd79a8, #e84393); }

.feature-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.feature-card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.feature-card-text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- CTA Section --- */
.section-cta {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) clamp(1.5rem, 4vw, 4rem);
}

.cta-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.cta-subtitle {
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 2.5rem;
  border: 2px solid var(--text-primary);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--text-primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  opacity: 1;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 2.5rem;
  border: 2px solid var(--text-primary);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--text-primary);
  color: var(--bg-primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-solid:hover {
  background: transparent;
  color: var(--text-primary);
  opacity: 1;
}

.btn-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--accent-green);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-green);
  color: #fff;
}

.btn-success-pill::before {
  content: '✓';
}

/* --- Forms (Siberia Style) --- */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 2px solid var(--border-light);
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--text-primary);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: var(--fs-base);
}

/* Checkbox styled */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--text-primary);
  cursor: pointer;
}

.checkbox-wrapper label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
}

/* --- Cards (Siberia Style) --- */
.card-siberia {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.3);
  transition: border-color var(--transition-base);
}

.card-siberia:hover {
  border-color: var(--text-primary);
}

.card-siberia-header {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

/* Data Row */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  min-width: 120px;
}

.data-value {
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: right;
  flex: 1;
}

/* --- Profile Card --- */
.profile-card {
  text-align: center;
  padding: var(--space-xl);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  margin: 0 auto var(--space-md);
  object-fit: cover;
}

.profile-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.profile-code {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Info Panel --- */
.info-panel {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.info-panel-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.info-panel p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.info-panel strong, .info-panel b {
  color: var(--text-primary);
}

/* --- Signature Block --- */
.signature-block {
  text-align: right;
  margin-top: var(--space-xl);
  font-size: var(--fs-base);
}

.signature-block .sign-line {
  width: 200px;
  border-bottom: 1px solid var(--text-primary);
  margin: var(--space-xl) 0 var(--space-xs) auto;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-xl) clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-left {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 2;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: var(--space-md);
}

.footer-right a {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Text hacker/scramble animation placeholder */
.text-scramble {
  display: inline-block;
}

/* --- Page Layouts --- */

/* Login & Register Layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-lg)) clamp(1.5rem, 4vw, 4rem) var(--space-xl);
}

.auth-container {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.auth-branding {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-branding-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}

.auth-branding-subtitle {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
}

.auth-form-wrapper {
  max-width: 420px;
  width: 100%;
}

.auth-form-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xl);
}

.auth-form-footer {
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-form-footer a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Timeline/Dashboard Layout */
.dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-main {
  flex: 1;
  padding: calc(var(--header-height) + var(--space-lg)) clamp(1.5rem, 4vw, 4rem) var(--space-xl);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-welcome {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.dashboard-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* Logout link */
.logout-link {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-md);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.logout-link:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 480px;
  }

  .auth-branding {
    text-align: center;
    align-items: center;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-claim {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .step-item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .step-title {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-cta {
    min-height: 60vh;
  }

  .cta-title {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }

  .btn-cta span.cta-full {
    display: none;
  }

  .btn-cta span.cta-short {
    display: inline;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .btn-cta span.cta-short {
    display: none;
  }
}

@media (max-width: 480px) {
  .side-menu {
    width: 100%;
  }

  .data-row {
    flex-direction: column;
    gap: 4px;
  }

  .data-value {
    text-align: left;
  }

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

  .signature-block .sign-line {
    margin: var(--space-xl) auto var(--space-xs);
  }
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */

/* --- Dashboard Page Layout --- */
.dashboard-page {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-3xl);
  padding-left: clamp(1.5rem, 5vw, 5rem);
  padding-right: clamp(1.5rem, 5vw, 5rem);
  min-height: 100vh;
}

.dashboard-main {
  max-width: 1100px;
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.dashboard-welcome {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.dashboard-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* stagger 5 & 6 for extra cards */
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* --- Alert Messages --- */
.alert-success {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--accent-green);
  border-radius: 4px;
  margin-bottom: var(--space-lg);
  background: rgba(0, 200, 83, 0.06);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-green);
}

.alert-error {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--accent-red);
  border-radius: 4px;
  margin-bottom: var(--space-lg);
  background: rgba(255, 23, 68, 0.06);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-red);
}

.alert-error p,
.alert-success p {
  margin: 0;
}

/* --- Stat Cards Grid --- */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.stat-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  opacity: 1;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card--success::before { background: var(--accent-green); }
.stat-card--danger::before { background: var(--accent-red); }
.stat-card--warning::before { background: #f5a623; }

.stat-number {
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
}

.stat-card--success .stat-number { color: var(--accent-green); }
.stat-card--danger .stat-number { color: var(--accent-red); }
.stat-card--warning .stat-number { color: #f5a623; }

.stat-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* --- Admin Section Title --- */
.admin-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

/* --- Admin Actions --- */
.admin-actions {
  margin-bottom: var(--space-xl);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* --- Admin Section Container --- */
.admin-section {
  margin-bottom: var(--space-xl);
}

/* --- Admin Table --- */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}

.admin-table thead {
  background: rgba(0, 0, 0, 0.03);
}

.admin-table th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.admin-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mono code display */
.mono-code {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* --- Status Badges --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-success {
  background: rgba(0, 200, 83, 0.1);
  color: #00a844;
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-danger {
  background: rgba(255, 23, 68, 0.1);
  color: #d50032;
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.badge-warning {
  background: rgba(245, 166, 35, 0.1);
  color: #c48400;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

/* Result Pill (timeline page) */
.btn-danger-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--accent-red);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-red);
  color: #fff;
}

.btn-danger-pill::before {
  content: '✕';
}

.btn-warning-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1.2rem;
  border: 2px solid #f5a623;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f5a623;
  color: #fff;
}

.btn-warning-pill::before {
  content: '⏳';
}

/* --- Table Action Buttons --- */
.table-actions {
  display: flex;
  gap: 6px;
}

.btn-table {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-table:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  opacity: 1;
}

.btn-table--danger:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* --- Admin Toolbar (Search & Filter) --- */
.admin-toolbar {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.toolbar-search {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
}

.toolbar-search .form-input {
  flex: 1;
}

.toolbar-search .btn-solid {
  padding: 0.6rem 1.5rem;
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* --- Filter Chips --- */
.filter-chip {
  padding: 0.35rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--text-primary);
  opacity: 1;
}

.filter-chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  opacity: 1;
}

.filter-chip--success.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.filter-chip--danger.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.filter-chip--warning.active {
  background: #f5a623;
  border-color: #f5a623;
  color: #fff;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  border: 1px dashed var(--border-light);
  border-radius: 4px;
}

/* --- Form Extensions --- */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
  padding-right: 20px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: var(--space-sm);
  line-height: 1.6;
}

.form-textarea:focus {
  border-color: var(--text-primary);
}

.form-divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-lg) 0;
}

.form-hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* --- Settings Page --- */
.settings-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* --- Auth Container Wide --- */
.auth-container--wide {
  max-width: 1200px;
}

/* --- Admin Responsive --- */
@media (max-width: 768px) {
  .dashboard-page {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    padding-top: calc(var(--header-height) + var(--space-lg));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: var(--fs-3xl);
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn-primary {
    text-align: center;
    justify-content: center;
  }

  .toolbar-search {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .toolbar-search .btn-solid {
    width: 100%;
    justify-content: center;
  }

  .admin-table {
    font-size: var(--fs-xs);
  }

  .admin-table th,
  .admin-table td {
    padding: var(--space-xs) var(--space-sm);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-filters {
    flex-direction: column;
  }

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