/*
 * ISU Cauayan Student Request Ticketing and Tracking System (SRTTS)
 * Main Stylesheet - Premium Redesign v2.0
 * Isabela State University, Cauayan Campus
 *
 * All colors are CSS custom properties on :root so the theme
 * can be changed from a single place.
 */

/* -----------------------------------------------------------------
 * Google Fonts: Inter (body) & Source Serif 4 (headings)
 * ----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

/* -----------------------------------------------------------------
 * KEYFRAME ANIMATIONS
 * ----------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58,99,238, 0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(58,99,238, 0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------------
 * CSS CUSTOM PROPERTIES (Color Variables)
 * ----------------------------------------------------------------- */
:root {
  /* ---- Core Palette ---- */
  --bg:            #F5F7FD;
  --bg-gradient:   linear-gradient(135deg, #F5F7FD 0%, #E6ECFF 50%, #EAEEFC 100%);
  --surface:       #FFFFFF;
  --surface-glass:  rgba(255, 255, 255, 0.72);
  --lilac:         #E3EAFF;
  --lilac-soft:    #F0F4FF;
  --lilac-border:  #E1E6F5;
  --lilac-accent:  #8FB0FF;
  --purple:        #3A63EE;
  --purple-hover:  #2F4FC4;
  --purple-deep:   #14216B;
  --purple-glow:   rgba(58,99,238, 0.18);
  --text:          #1F2544;
  --text-muted:    #5B648C;
  --text-light:    #939EB4;
  --input-bg:      #F8FAFF;
  --input-border:  #C8CFEC;

  /* ---- Accent Colors ---- */
  --accent-coral:   #F47B6C;
  --accent-amber:   #F5A623;
  --accent-emerald: #34C77B;
  --accent-sky:     #4A9EF5;

  /* ---- Semantic Alert Colors ---- */
  --success-bg:     #ECFDF3;
  --success-text:   #166534;
  --success-border: #86EFAC;
  --warning-bg:     #FFFBEB;
  --warning-text:   #B45309;
  --warning-border: #FDE68A;
  --danger-bg:      #FEF2F2;
  --danger-text:    #991B1B;
  --danger-border:  #FECACA;
  --info-bg:        #EFF6FF;
  --info-text:      #1E40AF;
  --info-border:    #BFDBFE;

  /* ---- Geometry ---- */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  100px;
  --radius-btn:   8px;
  --radius-input: 10px;
  --radius-card:  14px;
  --radius-modal: 20px;

  /* ---- Shadows ---- */
  --shadow-xs:  0 1px 2px rgba(42,57,99,0.05);
  --shadow-sm:  0 1px 4px rgba(42,57,99,0.07), 0 2px 8px rgba(42,57,99,0.04);
  --shadow-md:  0 4px 12px rgba(42,57,99,0.08), 0 8px 24px rgba(42,57,99,0.06);
  --shadow-lg:  0 8px 24px rgba(42,57,99,0.10), 0 16px 48px rgba(42,57,99,0.08);
  --shadow-xl:  0 16px 48px rgba(42,57,99,0.12), 0 32px 64px rgba(42,57,99,0.10);
  --shadow-glow: 0 4px 20px rgba(58,99,238, 0.25);
  --shadow-card-hover: 0 8px 30px rgba(58,99,238, 0.15), 0 2px 8px rgba(58,99,238, 0.08);

  /* ---- Typography ---- */
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- Sidebar ---- */
  --sidebar-width: 260px;

  /* ---- Transitions ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-mid:  0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

/* For pages that use the old header-based layout (landing, login, register) */
body.page-public {
  display: flex;
  flex-direction: column;
}

/* For logged-in pages with sidebar */
body.page-app {
  display: flex;
  flex-direction: row;
}

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

a:hover {
  color: var(--purple-hover);
  text-decoration: underline;
}

/* Visible focus outline for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--purple-deep);
  line-height: 1.25;
}

::selection {
  background: var(--lilac);
  color: var(--purple-deep);
}

/* -----------------------------------------------------------------
 * ICON SYSTEM (inline SVG via CSS)
 * ----------------------------------------------------------------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* Feature card icon containers */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--lilac) 0%, var(--lilac-soft) 100%);
  color: var(--purple);
  transition: transform var(--transition-fast), background var(--transition-mid);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--purple) 0%, var(--lilac-accent) 100%);
  color: #fff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* Sidebar nav icon */
.nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.sidebar-nav li a:hover .nav-icon,
.sidebar-nav li.active a .nav-icon {
  opacity: 1;
}

/* -----------------------------------------------------------------
 * LANDING PAGE TOP BAR
 * ----------------------------------------------------------------- */
.landing-topbar {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(211,216,238,0.6);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-mid), box-shadow var(--transition-mid);
}

.landing-topbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.92);
}

.landing-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.landing-topbar-brand img {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}

.landing-topbar-brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}

.landing-topbar-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--purple-deep);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.landing-topbar-brand .brand-campus {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
  font-weight: 500;
}

.brand-app {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: var(--purple);
  background: var(--lilac);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.landing-topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-topbar-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.landing-topbar-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
  transition: width var(--transition-fast), left var(--transition-fast);
}

.landing-topbar-nav a:not(.btn):hover::after {
  width: 24px;
  left: calc(50% - 12px);
}

.landing-topbar-nav a:hover {
  background-color: var(--lilac-soft);
  text-decoration: none;
}

/* Mobile menu toggle for landing page */
.landing-menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--lilac-border);
  color: var(--purple-deep);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  min-height: 44px;
  font-family: var(--font-body);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.landing-menu-toggle:hover {
  background: var(--lilac-soft);
  border-color: var(--lilac-accent);
}

/* -----------------------------------------------------------------
 * HERO SECTION
 * ----------------------------------------------------------------- */
.hero {
  padding: 80px 40px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1.5px solid var(--lilac-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--purple);
  font-weight: 600;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulseGlow 2s infinite;
  box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.35);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  color: var(--purple-deep);
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple) 0%, var(--lilac-accent) 60%, var(--accent-coral) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out 0.4s both, gradientShift 4s ease infinite;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Sample ticket card in hero */
.hero-ticket-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both, float 6s ease-in-out infinite 1s;
  position: relative;
  overflow: hidden;
}

.hero-ticket-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--lilac-accent) 50%, var(--accent-coral) 100%);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.preview-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-heading::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
}

.preview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.preview-meta > div {
  display: flex;
  flex-direction: column;
}

.preview-meta dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 3px;
}

.preview-meta dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-deep);
}

/* Hero ticket stepper */
.preview-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  gap: 8px;
}

.preview-steps li {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  background: var(--lilac-soft);
  color: var(--text-muted);
  border: 1.5px solid var(--lilac-border);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-steps li small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}

.preview-steps li.done {
  background: var(--lilac);
  color: var(--purple-deep);
  border-color: var(--lilac-accent);
}

.preview-steps li.now {
  background: linear-gradient(135deg, var(--purple) 0%, var(--lilac-accent) 100%);
  color: #ffffff;
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
}

/* Legacy hero card classes */
.hero-ticket-card .ticket-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-ticket-card .ticket-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 20px;
}

.hero-ticket-card .status-bar {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  transition: transform var(--transition-fast);
}

.hero-ticket-card .status-bar:hover {
  transform: translateX(4px);
}

.hero-ticket-card .status-bar.done {
  background-color: var(--lilac);
  color: var(--purple-deep);
}

.hero-ticket-card .status-bar.current {
  background: linear-gradient(135deg, var(--purple) 0%, var(--lilac-accent) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.hero-ticket-card .status-bar.upcoming {
  background-color: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--lilac-border);
}

/* -----------------------------------------------------------------
 * SECTIONS
 * ----------------------------------------------------------------- */
.section {
  padding: 72px 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

/* -----------------------------------------------------------------
 * FEATURES GRID
 * ----------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--lilac-accent) 100%);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--lilac-accent);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Step label in How It Works */
.step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--lilac-soft);
  border-radius: var(--radius-xs);
}

