:root {
  --ink: #172033;
  --muted: #617084;
  --blue: #1d70b8;
  --deep-blue: #0c4a7d;
  --orange: #f58a1f;
  --green: #17a46b;
  --paper: #f7f9fc;
  --line: #dbe4ef;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 44, 74, 0.18);
}

@keyframes floatBook {
  0%,
  100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-12px);
  }
}

@keyframes bagGlow {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 24px 70px rgba(29, 112, 184, 0.28);
  }
}

@keyframes noticeSlide {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes driftShape {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--start-rotate, 0deg));
  }
  50% {
    transform: translate3d(var(--drift-x, 12px), var(--drift-y, -18px), 0) rotate(var(--end-rotate, 10deg));
  }
}

@keyframes navFloatIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.entry-screen {
  min-height: 100vh;
  padding: 28px clamp(18px, 5vw, 70px);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 138, 31, 0.14), transparent 28%),
    linear-gradient(135deg, #f3f8ff 0%, #ffffff 48%, #eef7f2 100%);
  overflow: hidden;
}

.entry-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(28, 87, 143, 0.18);
}

.since,
.eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entry-topbar h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--deep-blue);
}

.entry-stage {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 90px);
}

.book-zone,
.bag-zone {
  display: grid;
  justify-items: center;
}

.book-zone p {
  color: var(--muted);
  font-weight: 700;
  margin-top: 24px;
}

.book {
  position: relative;
  width: min(330px, 78vw);
  height: 230px;
  cursor: grab;
  transform: rotate(-7deg);
  transition: transform 180ms ease, filter 180ms ease;
  animation: floatBook 4.8s ease-in-out infinite;
}

.book:active {
  cursor: grabbing;
}

.book.dragging {
  opacity: 0.68;
  transform: rotate(-2deg) scale(0.96);
  animation: none;
}

.book-cover {
  position: absolute;
  inset: 0 18px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue), var(--deep-blue));
  border-radius: 8px 18px 18px 8px;
  box-shadow: var(--shadow);
}

.book-cover span {
  color: var(--orange);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

.book-cover strong {
  font-size: 1.45rem;
}

.book-cover small {
  line-height: 1.5;
}

.book-pages {
  position: absolute;
  top: 14px;
  right: 0;
  bottom: -12px;
  width: 42px;
  background: repeating-linear-gradient(#ffffff, #ffffff 8px, #dbe4ef 9px);
  border-radius: 0 14px 14px 0;
  box-shadow: 10px 18px 24px rgba(20, 44, 74, 0.12);
}

.bag-zone {
  min-height: 390px;
  align-content: center;
  transition: transform 180ms ease;
}

.bag-zone.ready {
  transform: scale(1.04);
}

.bag-handle {
  width: 170px;
  height: 92px;
  border: 18px solid var(--deep-blue);
  border-bottom: 0;
  border-radius: 80px 80px 0 0;
  transform: translateY(18px);
}

.bag-body {
  width: min(360px, 80vw);
  height: 250px;
  position: relative;
  background: linear-gradient(145deg, #2294d2, var(--blue));
  border-radius: 28px 28px 48px 48px;
  box-shadow: var(--shadow);
  border: 8px solid #114d7d;
  animation: bagGlow 4.8s ease-in-out infinite;
}

.bag-body::before {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  top: 34px;
  height: 34px;
  background: #0c4a7d;
  border-radius: 0 0 70px 70px;
}

.bag-pocket {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 210px;
  min-height: 74px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: var(--orange);
  border-radius: 8px 8px 28px 28px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1220px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 12px clamp(16px, 4vw, 30px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.96));
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 56px rgba(20, 44, 74, 0.18);
  animation:
    navFloatIn 520ms ease both,
    navDrift 4.8s ease-in-out 560ms infinite;
}

.brand,
.site-header nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  color: var(--deep-blue);
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.site-header nav {
  gap: 18px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.93rem;
}

.site-header nav a,
.brand {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-header nav a {
  position: relative;
  padding: 8px 2px;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--deep-blue);
  transform: translateY(-3px);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

.call-button,
.primary-action,
.secondary-action,
.whatsapp-action,
.entry-button,
.module-card button,
.module-card a {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.call-button:hover,
.primary-action:hover,
.secondary-action:hover,
.whatsapp-action:hover,
.entry-button:hover,
.call-button:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.whatsapp-action:focus-visible,
.entry-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(20, 44, 74, 0.16);
}

.primary-action,
.call-button {
  color: var(--white);
  background: var(--blue);
}

.secondary-action {
  color: var(--deep-blue);
  background: #e9f2fb;
}

.entry-button {
  color: var(--deep-blue);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(20, 44, 74, 0.1);
}

.whatsapp-action {
  color: var(--white);
  background: var(--green);
}

.danger-action {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: #c43d3d;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 5vw, 70px) 46px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 52%, #f3fbf7 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% 42%;
  height: 360px;
  background: radial-gradient(circle, rgba(245, 138, 31, 0.16), transparent 64%);
  pointer-events: none;
}

.floating-study-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-study-shapes span {
  position: absolute;
  opacity: 0.72;
  filter: drop-shadow(0 12px 22px rgba(20, 44, 74, 0.12));
  animation: driftShape var(--duration, 7s) ease-in-out infinite;
}

.shape-pencil {
  --start-rotate: -24deg;
  --end-rotate: -12deg;
  --drift-x: 18px;
  --drift-y: -16px;
  --duration: 7.4s;
  width: 112px;
  height: 16px;
  top: 15%;
  right: 44%;
  background: linear-gradient(90deg, #ffd166 0 74%, #f58a1f 74% 84%, #172033 84% 100%);
  border-radius: 999px;
}

.shape-star {
  --start-rotate: 8deg;
  --end-rotate: 28deg;
  --drift-x: -12px;
  --drift-y: 18px;
  --duration: 6.6s;
  width: 34px;
  height: 34px;
  top: 18%;
  left: 47%;
  background: var(--orange);
  clip-path: polygon(50% 0, 62% 36%, 100% 36%, 69% 57%, 80% 94%, 50% 72%, 20% 94%, 31% 57%, 0 36%, 38% 36%);
}

.shape-ruler {
  --start-rotate: 18deg;
  --end-rotate: 4deg;
  --drift-x: 16px;
  --drift-y: 16px;
  --duration: 8s;
  width: 118px;
  height: 24px;
  right: 7%;
  top: 16%;
  background: repeating-linear-gradient(90deg, #ffffff 0 10px, #dbe4ef 10px 12px), #ffffff;
  border: 2px solid rgba(29, 112, 184, 0.4);
  border-radius: 6px;
}

.shape-bookmark {
  --start-rotate: -8deg;
  --end-rotate: 8deg;
  --drift-x: -14px;
  --drift-y: -20px;
  --duration: 7.8s;
  width: 42px;
  height: 64px;
  right: 4%;
  bottom: 16%;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
  border-radius: 7px 7px 0 0;
}

.shape-circle {
  --drift-x: 16px;
  --drift-y: -18px;
  --duration: 9s;
  width: 74px;
  height: 74px;
  left: 42%;
  bottom: 12%;
  border: 10px solid rgba(23, 164, 107, 0.22);
  border-radius: 50%;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy h2,
.section-heading h2,
.split-section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.02;
  color: var(--deep-blue);
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.section-text,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-stats div,
.feature-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 44, 74, 0.08);
}

.hero-stats strong,
.feature-item strong {
  display: block;
  color: var(--deep-blue);
  font-size: 1rem;
}

.hero-stats span,
.feature-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-panel {
  min-height: 430px;
  display: flex;
  align-items: stretch;
}

.notice-board {
  width: 100%;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(29, 112, 184, 0.08) 32px);
  border: 1px solid var(--line);
  border-top: 7px solid var(--orange);
  box-shadow: var(--shadow);
  transform-origin: center;
  animation: softPulse 7s ease-in-out infinite;
}

.notice-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--deep-blue);
}

.notice-board-header span {
  font-size: 1.2rem;
  font-weight: 800;
}

.notice-board-header small {
  color: #ffd39f;
  font-weight: 800;
}

.notice-window {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 342px;
  overflow-y: auto;
}

.notice-window::before,
.notice-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 44px;
  pointer-events: none;
}