/* -----------------------------------------------------------------
 * ABOUT SECTION
 * ----------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: box-shadow var(--transition-mid);
}

.info-panel:hover {
  box-shadow: var(--shadow-md);
}

.info-panel h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 12px;
}

.info-panel p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.info-panel ul {
  list-style: none;
  padding: 0;
}

.info-panel ul li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.info-panel ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 6px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------
 * HOW IT WORKS SECTION
 * ----------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--lilac-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

.step-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -----------------------------------------------------------------
 * LANDING FOOTER
 * ----------------------------------------------------------------- */
.landing-footer {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #1F2C4E 100%);
  color: rgba(255,255,255,0.8);
  padding: 28px 40px;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* -----------------------------------------------------------------
 * MODAL OVERLAY
 * ----------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(35,44,64,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-modal);
  max-width: 450px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s var(--ease-out);
  border: 1px solid rgba(211,216,238,0.3);
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  background: linear-gradient(90deg, var(--purple) 0%, var(--lilac-accent) 50%, var(--accent-coral) 100%);
}

.modal-card.modal-wide {
  max-width: 600px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--lilac-soft);
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 6px 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--lilac);
  color: var(--purple-deep);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--purple-deep);
  text-align: center;
  margin-bottom: 4px;
  margin-top: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* -----------------------------------------------------------------
 * CAPTCHA BOX (shared in modals & standalone auth pages)
 * ----------------------------------------------------------------- */
.captcha-panel {
  background: var(--lilac-soft);
  border: 1px solid var(--lilac-border);
  border-radius: var(--radius-input);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.captcha-panel .captcha-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--surface);
  border: 2px solid var(--lilac-border);
  border-radius: var(--radius-btn);
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  color: var(--purple-deep);
  letter-spacing: 2px;
  user-select: none;
}

.captcha-row .form-control {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
}

.captcha-refresh-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  min-height: 44px;
  font-family: var(--font-body);
  transition: color var(--transition-fast);
}

.captcha-refresh-btn:hover {
  color: var(--purple-hover);
  text-decoration: underline;
}

/* -----------------------------------------------------------------
 * MODAL ERROR BOX
 * ----------------------------------------------------------------- */
.modal-error {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
  border-left: 4px solid var(--danger-border);
}

/* -----------------------------------------------------------------
 * SIDEBAR (App Shell - Logged-In Pages)
 * ----------------------------------------------------------------- */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #232F58 0%, var(--purple-deep) 40%, #1F2C4E 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  transition: transform var(--transition-fast);
}

.sidebar-brand:hover img {
  transform: rotate(-5deg) scale(1.05);
}

.sidebar-brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.1;
}

.sidebar-brand-text .brand-campus {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.2;
  font-weight: 500;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 10px;
  flex: 1;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 2px;
}

.sidebar-nav li a:hover {
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(3px);
}