.notice-window::before {
  top: 0;
  background: linear-gradient(#ffffff, rgba(255, 255, 255, 0));
}

.notice-window::after {
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
}

.notice-track {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.notice-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  animation: noticeSlide 380ms ease both;
}

.notice-item time {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.notice-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.notice-attachment {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--deep-blue);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.banner {
  padding: 22px;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 7px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.1);
  font-weight: 800;
}

.banner::before {
  content: "HB";
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}

.section {
  padding: 72px clamp(18px, 5vw, 70px);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toppers-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.topper-filter-tabs {
  margin-bottom: 18px;
}

.topper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
}

.topper-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.09);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.topper-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 138, 31, 0.5);
  box-shadow: 0 24px 48px rgba(20, 44, 74, 0.16);
}

.topper-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef4fb;
  transition: transform 260ms ease;
}

.topper-card:hover img {
  transform: scale(1.05);
}

.topper-card div {
  padding: 14px;
}

.topper-card strong {
  display: block;
  color: var(--deep-blue);
  font-size: 1.05rem;
}

.topper-card span,
.topper-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.progress-card {
  border-left: 5px solid var(--orange);
}

.section-heading {
  margin-bottom: 28px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 16px;
}

.module-card,
.form-panel,
.data-panel,
.modal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.09);
}

.module-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.module-card:hover,
.module-card:focus-within {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(29, 112, 184, 0.38);
  box-shadow: 0 22px 46px rgba(20, 44, 74, 0.16);
}

.module-card:hover::before,
.module-card:focus-within::before {
  transform: scaleX(1);
}

.module-card:hover h3,
.module-card:focus-within h3 {
  color: var(--blue);
}

.module-card h3,
.form-panel h3,
.data-panel h3 {
  margin: 0 0 10px;
  color: var(--deep-blue);
}

.module-card p {
  color: var(--muted);
  line-height: 1.55;
}

.module-card button,
.module-card a {
  color: var(--deep-blue);
  background: #e9f2fb;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.module-card:hover button,
.module-card:hover a,
.module-card:focus-within button,
.module-card:focus-within a {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.admin-card {
  border-top: 5px solid var(--orange);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  background: #ffffff;
}

.login-section {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  background: #ffffff;
}

.login-section > div:last-child {
  display: grid;
  gap: 16px;
}

.login-section .compact-form {
  width: min(440px, 100%);
}

.login-section .role-app {
  width: min(760px, 100%);
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.compact-form {
  max-width: 440px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--deep-blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

input[type="file"] {
  padding: 8px;
}

.password-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.eye-button {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 48px;
  min-height: 44px;
  padding: 0;
  color: var(--deep-blue);
  background: #e9f2fb;
  font-weight: 800;
  cursor: pointer;
}

.eye-button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 22px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 48% 48%;
}

.eye-button::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.eye-button.is-visible {
  color: #c43d3d;
}

.eye-button.is-visible::after {
  left: 11px;
  top: 21px;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-38deg);
}

.checkbox-group legend {
  padding: 0 6px;
  color: var(--deep-blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.checkbox-group .select-all-option {
  grid-column: 1 / -1;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--deep-blue);
  font-weight: 900;
}

.checkbox-group input {
  width: 16px;
  min-height: 16px;
}

.time-range-control {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  align-items: end;
  gap: 10px;
}

.time-range-control label {
  display: grid;
  gap: 6px;
}

.time-range-control label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.clock-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep-blue);
  background: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

.form-status,
.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-dashboard {
  min-height: 680px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.09);
}

.admin-sidebar {
  display: grid;
  grid-auto-rows: auto;
  align-content: start;
  gap: 8px;
  padding: 20px;
  color: var(--white);
  background: var(--deep-blue);
}

.admin-sidebar h3 {
  margin: 0 0 10px;
}

.admin-sidebar button:not(.secondary-action) {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #dbeaff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar button.active,
.admin-sidebar button:not(.secondary-action):hover {
  color: var(--deep-blue);
  background: #ffffff;
}

.admin-sidebar .secondary-action {
  margin-top: 18px;
}

.desk-link-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.desk-link-card {
  display: grid;
  min-height: 120px;
  align-content: center;
  gap: 8px;
  border-top: 5px solid var(--orange);
}

.rfid-page {
  display: grid;
  gap: 18px;
}

.rfid-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 10px;
}

.desk-cell {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.desk-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 112, 184, 0.42);
  box-shadow: 0 14px 28px rgba(20, 44, 74, 0.12);
}

.desk-cell strong {
  color: var(--deep-blue);
  font-size: 1.05rem;
}

.desk-cell span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.desk-cell.occupied {
  border-color: rgba(245, 138, 31, 0.65);
  background: linear-gradient(180deg, #fff6ec, #ffffff);
}

.desk-cell.occupied strong {
  color: var(--orange);
}

.tap-station-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.64)),
    radial-gradient(circle at 18% 18%, rgba(245, 138, 31, 0.28), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(23, 164, 107, 0.18), transparent 24%),
    radial-gradient(circle at 72% 84%, rgba(29, 112, 184, 0.24), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 50%, #fff7ee 100%);
}

.tap-station {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.4vw, 28px);
}

.tap-shell {
  width: min(1120px, 100%);
  display: grid;
  gap: 12px;
}

.tap-brand-strip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(20, 44, 74, 0.12);
  backdrop-filter: blur(14px);
}

.tap-brand-strip img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.tap-brand-strip span,
.tap-brand-strip strong {
  display: block;
}

.tap-brand-strip span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.tap-brand-strip strong {
  color: var(--deep-blue);
  font-size: 1.12rem;
}

.tap-hero-panel {
  position: relative;
  min-height: min(520px, calc(100vh - 118px));
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.86)),
    repeating-linear-gradient(135deg, rgba(29, 112, 184, 0.05) 0 1px, transparent 1px 18px);
  box-shadow: 0 36px 90px rgba(20, 44, 74, 0.18);
}

.tap-hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 138, 31, 0.2);
  border-radius: 20px;
  pointer-events: none;
}

.tap-copy {
  position: relative;
  z-index: 1;
}

.tap-copy h1 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.tap-copy h1.is-seat-result {
  width: fit-content;
  padding: 18px 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  box-shadow: 0 24px 56px rgba(20, 44, 74, 0.18);
  font-size: clamp(4rem, 11vw, 9rem);
}

.tap-copy h1.is-error-result {
  color: #c43d3d;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1;
}

.tap-copy p:not(.eyebrow) {
  width: min(540px, 100%);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.tap-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tap-orbit span {
  position: absolute;
  border-radius: 999px;
  opacity: 0.54;
  animation: driftShape 7s ease-in-out infinite;
}

.tap-orbit span:nth-child(1) {
  --drift-x: 18px;
  --drift-y: -14px;
  width: 118px;
  height: 118px;
  right: 13%;
  top: 12%;
  border: 18px solid rgba(245, 138, 31, 0.18);
}

.tap-orbit span:nth-child(2) {
  --drift-x: -16px;
  --drift-y: 18px;
  width: 78px;
  height: 78px;
  right: 5%;
  bottom: 15%;
  background: rgba(29, 112, 184, 0.14);
}

.tap-orbit span:nth-child(3) {
  --drift-x: 14px;
  --drift-y: 12px;
  width: 44px;
  height: 44px;
  left: 45%;
  bottom: 18%;
  background: rgba(23, 164, 107, 0.16);
}

.rfid-tap-form {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  justify-self: center;
}

.rfid-hidden-input {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  color: transparent;
  caret-color: transparent;
  background: transparent;
  border: 0;
  pointer-events: auto;
}

.tap-card-visual {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.92)),
    radial-gradient(circle at 50% 12%, rgba(245, 138, 31, 0.12), transparent 42%);
  box-shadow: 0 24px 52px rgba(20, 44, 74, 0.14);
}

.tap-card-visual span {
  position: relative;
  width: 148px;
  height: 104px;
  display: block;
  border-radius: 22px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(135deg, var(--blue), var(--deep-blue));
  box-shadow: 0 24px 50px rgba(20, 44, 74, 0.2);
  animation: softPulse 1.8s ease-in-out infinite;
}