/* Active sidebar nav item */
.sidebar-nav li.active a {
  background: linear-gradient(135deg, rgba(228,231,250,0.95) 0%, rgba(240,243,255,0.95) 100%);
  color: var(--purple-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mobile sidebar toggle */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 250;
  background: linear-gradient(135deg, var(--purple-deep) 0%, #232F58 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  min-height: 44px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast);
}

.sidebar-mobile-toggle:hover {
  background: var(--purple);
}

/* -----------------------------------------------------------------
 * APP TOP BAR (right side above content)
 * ----------------------------------------------------------------- */
.app-topbar {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(211,216,238,0.5);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topbar-system {
  font-weight: 700;
  font-size: 14px;
  color: var(--purple-deep);
  letter-spacing: 0.04em;
}

.app-topbar-user {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topbar-user strong {
  color: var(--text);
  font-weight: 600;
}

.app-topbar-user::before {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac-accent) 0%, var(--purple) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------
 * APP CONTENT AREA
 * ----------------------------------------------------------------- */
.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-content {
  flex: 1;
  padding: 32px;
  max-width: 1320px;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

/* -----------------------------------------------------------------
 * PAGE HEADER
 * ----------------------------------------------------------------- */
.page-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--purple-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------
 * CARDS
 * ----------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow var(--transition-mid), border-color var(--transition-mid);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--lilac-soft) 0%, var(--lilac) 100%);
  border-bottom: 1px solid var(--lilac-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--purple-deep);
  font-weight: 700;
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--lilac-soft) 0%, var(--lilac) 100%);
  border-top: 1px solid var(--lilac-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* -----------------------------------------------------------------
 * KPI / STATISTICS CARDS
 * ----------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lilac-accent);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--lilac-accent);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--purple-deep);
  font-weight: 700;
  line-height: 1;
}

.stat-subtext {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 500;
}

/* Colored accent borders */
.stat-card.stat-urgent   { border-left: 4px solid var(--accent-coral); }
.stat-card.stat-urgent::after { background: var(--accent-coral); }
.stat-card.stat-review   { border-left: 4px solid var(--lilac-accent); }
.stat-card.stat-review::after { background: var(--lilac-accent); }
.stat-card.stat-resolved { border-left: 4px solid var(--purple); }
.stat-card.stat-resolved::after { background: var(--purple); }

/* -----------------------------------------------------------------
 * CHARTS
 * ----------------------------------------------------------------- */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.chart-box {
  background: var(--surface);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-mid);
}

.chart-box:hover {
  box-shadow: var(--shadow-md);
}

.chart-box h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--purple-deep);
  margin-bottom: 16px;
  font-weight: 600;
}

/* -----------------------------------------------------------------
 * DATA TABLES
 * ----------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background: linear-gradient(135deg, var(--lilac-soft) 0%, var(--lilac) 100%);
  color: var(--purple-deep);
  padding: 13px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--lilac-border);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(211,216,238,0.4);
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}

.data-table tr:nth-child(even) td {
  background-color: rgba(240,243,255,0.4);
}

.data-table tr:hover td {
  background-color: var(--lilac-soft);
}

/* -----------------------------------------------------------------
 * BUTTONS
 * ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #5C77C8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(58,99,238, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-hover) 0%, var(--purple) 100%);
  box-shadow: 0 4px 16px rgba(58,99,238, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--text-muted);
  color: #ffffff;
  border-color: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-outline:hover {
  background: var(--lilac-soft);
  border-color: var(--purple-hover);
  color: var(--purple-hover);
}

.btn-danger {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-success:hover {
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -----------------------------------------------------------------
 * FORM CONTROLS
 * ----------------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.form-label .required-mark {
  color: var(--accent-coral);
  font-weight: 700;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

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

.form-control:hover {
  border-color: var(--lilac-accent);
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-glow);
  background-color: #ffffff;
}

.form-control:disabled,
.form-control[disabled] {
  background-color: var(--lilac-soft);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.75;
}

.form-help {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
  font-weight: 500;
}

/* Form Filter Grid */
.filter-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

/* -----------------------------------------------------------------
 * STATUS CHIPS (pill style)
 * ----------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast);
}

.badge:hover {
  transform: scale(1.03);
}

/* Submitted */
.badge-status-submitted {
  background: var(--surface);
  color: var(--purple);
  border: 1.5px solid var(--purple);
}

/* Under Review */
.badge-status-review {
  background: var(--lilac);
  color: var(--purple-deep);
  border: 1.5px solid var(--lilac-border);
}