.tap-card-visual span::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 48px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.tap-card-visual span::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.tap-card-visual strong {
  color: var(--deep-blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.rfid-result {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: center;
  width: min(480px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--deep-blue);
  text-align: center;
  box-shadow: 0 24px 54px rgba(20, 44, 74, 0.14);
  animation: noticeSlide 260ms ease both;
}

.rfid-result span {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.rfid-result strong {
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.rfid-result b {
  display: block;
  color: #ffffff;
  font-size: clamp(4.5rem, 13vw, 10rem);
  line-height: 1;
}

.rfid-result small {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 800;
}

.seat-number-display {
  width: min(560px, 100%);
  justify-self: center;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 5vw, 42px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  box-shadow: 0 28px 70px rgba(20, 44, 74, 0.22);
}

.seat-number-display small {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0;
}

.test-code-display {
  width: min(720px, 100%);
  justify-self: center;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 122, 26, 0.32);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(20, 44, 74, 0.14);
}

.test-code-display small {
  color: var(--orange);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.test-code-display b {
  color: var(--deep-blue);
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rfid-result.is-error b,
.rfid-result.is-error span {
  color: #c43d3d;
}

.tap-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.tap-info-grid div {
  padding: 12px 14px;
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 32px rgba(20, 44, 74, 0.08);
  backdrop-filter: blur(12px);
}

.tap-info-grid strong,
.tap-info-grid span {
  display: block;
}

.tap-info-grid strong {
  color: var(--deep-blue);
}

.tap-info-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.notification-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 138, 31, 0.12), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(29, 112, 184, 0.12), transparent 30%),
    var(--paper);
}

.notification-shell {
  width: min(680px, 100%);
}

.notification-card {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.notification-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.notification-card h1 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 0.98;
}

.notification-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.main-notification-prompt {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(430px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(245, 138, 31, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(20, 44, 74, 0.2);
}

.main-notification-prompt strong,
.main-notification-prompt span {
  display: block;
}

.main-notification-prompt strong {
  color: var(--deep-blue);
}

.main-notification-prompt span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.main-notification-prompt button {
  white-space: nowrap;
}

.tap-seat-map-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.82)),
    repeating-linear-gradient(135deg, rgba(245, 138, 31, 0.04) 0 1px, transparent 1px 16px);
  box-shadow: 0 24px 58px rgba(20, 44, 74, 0.12);
}

.tap-seat-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.tap-seat-map-heading strong,
.tap-seat-map-heading span {
  display: block;
}

.tap-seat-map-heading strong {
  color: var(--deep-blue);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.tap-seat-map-heading span {
  color: var(--muted);
  font-weight: 700;
}

.tap-seat-grid {
  grid-template-columns: repeat(7, minmax(94px, 1fr));
}

.tap-seat-grid .desk-cell {
  min-height: 86px;
  background: rgba(255, 255, 255, 0.86);
}

.tap-seat-grid .desk-cell.occupied {
  background:
    linear-gradient(180deg, rgba(255, 246, 236, 0.96), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 12% 12%, rgba(245, 138, 31, 0.18), transparent 30%);
  box-shadow: 0 14px 30px rgba(245, 138, 31, 0.12);
}

.tap-hero-panel > .form-status {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: center;
  margin: 0;
  text-align: center;
}

.seat-map-page {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.78)),
    radial-gradient(circle at 12% 18%, rgba(245, 138, 31, 0.2), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(23, 164, 107, 0.14), transparent 24%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #fff8ef 100%);
}

.seat-map-display {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: clamp(10px, 1.4vw, 18px);
  box-sizing: border-box;
}

.seat-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(20, 44, 74, 0.1);
}

.seat-map-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-blue);
  font-weight: 900;
}

.seat-map-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.seat-map-header h1 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.seat-map-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.seat-map-board {
  display: grid;
  min-height: 0;
  overflow: auto;
  gap: 10px;
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.88)),
    repeating-linear-gradient(135deg, rgba(29, 112, 184, 0.04) 0 1px, transparent 1px 18px);
  box-shadow: 0 30px 74px rgba(20, 44, 74, 0.14);
}

.seat-map-board .desk-grid {
  min-width: 760px;
  height: auto;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  grid-template-rows: repeat(10, minmax(72px, auto));
  grid-auto-rows: minmax(72px, auto);
}

.seat-map-board .desk-cell {
  min-height: 72px;
  padding: 8px;
}

.danger-text {
  color: #c43d3d !important;
  font-weight: 900;
}

.seat-map-board .desk-cell strong {
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
}

.seat-map-board .desk-cell span {
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 800;
}

.seat-map-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}


.admin-work-window {
  max-height: 78vh;
  overflow: auto;
  padding: 22px;
  background: var(--paper);
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.09);
}

.admin-toolbar h3,
.admin-toolbar p {
  margin: 0;
}

.admin-toolbar p {
  color: var(--muted);
  margin-top: 5px;
}

.dashboard-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 16px;
}

.data-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-panel {
  grid-column: 1 / -1;
}

.data-panel {
  padding: 22px;
}

.slider-section {
  padding-top: 44px;
  background: #ffffff;
}

.image-slider {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.09);
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.slide-card {
  position: relative;
  flex: 0 0 100%;
  height: 340px;
  margin: 0;
  scroll-snap-align: start;
  background: #ffffff;
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}

.slide-card:hover img {
  transform: scale(1.035);
}

.slide-open-button {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.empty-slide img {
  object-fit: contain;
  padding: 48px;
}

.slide-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(12, 74, 125, 0.88);
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
}

.role-user-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.user-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.user-filter-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--deep-blue);
  background: #e9f2fb;
  font-weight: 800;
  cursor: pointer;
}

.user-filter-tabs button.active,
.user-filter-tabs button:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.user-filter-tabs span {
  margin-left: 5px;
  font-size: 0.78rem;
  opacity: 0.82;
}

.role-user-group h4 {
  margin: 0;
  color: var(--deep-blue);
  font-size: 1rem;
}

.list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 112, 184, 0.32);
  box-shadow: 0 10px 24px rgba(20, 44, 74, 0.09);
}

.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal-section.is-visible,
.site-opened .hero.reveal-section {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.list-item strong {
  display: block;
  color: var(--ink);
}

.list-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  width: fit-content;
  margin: 7px 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: #e9f2fb;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-approved {
  color: #0d6b45;
  background: #e7f8ef;
}

.status-rejected {
  color: #9f2525;
  background: #fdecec;
}

.attendance-row .inline-actions {
  gap: 10px;
}

.attendance-mark {
  min-width: 92px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.attendance-mark.present {
  background: #17a46b;
}

.attendance-mark.absent {
  background: #c43d3d;
}

.attendance-mark:not(.active) {
  opacity: 0.72;
}

.attendance-mark:hover,
.attendance-mark.active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 44, 74, 0.14);
}

.date-picker-label {
  min-width: 180px;
}

.attendance-summary-card {
  display: grid;
  gap: 14px;
}

.attendance-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.attendance-percent {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0d6b45;
  background: #e7f8ef;
  font-weight: 900;
  text-align: center;
}

.attendance-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
}

.attendance-stat-grid div,
.attendance-stat-button {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.attendance-stat-button {
  display: grid;
  gap: 2px;
  width: 100%;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.attendance-stat-button:hover,
.attendance-stat-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23, 164, 107, 0.48);
  box-shadow: 0 10px 22px rgba(20, 44, 74, 0.1);
}

.attendance-stat-button.absent:hover,
.attendance-stat-button.absent:focus-visible {
  border-color: rgba(196, 61, 61, 0.48);
}

.attendance-stat-grid strong,
.attendance-stat-button strong {
  display: block;
  color: var(--deep-blue);
  font-size: 1.35rem;
}

.attendance-stat-grid span,
.attendance-stat-button span {
  margin-top: 2px;
}

.attendance-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.attendance-date-list strong {
  flex: 0 0 100%;
  color: var(--deep-blue);
}

.attendance-date-list span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: #e9f2fb;
  font-size: 0.82rem;
  font-weight: 800;
}

.attendance-graph {
  height: 18px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f9;
}

.attendance-calendar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.attendance-calendar strong {
  color: var(--deep-blue);
}

.attendance-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  gap: 6px;
}

.attendance-calendar-day {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: #eef4fb;
  font-weight: 900;
}

.attendance-calendar-day.present {
  color: #ffffff;
  background: #17a46b;
}

.attendance-calendar-day.absent {
  color: #ffffff;
  background: #c43d3d;
}

.attendance-calendar-day.half-day {
  color: #ffffff;
  background: var(--orange);
}

.attendance-calendar-day.holiday {
  color: #64748b;
  background: #e5e7eb;
}

.attendance-calendar-day.future {
  color: #94a3b8;
  background: #f8fafc;
}