/* In Progress */
.badge-status-progress {
  background: linear-gradient(135deg, var(--lilac-accent) 0%, #AAB7EE 100%);
  color: var(--purple-deep);
  border: 1.5px solid var(--lilac-accent);
}

/* Resolved */
.badge-status-resolved {
  background: linear-gradient(135deg, var(--purple) 0%, #5C77C8 100%);
  color: #ffffff;
  border: 1.5px solid var(--purple);
}

/* Closed */
.badge-status-closed {
  background: #EAECF1;
  color: var(--text);
  border: 1.5px solid #D1D5DD;
}

.badge-status-default {
  background: var(--lilac);
  color: var(--text);
  border: 1.5px solid var(--lilac-border);
}

/* Priority badges */
.badge-priority-urgent {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1.5px solid var(--danger-border);
}

.badge-priority-high {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1.5px solid var(--warning-border);
}

.badge-priority-normal {
  background: var(--lilac);
  color: var(--purple-deep);
  border: 1.5px solid var(--lilac-border);
}

/* -----------------------------------------------------------------
 * ALERTS
 * ----------------------------------------------------------------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 14px;
  border-left: 5px solid;
  font-weight: 500;
  animation: fadeInUp 0.4s ease-out;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
  border-left-color: var(--accent-emerald);
}

.alert-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
  border-left-color: var(--accent-coral);
}

.alert-warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  border-color: var(--warning-border);
  border-left-color: var(--accent-amber);
}

.alert-info {
  background-color: var(--info-bg);
  color: var(--info-text);
  border-color: var(--info-border);
  border-left-color: var(--accent-sky);
}

/* -----------------------------------------------------------------
 * TIMELINE
 * ----------------------------------------------------------------- */
.timeline {
  position: relative;
  padding: 20px 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--lilac-border) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 50px;
  animation: fadeInUp 0.4s ease-out;
}

.timeline-marker {
  position: absolute;
  left: 13px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--lilac-accent) 100%);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--purple);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid rgba(211,216,238,0.5);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-mid);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-user {
  font-weight: 700;
  color: var(--purple-deep);
}

.timeline-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

/* -----------------------------------------------------------------
 * STATUS STEPPER (Ticket Detail right column)
 * ----------------------------------------------------------------- */
.status-stepper {
  list-style: none;
  padding: 0;
}

.status-stepper li {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-stepper li:hover {
  transform: translateX(3px);
}

.status-stepper li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-stepper li.step-completed {
  background: var(--lilac);
  color: var(--purple-deep);
}

.status-stepper li.step-completed::before {
  background: var(--purple);
}

.status-stepper li.step-current {
  background: linear-gradient(135deg, var(--purple) 0%, #5C77C8 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.status-stepper li.step-current::before {
  background: #ffffff;
  animation: pulseGlow 2s infinite;
}

.status-stepper li.step-upcoming {
  background: var(--surface);
  color: var(--text-light);
  border: 1px solid var(--lilac-border);
}

.status-stepper li.step-upcoming::before {
  background: var(--lilac-border);
}

/* -----------------------------------------------------------------
 * USER / ROLE BADGE
 * ----------------------------------------------------------------- */
.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--lilac-soft);
  color: var(--purple);
  border: 1px solid var(--lilac-border);
  letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------
 * FOOTER (App Shell)
 * ----------------------------------------------------------------- */
.app-footer {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(211,216,238,0.5);
  padding: 18px 32px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: auto;
  font-weight: 500;
}

/* Old footer class kept for compatibility */
.isu-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--lilac-border);
  padding: 18px 32px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

.isu-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* -----------------------------------------------------------------
 * QUICK ACTIONS / LATEST UPDATE CARDS (Dashboard columns)
 * ----------------------------------------------------------------- */
.dashboard-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -----------------------------------------------------------------
 * TICKET DETAIL LAYOUT
 * ----------------------------------------------------------------- */
.ticket-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.ticket-meta-item {
  margin-bottom: 14px;
}

.ticket-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ticket-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-deep);
  margin-top: 3px;
}

/* -----------------------------------------------------------------
 * PRINT PREVIEW: override sidebar/topbar
 * ----------------------------------------------------------------- */
.print-letterhead {
  display: none;
}