.attendance-calendar-legend {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.attendance-calendar-legend b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.attendance-calendar-legend .present {
  background: #17a46b;
}

.attendance-calendar-legend .absent {
  background: #c43d3d;
}

.attendance-calendar-legend .half-day {
  background: var(--orange);
}

.attendance-calendar-legend .holiday {
  background: #cbd5e1;
}

.attendance-present-bar {
  background: #17a46b;
}

.attendance-absent-bar {
  background: #c43d3d;
}

.attendance-legend {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.present-dot,
.absent-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.present-dot {
  background: #17a46b;
}

.absent-dot {
  background: #c43d3d;
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-link {
  width: fit-content;
  margin-top: 12px;
}

.role-app {
  min-height: 560px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 44, 74, 0.09);
}

.role-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px;
  color: var(--white);
  background: var(--deep-blue);
}

.role-sidebar h3 {
  margin: 0;
}

.panel-version {
  margin: -8px 0 0;
  color: #ffd39f;
  font-size: 0.78rem;
  font-weight: 800;
}

.role-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.role-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #dbeaff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.role-menu button.active,
.role-menu button:hover {
  color: var(--deep-blue);
  background: #ffffff;
}

.role-work-window {
  min-height: 560px;
  max-height: 70vh;
  overflow: auto;
  padding: 24px;
}

.role-work-window h3 {
  margin: 0 0 16px;
  color: var(--deep-blue);
}

.wide-field {
  grid-column: 1 / -1;
  display: contents;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 46px clamp(18px, 5vw, 70px);
  color: var(--white);
  background: var(--deep-blue);
}

.contact-section h2,
.contact-section p {
  color: var(--white);
}

.contact-section .eyebrow {
  color: #ffd39f;
}

.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 24, 40, 0.58);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
}

.preview-card {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 14px;
  padding: 22px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-card h2 {
  margin: 0;
  padding-right: 48px;
  color: var(--deep-blue);
}

.preview-body {
  min-height: 240px;
}

.preview-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #f7f9fc;
  border-radius: 8px;
}

.preview-frame {
  width: 100%;
  height: 72vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.45rem;
}

@media (max-width: 1040px) {
  .module-grid,
  .topper-grid,
  .feature-band,
  .dashboard-tools,
  .desk-link-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
  }
}

@media (max-width: 760px) {
  .entry-stage,
  .hero,
  .login-section,
  .split-section,
  .data-panels {
    grid-template-columns: 1fr;
  }

  .entry-stage {
    padding-top: 34px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .module-grid,
  .topper-grid,
  .feature-band,
  .dashboard-tools,
  .desk-link-grid,
  .rfid-layout,
  .tap-hero-panel,
  .tap-info-grid {
    grid-template-columns: 1fr;
  }

  .tap-hero-panel {
    min-height: auto;
    padding: 28px;
  }

  .tap-copy h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .tap-card-visual {
    min-height: 220px;
  }

  .rfid-result,
  .tap-hero-panel > .form-status {
    grid-column: 1;
  }

  .desk-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .notice-board,
  .notice-window {
    min-height: 320px;
  }

  .manage-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-work-window {
    max-height: none;
  }

  .role-app {
    grid-template-columns: 1fr;
  }

  .role-work-window {
    max-height: none;
  }
}

/* Professional finish */
.site-shell,
.role-page,
.admin-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 252, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(245, 138, 31, 0.08), transparent 26%),
    radial-gradient(circle at 8% 18%, rgba(29, 112, 184, 0.08), transparent 28%);
}

.site-header,
.top-nav {
  border-bottom: 1px solid rgba(245, 138, 31, 0.24);
  box-shadow: 0 12px 32px rgba(20, 44, 74, 0.08);
}

.main-nav a,
.top-nav a,
.top-nav button {
  position: relative;
}

.main-nav a::after,
.top-nav a::after,
.top-nav button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.top-nav a:hover::after,
.top-nav button:hover::after {
  transform: scaleX(1);
}

.module-card,
.form-panel,
.data-panel,
.modal-card,
.admin-dashboard,
.list-item {
  border-color: rgba(219, 228, 239, 0.86);
  box-shadow: 0 18px 42px rgba(20, 44, 74, 0.08);
}

.form-panel,
.data-panel,
.admin-work-window {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 255, 0.95));
}

.primary-action,
.secondary-action,
.user-filter-tabs button,
.module-card button,
.module-card a {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.user-filter-tabs button:hover,
.module-card button:hover,
.module-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 44, 74, 0.14);
}

.admin-sidebar,
.role-sidebar {
  background:
    linear-gradient(180deg, #0c4a7d 0%, #0b3f69 58%, #073250 100%);
}

.admin-sidebar button:not(.secondary-action),
.role-sidebar button:not(.secondary-action) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-toolbar {
  padding: 14px;
  border: 1px solid rgba(219, 228, 239, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(245, 138, 31, 0.1), rgba(29, 112, 184, 0.08)),
    #ffffff;
}

.list-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
}