.print-signoff {
  display: none;
}

.print-meta-box {
  display: none;
}

/* -----------------------------------------------------------------
 * SCROLLBAR STYLING
 * ----------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--lilac-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--lilac-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lilac-accent);
}

/* -----------------------------------------------------------------
 * RESPONSIVE: Mobile-first overrides
 * ----------------------------------------------------------------- */

/* Medium screens: tablets */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Small screens: phones */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  /* Landing page mobile nav */
  .landing-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .landing-topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .landing-topbar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
    gap: 2px;
  }

  .landing-topbar-nav.open {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
  }

  .landing-topbar-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-topbar-nav a:not(.btn)::after {
    display: none;
  }

  /* Hero responsive */
  .hero h1 {
    font-size: 32px;
  }

  .hero {
    padding: 36px 16px;
    gap: 36px;
  }

  .hero-ticket-card {
    animation: fadeInUp 0.8s ease-out 0.4s both;
  }

  .section {
    padding: 40px 16px;
  }

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

  .preview-steps {
    flex-direction: column;
  }

  /* Sidebar collapses on phones */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    transition: left 0.35s var(--ease-out);
    z-index: 300;
  }

  .app-sidebar.open {
    left: 0;
  }

  .sidebar-mobile-toggle {
    display: inline-flex;
    align-items: center;
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    padding-left: 64px;
  }

  .app-content {
    padding: 16px;
  }

  /* Table stacked cards on phones */
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--lilac-border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(211,216,238,0.4);
  }

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

  .data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--purple-deep);
    text-align: left;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* Page header stacks */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 2-column grids go single */
  .dashboard-columns,
  .ticket-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Modal adjustments */
  .modal-card {
    padding: 24px;
    margin: 12px;
  }
}

/* Sidebar overlay background (semi-transparent) for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(35,44,64,0.5);
  backdrop-filter: blur(4px);
  z-index: 250;
  transition: opacity 0.3s ease-out;
}

.sidebar-overlay.open {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Landing topbar brand: SRTTS logo and meaning */
.landing-topbar-brand .brand-logo {
  height: 44px;
  width: auto;
}
.landing-topbar-brand:hover .brand-logo {
  transform: none;
}
.landing-topbar-brand .brand-meaning {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--purple-deep);
  padding-left: 12px;
  border-left: 2px solid var(--lilac);
}
@media (max-width: 520px) {
  .landing-topbar-brand .brand-meaning { font-size: 10px; padding-left: 8px; }
  .landing-topbar-brand .brand-logo { height: 36px; }
}

/* ===== Landing hero: split layout ===== */
.spl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.spl-left {
  background: #1A3466;
  color: #fff;
  padding: 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spl-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8CFFF;
}
.spl-left h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 20px 0 14px;
}
.spl-tagline {
  font-size: 20px;
  font-weight: 700;
  color: #B8CFFF;
}
.spl-left p {
  max-width: 480px;
  margin: 18px 0 32px;
  font-size: 17px;
  line-height: 1.6;
  color: #DBE6FF;
}
.spl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.spl-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.spl-btn:hover { transform: translateY(-1px); }
.spl-btn:focus-visible { outline: 3px solid #B8CFFF; outline-offset: 2px; }
.spl-btn-light { background: #fff; color: #1A3466; }
.spl-btn-line { border: 1.5px solid #B8CFFF; color: #fff; }
.spl-right {
  background: #F4F7FF;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.spl-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #657185;
}
.spl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #D5DEF3;
  border-radius: 14px;
}
.spl-row strong { display: block; color: #112247; }
.spl-row small { font-size: 14px; color: #657185; }
.spl-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #E8EEFD;
  color: #335DA8;
  font-size: 13px;
  font-weight: 700;
}
.spl-chip-now { background: #4C7BD9; color: #fff; }
@media (max-width: 860px) {
  .spl { grid-template-columns: 1fr; }
  .spl-left, .spl-right { padding: 56px 24px; }
}
