/* =========================================
   GLOBAL DESIGN
   Higher Level Fitness Gym System
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  /* Core surfaces */
  --page-bg: #070A12;
  --bg-color: #0B1020;
  --surface-deep: #0F1628;
  --card-color: #151B2D;
  --card-color-alt: #1B2338;
  --surface-raised: #202A42;

  /* Typography */
  --text-color: #F8FAFC;
  --muted-text: #A7B0C0;
  --subtle-text: #7F8AA3;
  --placeholder-text: #6F7A92;

  /* Brand and feedback */
  --accent-primary: #F59E0B;
  --accent-primary-hover: #FBBF24;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --accent-secondary: #38BDF8;
  --success: #22C55E;
  --success-soft: rgba(34, 197, 94, 0.16);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --info: #38BDF8;
  --on-accent: #111827;

  /* Borders and effects */
  --border-color: #2A3348;
  --border-strong: #3B4763;
  --shadow-color: rgba(0, 0, 0, 0.42);
  --focus-ring: rgba(245, 158, 11, 0.22);
}


body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #18213A 0%, var(--page-bg) 58%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main phone-like screen */
.mobile-screen {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  padding: 22px;
}

/* =========================================
   LANDING PAGE
========================================= */

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-weight: 800;
  font-size: 13px;
}

.logo-box h1 {
  font-size: 14px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-box p {
  font-size: 9px;
  color: var(--muted-text);
  text-transform: uppercase;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 4px;
  background: var(--accent-primary);
  color: var(--on-accent);
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.hero-section {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-section h2 {
  font-size: 29px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-color);
}

.hero-section h2 span {
  color: var(--accent-primary);
}

.hero-section p {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 28px;
}

.primary-btn,
.secondary-btn {
  width: 75%;
  max-width: 260px;
  margin: 0 auto 14px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent-primary);
  color: var(--on-accent);
}

.secondary-btn {
  background: var(--surface-raised);
  color: var(--text-color);
}

.side-menu {
  position: absolute;
  top: 0;
  right: -70%;
  width: 65%;
  height: 100%;
  background: var(--surface-raised);
  padding: 85px 30px;
  transition: 0.3s ease;
}

.side-menu.active {
  right: 0;
}

.side-menu a {
  display: block;
  color: var(--muted-text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 25px;
  border: none;
  background: transparent;
  color: var(--muted-text);
  font-size: 52px;
  font-weight: bold;
  cursor: pointer;
}

/* =========================================
   LOGIN PAGE
========================================= */

.login-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header .logo-icon {
  margin: 0 auto 12px;
}

.login-header h1 {
  font-size: 22px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-header p {
  color: var(--muted-text);
  font-size: 12px;
  text-transform: uppercase;
}

.login-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 18px 45px var(--shadow-color);
}

.login-card h2 {
  font-size: 28px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.login-card > p {
  color: var(--muted-text);
  font-size: 14px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface-deep);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
}

/* Text input placeholder */
.form-group input::placeholder {
  color: var(--placeholder-text);
}

/* Subscription plan dropdown */
.form-group select {
  display: block;
  cursor: pointer;
  padding-right: 45px;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-primary) 50%),
    linear-gradient(135deg, var(--accent-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Plans shown when dropdown is opened */
.form-group select option {
  background-color: var(--surface-deep);
  color: var(--text-color);
  padding: 12px;
}

/* Focus effect */
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Disabled or loading dropdown */
.form-group select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.full-btn {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
}

.form-message {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
  color: var(--muted-text);
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--accent-primary);
}

/* =========================================
   LOGIN PASSWORD SHOW / HIDE
========================================= */

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 58px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.78);
  color: #111827;

  cursor: pointer;
  z-index: 2;
}

.password-toggle-btn svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.password-toggle-btn:hover {
  background: #ffffff;
}

.password-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.password-toggle-btn:active {
  transform: translateY(-50%) scale(0.94);
}

/* =========================================
   BASIC DASHBOARD PAGE
========================================= */

.dashboard-screen {
  padding: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.small-text {
  color: var(--muted-text);
  font-size: 14px;
  margin-bottom: 4px;
}

.dashboard-header h1 {
  font-size: 24px;
  color: var(--text-color);
}

.logout-btn {
  border: none;
  background: var(--accent-primary);
  color: var(--on-accent);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.dashboard-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}

.dashboard-card h2,
.dashboard-card h3 {
  color: var(--text-color);
  margin-bottom: 10px;
}

.dashboard-card p {
  color: var(--muted-text);
  line-height: 1.5;
}

.simple-list p {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.simple-list p:last-child {
  border-bottom: none;
}

/* =========================================
   MEMBER DASHBOARD
========================================= */

.member-screen {
  padding-bottom: 90px;
}

.member-header {
  margin-bottom: 26px;
}

.member-header h1 {
  font-size: 30px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--border-color);
  color: var(--muted-text);
}

.status-badge.active {
  background: var(--success-soft);
  color: var(--accent-primary);
}

.status-badge.expired {
  background: var(--danger-soft);
  color: var(--danger);
}

.section-title {
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text-color);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.overview-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 14px;
  min-height: 145px;
}

.card-label {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.overview-card h3 {
  color: var(--accent-primary);
  font-size: 22px;
  margin-bottom: 10px;
  word-break: break-word;
}

.overview-card p {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.4;
}

.overview-card strong {
  display: block;
  color: var(--accent-primary);
  margin-top: 4px;
  font-size: 13px;
}

.active-text {
  color: var(--accent-primary) !important;
}

.expired-text {
  color: var(--danger) !important;
}

.qr-preview-card {
  margin-top: 10px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--page-bg);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 12px 6px;
}

.bottom-nav a {
  text-align: center;
  color: var(--subtle-text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav a.active {
  color: var(--accent-primary);
}

/* =========================================
   MEMBER QR / PIN PAGE
========================================= */

.qr-main-card {
  text-align: center;
}

.qr-main-card h2,
.pin-card h2 {
  color: var(--text-color);
  margin-bottom: 8px;
}

.qr-main-card p,
.pin-card p {
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.5;
}

.qr-box {
  width: 220px;
  height: 220px;
  background: var(--text-color);
  border: 3px solid var(--accent-primary);
  border-radius: 18px;
  margin: 22px auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-box img,
.qr-box canvas {
  border-radius: 8px;
}

.qr-value-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted-text);
}

.qr-value {
  color: var(--accent-primary) !important;
  font-weight: 700;
  word-break: break-word;
}

.pin-card {
  text-align: center;
}

.pin-display {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--accent-primary);
  margin: 18px 0 12px;
}

/* =========================================
   MEMBER ATTENDANCE HISTORY
========================================= */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.history-card-header h3 {
  color: var(--text-color);
  font-size: 18px;
}

.history-card-header span {
  background: var(--success-soft);
  color: var(--accent-primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.history-row {
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
}

.history-row p {
  color: var(--muted-text);
  font-size: 13px;
  margin-bottom: 4px;
}

.history-row strong {
  color: var(--text-color);
  font-size: 15px;
}
/* =========================================
   MEMBER PROFILE PAGE
========================================= */

.profile-card h2 {
  color: var(--text-color);
  margin-bottom: 16px;
}

.profile-row {
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
}

.profile-row:first-of-type {
  border-top: none;
}

.profile-row p {
  color: var(--muted-text);
  font-size: 13px;
  margin-bottom: 5px;
}

.profile-row strong {
  color: var(--text-color);
  font-size: 15px;
  word-break: break-word;
}
/* =========================================
   ADMIN DASHBOARD
========================================= */

.admin-screen {
  padding-bottom: 40px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 14px;
  min-height: 120px;
}

.admin-stat-card p {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.admin-stat-card h3 {
  color: var(--accent-primary);
  font-size: 28px;
}

.admin-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-menu-list a {
  background: var(--surface-deep);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
}

.admin-menu-list a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* =========================================
   ADMIN MEMBERS PAGE
========================================= */

.admin-search-box {
  margin-top: 14px;
  margin-bottom: 16px;
}

.admin-search-box input {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-deep);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
}

.admin-search-box input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-member-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
}

.admin-member-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-member-top h3 {
  color: var(--text-color);
  font-size: 18px;
  margin-bottom: 5px;
}

.admin-member-top p {
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 700;
}

.admin-member-info {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.admin-member-info p {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.6;
}

.admin-member-info strong {
  color: var(--text-color);
}

.admin-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.small-action-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-deep);
  color: var(--text-color);
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.small-action-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* =========================================
   ADMIN PIN ATTENDANCE PAGE
========================================= */

.pin-attendance-card {
  margin-top: 20px;
}

.pin-attendance-card h2 {
  color: var(--text-color);
  font-size: 26px;
  margin-bottom: 8px;
}

.pin-attendance-card > p {
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
}

#pinInput {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--accent-primary);
}

#pinInput::placeholder {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--placeholder-text);
}

#statusMsg {
  margin-top: 18px;
  font-weight: 700;
  text-align: center;
}

#statusMsg.success {
  color: var(--accent-primary);
}

#statusMsg.error {
  color: var(--danger);
}
/* =========================================
   PIN ATTENDANCE PAGE - MOCKUP THEME
========================================= */

.pin-attendance-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, #18213A 0%, var(--page-bg) 58%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.pin-phone-screen {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-color);
  padding: 26px 22px;
  box-sizing: border-box;
  position: relative;
}

.pin-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

.pin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pin-logo-circle {
  width: 42px;
  height: 42px;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  font-size: 14px;
}

.pin-logo h2 {
  font-size: 15px;
  line-height: 1;
  margin: 0;
  letter-spacing: 1px;
}

.pin-logo p {
  font-size: 9px;
  margin: 3px 0 0;
  letter-spacing: 1px;
}

.pin-back-btn {
  background: var(--accent-primary);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.pin-hero {
  text-align: center;
  margin-bottom: 28px;
}

.pin-small-title {
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pin-hero h1 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
  color: var(--text-color);
}

.pin-subtitle {
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.pin-card {
  background: linear-gradient(145deg, var(--card-color), var(--card-color-alt));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 45px var(--shadow-color);
  margin-bottom: 18px;
}

.pin-card label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.pin-card input {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-color);
  color: var(--accent-primary);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 18px;
}

.pin-card input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.pin-card input::placeholder {
  color: var(--placeholder-text);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
}

.pin-card button {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--accent-primary);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.pin-card button:active {
  transform: scale(0.98);
}

#statusMsg {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  margin: 18px 0 0;
  min-height: 20px;
}

#statusMsg.success {
  color: var(--accent-primary) !important;
}

#statusMsg.error {
  color: var(--danger) !important;
}

#statusMsg.info {
  color: var(--info) !important;
}

#statusMsg.loading {
  color: var(--muted-text) !important;
}

.pin-info-card {
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
}

.pin-info-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text-color);
}

.pin-info-card p {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}

.pin-info-card p:last-child {
  border-bottom: none;
}

/* =========================================
   PANEL REVISION - ADMIN ATTENDANCE QR/PIN
========================================= */

.attendance-method-buttons {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.secondary-btn {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg-color);
  color: var(--text-color);
  font-weight: 800;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
}

#qrReader {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-color);
  margin: 18px 0;
}

#qrReader video {
  border-radius: 18px;
}

#qrStatusMsg,
#pinStatusMsg {
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
}

.form-message.success,
#qrStatusMsg.success,
#pinStatusMsg.success {
  color: var(--accent-primary);
}

.form-message.error,
#qrStatusMsg.error,
#pinStatusMsg.error {
  color: var(--danger);
}

.form-message.info,
#qrStatusMsg.info,
#pinStatusMsg.info {
  color: var(--info);
}

.form-message.loading,
#qrStatusMsg.loading,
#pinStatusMsg.loading {
  color: var(--muted-text);
}

/* =========================================
   MEMBER PIN SHOW / HIDE
========================================= */

.pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pin-row h3 {
  margin: 0;
  color: var(--accent-primary);
  letter-spacing: 3px;
}

.eye-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* =========================================
   FIX MEMBER PIN WRAP
========================================= */

.pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.pin-row h3 {
  font-size: 18px;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  flex: 1;
}

.eye-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 15px;
  flex-shrink: 0;
}

/* =========================================
   MEMBER FIXED BOTTOM FOOTER NAVIGATION
========================================= */

.mobile-screen {
  padding-bottom: 95px;
}

.member-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 8px 12px;
  z-index: 999;
}

.member-nav-item {
  text-decoration: none;
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  border-radius: 14px;
}

.member-nav-item:hover {
  background: var(--card-color);
  color: var(--accent-primary);
}

.member-nav-item:active {
  background: var(--card-color);
}

.member-nav-item .nav-icon {
  font-size: 20px;
  line-height: 1;
}
/* =========================================
   MEMBER VIEW - RENEW SUBSCRIPTION
========================================= */

.member-renew-summary {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0;
}

.member-renew-summary p {
  color: var(--muted-text);
  font-size: 14px;
  margin-bottom: 8px;
}

.member-renew-summary p:last-child {
  margin-bottom: 0;
}

.member-renew-summary strong {
  color: var(--text-color);
}

/* SMALL SIMPLE UNDO BUTTON */

.small-undo-btn {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: #FCA5A5;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.small-undo-btn:hover {
  background: rgba(248, 113, 113, 0.10);
}

/* =========================================
   COLOR SYSTEM POLISH
   Consistent interaction states and accessibility
========================================= */

button,
a,
input {
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.primary-btn:hover,
.logout-btn:hover,
.menu-btn:hover,
.pin-back-btn:hover,
.pin-card button:hover {
  background: var(--accent-primary-hover);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.logout-btn:focus-visible,
.menu-btn:focus-visible,
.small-action-btn:focus-visible,
.eye-btn:focus-visible,
.pin-back-btn:focus-visible,
.pin-card button:focus-visible,
.member-nav-item:focus-visible,
.admin-menu-list a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.secondary-btn:hover,
.small-action-btn:hover,
.eye-btn:hover,
.admin-menu-list a:hover {
  background: var(--surface-raised);
}

.status-badge.active,
.history-card-header span {
  background: var(--success-soft);
  color: var(--success);
}

.active-text,
.form-message.success,
#statusMsg.success,
#qrStatusMsg.success,
#pinStatusMsg.success {
  color: var(--success) !important;
}

.status-badge.expired {
  background: var(--danger-soft);
  color: var(--danger);
}

.expired-text,
.form-message.error,
#statusMsg.error,
#qrStatusMsg.error,
#pinStatusMsg.error {
  color: var(--danger) !important;
}

.form-message.info,
#statusMsg.info,
#qrStatusMsg.info,
#pinStatusMsg.info {
  color: var(--info) !important;
}

::selection {
  background: var(--accent-primary);
  color: var(--on-accent);
}

/* FINAL RESPONSIVE BRAND LOGO */

/* Admin page header: text on the left, logo and action on the right. */
.dashboard-header {
  position: relative;
  align-items: flex-start;
  gap: 16px;
  min-height: 112px;
}

.dashboard-header > div:first-child {
  min-width: 0;
  flex: 1;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.header-brand-logo {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.header-actions .logout-btn {
  margin: 0;
  white-space: nowrap;
}

/* Member page header: logo stays at the upper-right side. */
.member-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
}

.member-header > div:first-child {
  min-width: 0;
  flex: 1;
}

/* Login page: large centered brand logo. */
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 28px;
}

.login-brand-logo {
  display: block;
  width: 270px;
  max-width: 88%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
}

.login-brand-subtitle {
  margin: 0;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .dashboard-header {
    min-height: 102px;
    gap: 12px;
  }

  .header-brand-logo {
    width: 76px;
    height: 76px;
  }

  .member-header {
    min-height: 90px;
    gap: 12px;
  }

  .login-brand-logo {
    width: 230px;
    max-width: 84%;
  }
}

@media (max-width: 340px) {
  .dashboard-header h1,
  .member-header h1 {
    font-size: 21px;
  }

  .header-brand-logo {
    width: 64px;
    height: 64px;
  }

  .header-actions .logout-btn {
    padding: 8px 11px;
    font-size: 12px;
  }

  .login-brand-logo {
    width: 200px;
  }
}
/* =========================================
   FORM INPUT AND SUBSCRIPTION PLAN SELECT
========================================= */

.form-group input,
.form-group select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface-deep);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
}

.form-group select {
  cursor: pointer;
  padding-right: 44px;
  color-scheme: dark;
}

.form-group select option {
  background-color: var(--surface-deep);
  color: var(--text-color);
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-group select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* =========================================
   FINAL MEMBER DASHBOARD LAYOUT
========================================= */

.member-screen {
  overflow-y: auto;
  padding-bottom: 110px;
}

/* =========================================
   MEMBER NOTIFICATIONS
========================================= */

.member-notification-card {
  background: linear-gradient(
    145deg,
    var(--card-color),
    var(--card-color-alt)
  );

  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: 20px;

  padding: 18px;
  margin-bottom: 24px;
}

.notification-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.notification-card-header h2 {
  color: var(--text-color);
  font-size: 20px;
}

.notification-count {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: var(--accent-primary);
  color: var(--on-accent);

  font-size: 13px;
  font-weight: 900;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-empty {
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-deep);
  border: 1px solid var(--border-color);
}

.notification-empty p {
  color: var(--muted-text);
  font-size: 14px;
}

/* Future notification item */
.member-notification-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-deep);
  border: 1px solid var(--border-color);
}

.member-notification-item h3 {
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 5px;
}

.member-notification-item p {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================
   WORKOUT AND HELP CARDS
========================================= */

.member-feature-card {
  margin-top: 18px;
}

.member-feature-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.member-feature-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: var(--accent-soft);
  color: var(--accent-primary);

  font-size: 23px;
}

.member-feature-heading h3 {
  margin: 0;
}

.member-feature-card > p {
  margin-bottom: 16px;
}

/* =========================================
   NEW MEMBER BOTTOM NAVIGATION
========================================= */

.member-bottom-nav-new {
  grid-template-columns: repeat(5, 1fr);
}

.member-bottom-nav-new .member-nav-item {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.member-bottom-nav-new .member-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.member-more-button {
  width: 100%;
  padding: 0;
}

/* =========================================
   MORE MENU
========================================= */

.member-menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.7);
  z-index: 1200;
}

.member-more-menu {
  position: fixed;

  left: 50%;
  bottom: 0;

  width: 100%;
  max-width: 390px;
  max-height: 82vh;

  padding: 20px 20px 26px;

  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-bottom: none;

  border-radius: 24px 24px 0 0;

  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);

  transform: translate(-50%, 110%);
  transition: transform 0.25s ease;

  overflow-y: auto;
  z-index: 1300;
}

.member-more-menu.active {
  transform: translate(-50%, 0);
}

.more-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.more-menu-header h2 {
  color: var(--text-color);
  font-size: 26px;
}

.more-menu-close {
  width: 42px;
  height: 42px;

  border: 1px solid var(--border-color);
  border-radius: 50%;

  background: var(--surface-deep);
  color: var(--text-color);

  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.more-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.more-menu-links a,
.more-menu-logout {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 14px 15px;

  border: 1px solid var(--border-color);
  border-radius: 14px;

  background: var(--surface-deep);
  color: var(--text-color);

  text-decoration: none;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}

.more-menu-links a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.more-menu-logout {
  margin-top: 6px;
  color: var(--danger);
  text-align: left;
}

.more-menu-logout:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
}

body.menu-open {
  overflow: hidden;
}

/* =========================================
   ROLE-BASED HELP CENTER
========================================= */

.help-screen {
  overflow-y: auto;
  padding-bottom: 40px;
}

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.help-header h1 {
  color: var(--text-color);
  font-size: 28px;
  margin-bottom: 9px;
}

.help-welcome-card h2 {
  margin-bottom: 8px;
}

.help-search-box {
  margin-top: 18px;
}

.help-search-box input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background: var(--surface-deep);
  color: var(--text-color);

  font-size: 15px;
  outline: none;
}

.help-search-box input::placeholder {
  color: var(--placeholder-text);
}

.help-search-box input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.help-category-section {
  margin-bottom: 25px;
}

.help-category-list {
  display: flex;
  gap: 9px;

  overflow-x: auto;

  padding-bottom: 8px;

  scrollbar-width: thin;
}

.help-category-btn {
  flex: 0 0 auto;

  border: 1px solid var(--border-color);
  border-radius: 999px;

  background: var(--surface-deep);
  color: var(--muted-text);

  padding: 10px 14px;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.help-category-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--on-accent);
}

.help-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-article-card {
  overflow: hidden;

  background: linear-gradient(
    145deg,
    var(--card-color),
    var(--card-color-alt)
  );

  border: 1px solid var(--border-color);
  border-radius: 18px;
}

.help-article-card.open {
  border-color: var(--accent-primary);
}

.help-article-toggle {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  padding: 17px;

  border: none;

  background: transparent;
  color: var(--text-color);

  text-align: left;
  cursor: pointer;
}

.help-article-toggle > div {
  min-width: 0;
  flex: 1;
}

.help-article-category {
  color: var(--accent-primary);

  font-size: 12px;
  font-weight: 800;

  margin-bottom: 6px;
}

.help-article-toggle h3 {
  color: var(--text-color);

  font-size: 17px;
  line-height: 1.3;

  margin-bottom: 6px;
}

.help-article-summary {
  color: var(--muted-text);

  font-size: 13px;
  line-height: 1.45;
}

.help-article-arrow {
  flex: 0 0 auto;

  color: var(--accent-primary);

  font-size: 30px;
  font-weight: 700;

  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.help-article-card.open
.help-article-arrow {
  transform: rotate(90deg);
}

.help-article-content {
  padding: 0 17px 18px;

  border-top: 1px solid var(--border-color);
}

.help-content-text {
  padding-top: 16px;

  color: var(--text-color);

  font-size: 14px;
  line-height: 1.7;

  white-space: pre-line;
}

.help-updated-date {
  margin-top: 18px;

  color: var(--subtle-text);

  font-size: 12px;
  font-weight: 700;
}

.help-empty-state {
  text-align: center;
}

.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;
}

/* =========================================
   USER MANUAL AND HELP CENTER TITLE
========================================= */

.help-title-container {
  min-width: 0;
  flex: 1;
}

.help-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.help-title-row > div {
  min-width: 0;
}

.help-title-row h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.help-title-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--accent-primary);
  color: var(--on-accent);

  font-size: 28px;
  font-weight: 900;

  box-shadow: 0 0 0 4px var(--accent-soft);
}

@media (max-width: 360px) {
  .help-title-row h1 {
    font-size: 20px;
  }

  .help-title-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 24px;
  }
}
/* =========================================
   ADMIN UPDATES AND ANNOUNCEMENTS
========================================= */

.announcements-screen {
  overflow-y: auto;
  padding-bottom: 45px;
}

.announcement-form-heading {
  margin-bottom: 18px;
}

.announcement-form-heading h2 {
  margin: 0;
}

.form-group textarea {
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 14px 15px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background: var(--surface-deep);
  color: var(--text-color);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;

  resize: vertical;
  outline: none;
}

.form-group textarea::placeholder {
  color: var(--placeholder-text);
}

.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field-helper {
  margin-top: 7px;

  color: var(--subtle-text) !important;

  font-size: 12px !important;
  line-height: 1.4 !important;
}

.admin-announcement-card {
  padding: 18px;

  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-strong);
  border-radius: 20px;

  background: linear-gradient(
    145deg,
    var(--card-color),
    var(--card-color-alt)
  );
}

.announcement-priority-normal {
  border-left-color: var(--info);
}

.announcement-priority-important {
  border-left-color: var(--accent-primary);
}

.announcement-priority-urgent {
  border-left-color: var(--danger);
}

.admin-announcement-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;

  margin-bottom: 13px;
}

.admin-announcement-top > div {
  min-width: 0;
  flex: 1;
}

.admin-announcement-top h3 {
  color: var(--text-color);

  font-size: 18px;
  line-height: 1.35;
}

.announcement-category-label {
  margin-bottom: 5px;

  color: var(--accent-primary);

  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-status {
  flex: 0 0 auto;

  padding: 6px 9px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.announcement-status-published {
  background: var(--success-soft);
  color: var(--success);
}

.announcement-status-draft {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.announcement-status-archived {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-announcement-message {
  margin-bottom: 14px;

  color: var(--text-color);

  font-size: 14px;
  line-height: 1.6;

  white-space: pre-line;
}

.admin-announcement-details {
  padding-top: 13px;

  border-top: 1px solid var(--border-color);
}

.admin-announcement-details p {
  margin-bottom: 6px;

  color: var(--muted-text);

  font-size: 12px;
  line-height: 1.45;
}

.admin-announcement-details p:last-child {
  margin-bottom: 0;
}

.announcement-archive-btn {
  color: var(--danger);
}

.small-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.announcement-empty-card {
  text-align: center;
}

/* =========================================
   MEMBER UPDATES AND ANNOUNCEMENTS
========================================= */

.member-announcement-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.member-announcement-item {
  padding: 14px;

  border: 1px solid var(--border-color);
  border-left: 4px solid var(--info);
  border-radius: 14px;

  background: var(--surface-deep);
}

.member-announcement-normal {
  border-left-color: var(--info);
}

.member-announcement-important {
  border-left-color: var(--accent-primary);
}

.member-announcement-urgent {
  border-left-color: var(--danger);
}

.member-announcement-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 9px;
}

.member-announcement-category {
  padding: 5px 8px;

  border-radius: 999px;

  background: var(--accent-soft);
  color: var(--accent-primary);

  font-size: 11px;
  font-weight: 800;
}

.member-announcement-date {
  color: var(--subtle-text);

  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.member-announcement-item h3 {
  margin-bottom: 6px;

  color: var(--text-color);

  font-size: 16px;
  line-height: 1.35;
}

.member-announcement-item > p {
  color: var(--muted-text);

  font-size: 13px;
  line-height: 1.55;

  white-space: pre-line;
}

.announcement-toggle-btn {
  width: 100%;

  margin-top: 12px;
  padding: 11px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 12px;

  background: transparent;
  color: var(--text-color);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.announcement-toggle-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* =========================================
   ANNOUNCEMENT DROPDOWN
========================================= */

.notification-card-header {
  margin-bottom: 0;
}

.member-notification-card.is-open
.notification-card-header {
  margin-bottom: 14px;
}

.notification-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0;

  border: none;
  background: transparent;

  cursor: pointer;
}

.notification-dropdown-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  border: 1px solid var(--border-strong);
  border-radius: 50%;

  color: var(--text-color);

  font-size: 16px;
  font-weight: 800;

  transition: transform 0.2s ease;
}

.notification-dropdown-btn[aria-expanded="true"]
.notification-dropdown-arrow {
  transform: rotate(180deg);
}

.notification-dropdown-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  border-radius: 999px;
}

.announcement-dropdown-content {
  width: 100%;
}

.announcement-dropdown-content[hidden] {
  display: none;
}
.password-reset-section {
  margin-top: 18px;
}

.password-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-input-row input {
  flex: 1;
}

.password-toggle-btn {
  border: 1px solid #f6a313;
  background: transparent;
  color: #f6a313;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle-btn:hover {
  background: #f6a313;
  color: #000;
}

.password-note {
  display: block;
  margin-top: 8px;
  color: #aab3c5;
  font-size: 12px;
  line-height: 1.4;
}

.generate-password-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #f6a313;
  background: transparent;
  color: #f6a313;
  border-radius: 14px;
  padding: 13px;
  font-weight: 700;
  cursor: pointer;
}

.generate-password-btn:hover {
  background: #f6a313;
  color: #000;
}

/* ==================================================
   ADMIN MEMBER EDIT — PASSWORD FIELD FIX
================================================== */

.password-reset-section .member-password-field {
  position: relative;
  width: 100%;
}

.password-reset-section .member-password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 78px;
}

/* Keep the Show/Hide button inside the password field */
.password-reset-section .password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  bottom: auto;
  left: auto;

  transform: translateY(-50%);

  width: auto;
  min-width: 52px;
  height: 34px;

  margin: 0;
  padding: 5px 10px;

  border: 1px solid #ffa000;
  border-radius: 10px;

  background: transparent;
  color: #ffa000;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  z-index: 2;
}

.password-reset-section .password-toggle-btn:hover {
  background: rgba(255, 160, 0, 0.1);
}

.password-reset-section .password-note {
  display: block;
  margin-top: 8px;

  font-size: 12px;
  line-height: 1.4;
}

.password-reset-section .generate-password-btn {
  width: 100%;
  margin-top: 14px;
}

/* =========================================
   ADMIN MEMBERS — FILTERS AND STATUS COUNTS
========================================= */

.member-status-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.member-count-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 72px;
  padding: 14px 16px;

  background: linear-gradient(
    145deg,
    var(--card-color),
    var(--card-color-alt)
  );

  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.member-count-label {
  color: var(--muted-text);
  font-size: 13px;
  font-weight: 700;
}

.member-count-card strong {
  font-size: 25px;
  line-height: 1;
}

.count-active {
  border-left: 4px solid var(--success);
}

.count-active strong {
  color: var(--success);
}

.count-expiring {
  border-left: 4px solid var(--accent-primary);
}

.count-expiring strong {
  color: var(--accent-primary);
}

.count-expired {
  border-left: 4px solid var(--danger);
}

.count-expired strong {
  color: var(--danger);
}

/* Search and filter controls */

.member-filter-card h3 {
  margin-bottom: 16px;
}

.filter-label,
.member-filter-field label {
  display: block;
  margin-bottom: 7px;

  color: var(--text-color);
  font-size: 13px;
  font-weight: 700;
}

.member-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.member-filter-field select {
  display: block;
  width: 100%;
  min-height: 50px;

  padding: 12px 42px 12px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background-color: var(--surface-deep);
  color: var(--text-color);

  font-size: 14px;
  outline: none;
  cursor: pointer;

  color-scheme: dark;
}

.member-filter-field select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.member-filter-field select option {
  background: var(--surface-deep);
  color: var(--text-color);
}

.clear-member-filters-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 11px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background: transparent;
  color: var(--text-color);

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.clear-member-filters-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-soft);
}

/* Member list heading */

.member-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin: 22px 0 14px;
}

.member-list-heading h2 {
  color: var(--text-color);
  font-size: 18px;
  text-transform: uppercase;
}

.member-list-heading p {
  margin-top: 5px;
  color: var(--muted-text);
  font-size: 12px;
}

/* Status badges */

.status-badge.active {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.expired {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge.expiring-soon {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

/* Empty state */

.member-empty-state {
  padding: 28px 20px;

  border: 1px dashed var(--border-strong);
  border-radius: 18px;

  background: var(--surface-deep);
  text-align: center;
}

.member-empty-state[hidden] {
  display: none;
}

.member-empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-color);
}

.member-empty-state p {
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.5;
}

/* Tablet and desktop layout */

@media (min-width: 600px) {
  .member-status-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .member-count-card {
    display: block;
    min-height: 100px;
  }

  .member-count-card strong {
    display: block;
    margin-top: 12px;
  }

  .member-filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   MEMBER CARD STATUS AND PLAN BADGES
========================================= */

.member-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.member-card-badges .status-badge {
  max-width: 135px;
  text-align: center;
  overflow-wrap: anywhere;
}

.status-badge.plan-badge {
  background: var(--surface-deep);
  color: var(--muted-text);
  border: 1px solid var(--border-color);
}

@media (max-width: 420px) {
  .admin-member-top {
    flex-direction: column;
  }

  .member-card-badges {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* =========================================
   ADMIN MEMBERS PAGE — MOBILE-FIRST V2
========================================= */

/* -----------------------------------------
   Status count/filter buttons
----------------------------------------- */

.member-status-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.member-status-filter {
  --member-status-color: var(--accent-primary);

  min-width: 0;
  min-height: 82px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;

  border: 1px solid var(--border-color);
  border-left: 4px solid var(--member-status-color);
  border-radius: 16px;

  background: linear-gradient(
    145deg,
    var(--card-color),
    var(--card-color-alt)
  );

  color: var(--text-color);
  text-align: left;
  cursor: pointer;
}

.member-status-filter span {
  color: var(--muted-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.member-status-filter strong {
  color: var(--member-status-color);
  font-size: 27px;
  line-height: 1;
}

.member-status-filter:hover {
  border-color: var(--member-status-color);
  background: var(--surface-raised);
}

.member-status-filter.is-selected {
  border-color: var(--member-status-color);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.member-status-filter:focus-visible {
  outline: none;
  border-color: var(--member-status-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.status-all {
  --member-status-color: var(--accent-primary);
}

.status-active {
  --member-status-color: var(--success);
}

.status-expiring {
  --member-status-color: var(--accent-primary);
}

.status-expired {
  --member-status-color: var(--danger);
}

/* -----------------------------------------
   Search and sorting card
----------------------------------------- */

.member-filter-card {
  padding: 18px;
}

.member-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.member-filter-header h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.member-filter-header .small-text {
  margin-bottom: 3px;
  font-size: 12px;
}

.member-clear-filter-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 12px;

  border: 1px solid var(--border-strong);
  border-radius: 11px;

  background: transparent;
  color: var(--muted-text);

  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.member-clear-filter-btn:hover {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.member-control-field {
  margin-bottom: 16px;
}

.member-control-field label,
.member-control-label {
  display: block;
  margin-bottom: 8px;

  color: var(--text-color);
  font-size: 13px;
  font-weight: 700;
}

.member-control-field input,
.member-control-field select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background-color: var(--surface-deep);
  color: var(--text-color);

  font-size: 14px;
  outline: none;
}

.member-control-field input::placeholder {
  color: var(--placeholder-text);
}

.member-control-field input:focus,
.member-control-field select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.member-control-field select {
  padding-right: 42px;
  cursor: pointer;
  color-scheme: dark;
}

.member-control-field select option {
  background: var(--surface-deep);
  color: var(--text-color);
}

/* Ascending/descending segmented control */

.member-sort-direction-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  padding: 4px;

  border: 1px solid var(--border-color);
  border-radius: 14px;

  background: var(--surface-deep);
}

.member-sort-direction-btn {
  min-width: 0;
  min-height: 42px;
  padding: 9px 7px;

  border: none;
  border-radius: 10px;

  background: transparent;
  color: var(--muted-text);

  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.member-sort-direction-btn:hover {
  color: var(--text-color);
}

.member-sort-direction-btn.is-selected {
  background: var(--surface-raised);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.member-sort-direction-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Add member button */

.member-add-link {
  width: 100%;
  max-width: none;
  margin: 4px 0 0;
  padding: 13px 16px;

  border-radius: 14px;

  font-size: 15px;
  text-align: center;
}

/* -----------------------------------------
   List heading
----------------------------------------- */

.member-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin: 22px 0 12px;
}

.member-list-heading h2 {
  color: var(--text-color);
  font-size: 17px;
  text-transform: uppercase;
}

.member-list-heading p {
  margin-top: 4px;

  color: var(--muted-text);
  font-size: 12px;
}

/* -----------------------------------------
   Member card
----------------------------------------- */

.admin-member-card {
  padding: 18px;
  border-radius: 18px;
}

.member-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.member-card-heading {
  min-width: 0;
  flex: 1;
}

.member-card-heading h3 {
  margin-bottom: 5px;

  color: var(--text-color);
  font-size: 17px;
  line-height: 1.25;

  overflow-wrap: anywhere;
}

.member-code-text {
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
}

.member-card-header .status-badge {
  flex-shrink: 0;
  padding: 7px 11px;

  font-size: 11px;
  white-space: nowrap;
}

.status-badge.expiring-soon {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

/* Subscription summary */

.member-subscription-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;

  margin-bottom: 14px;
  padding: 10px 12px;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  background: var(--surface-deep);

  color: var(--muted-text);
  font-size: 12px;
}

.member-plan-pill {
  color: var(--text-color);
  font-weight: 700;
}

.member-meta-divider {
  color: var(--subtle-text);
}

.member-expiration-text {
  color: var(--muted-text);
}

/* Member detail rows */

.member-detail-list {
  margin: 0;
  padding: 0;
}

.member-detail-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;

  padding: 7px 0;

  border-bottom: 1px solid rgba(42, 51, 72, 0.65);
}

.member-detail-row:last-child {
  border-bottom: none;
}

.member-detail-row dt {
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 700;
}

.member-detail-row dd {
  min-width: 0;
  margin: 0;

  color: var(--text-color);
  font-size: 12px;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

/* Card actions */

.admin-member-card .admin-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-member-card .small-action-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px;

  border-radius: 12px;
}

/* -----------------------------------------
   Empty state
----------------------------------------- */

.member-empty-state {
  padding: 26px 18px;

  border: 1px dashed var(--border-strong);
  border-radius: 18px;

  background: var(--surface-deep);
  text-align: center;
}

.member-empty-state[hidden] {
  display: none;
}

.member-empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-color);
}

.member-empty-state p {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.5;
}

.member-empty-clear-btn {
  margin-top: 16px;
  padding: 11px 15px;

  border: 1px solid var(--border-strong);
  border-radius: 12px;

  background: transparent;
  color: var(--text-color);

  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.member-empty-clear-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-soft);
}

/* Very small mobile screens */

@media (max-width: 340px) {
  .member-status-filter-grid {
    grid-template-columns: 1fr;
  }

  .member-sort-direction-control {
    grid-template-columns: 1fr;
  }

  .member-detail-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* =========================================
   RESPONSIVE ADMIN APP SHELL
   Mobile-first adaptive desktop layout
========================================= */

/* -----------------------------------------
   Base mobile behavior
----------------------------------------- */

.admin-app-shell {
  width: 100%;
  min-height: 100vh;
}

.admin-app-content {
  width: 100%;
  min-width: 0;
}

.admin-desktop-sidebar {
  display: none;
}

.desktop-page-label {
  display: none;
}

/*
  Keep the existing mobile screen behavior.
  The desktop breakpoint below will override it.
*/
.admin-app-content .admin-screen {
  width: 100%;
}

/* -----------------------------------------
   Better tablet behavior
----------------------------------------- */

@media (min-width: 600px) and (max-width: 1023px) {
  .admin-app-content .admin-screen {
    width: min(100%, 760px);
    max-width: 760px;
    margin-inline: auto;
  }

  .admin-stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* -----------------------------------------
   Desktop layout
----------------------------------------- */

@media (min-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .admin-app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);

    min-height: 100vh;
  }

  /* Desktop sidebar */

  .admin-desktop-sidebar {
    position: sticky;
    top: 0;

    display: flex;
    flex-direction: column;

    width: 250px;
    height: 100vh;

    padding: 24px 18px;

    border-right: 1px solid var(--border-color);

    background:
      linear-gradient(
        180deg,
        var(--surface-deep),
        var(--background-color)
      );

    overflow-y: auto;
  }

  .admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 22px;

    border-bottom: 1px solid var(--border-color);
  }

.admin-sidebar-logo {
  width: 62px;
  height: 62px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4px;

  border: 1px solid var(--border-color);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);

  overflow: hidden;
}

.admin-sidebar-brand-text {
  min-width: 0;
}

.admin-sidebar-brand-text strong {
  display: block;

  color: var(--text-color);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-sidebar-brand-text span {
  display: block;
  margin-top: 4px;

  color: var(--muted-text);
  font-size: 11px;
  line-height: 1.2;
}

.admin-sidebar-logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}



.admin-sidebar-logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

  .admin-sidebar-brand strong,
  .admin-sidebar-brand span {
    display: block;
  }

  .admin-sidebar-brand strong {
    color: var(--text-color);
    font-size: 14px;
  }

  .admin-sidebar-brand span {
    margin-top: 2px;

    color: var(--muted-text);
    font-size: 11px;
  }

  .admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 22px;
  }

  .admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 46px;
    padding: 10px 12px;

    border: 1px solid transparent;
    border-radius: 13px;

    color: var(--muted-text);
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .admin-sidebar-link:hover {
    border-color: var(--border-color);
    background: var(--surface-raised);
    color: var(--text-color);

    transform: translateX(2px);
  }

  .admin-sidebar-link.active {
    border-color: rgba(255, 160, 0, 0.38);

    background: var(--accent-soft);
    color: var(--accent-primary);
  }

  .admin-sidebar-icon {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    flex-shrink: 0;

    border-radius: 8px;

    background: var(--surface-raised);

    font-size: 13px;
  }

  .admin-sidebar-link.active .admin-sidebar-icon {
    background: var(--accent-primary);
    color: #111;
  }

  .admin-sidebar-footer {
    margin-top: auto;
    padding: 20px 8px 4px;

    border-top: 1px solid var(--border-color);
  }

  .admin-sidebar-footer p {
    color: var(--text-color);
    font-size: 11px;
    font-weight: 700;
  }

  .admin-sidebar-footer span {
    color: var(--muted-text);
    font-size: 10px;
  }

  /* Desktop main content */

  .admin-app-content {
    min-height: 100vh;

    background:
      radial-gradient(
        circle at top right,
        rgba(255, 160, 0, 0.06),
        transparent 28%
      ),
      var(--background-color);
  }

  .admin-app-content .admin-screen {
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 32px 38px 48px;
  }

  .admin-app-content .dashboard-header {
    margin-bottom: 30px;
  }

  .admin-app-content .dashboard-header h1 {
    font-size: clamp(28px, 3vw, 38px);
  }

  .desktop-page-label {
    display: block;
  }

  /* Four desktop statistics cards */

  .admin-app-content .admin-stats-grid {
    display: grid;
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 18px;
  }

  .admin-app-content .admin-stat-card {
    min-height: 150px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .admin-app-content .admin-stat-card h3 {
    font-size: 32px;
  }

  /*
    Desktop uses the sidebar, so the duplicate
    Management Modules card is hidden.
  */
  .admin-mobile-modules {
    display: none;
  }
}

/* -----------------------------------------
   Large desktop
----------------------------------------- */

@media (min-width: 1280px) {
  .admin-app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .admin-desktop-sidebar {
    width: 280px;
    padding-inline: 22px;
  }

  .admin-app-content .admin-screen {
    padding-inline: 48px;
  }
}

/* =========================================
   ADMIN DASHBOARD V2
   Mobile-first responsive dashboard
========================================= */

/* Header */

.admin-dashboard-header {
  align-items: flex-start;
}

.admin-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
}

.dashboard-date {
  color: var(--muted-text, #a8b3cc);
  font-size: 12px;
}

/* Page title */

.dashboard-section-heading {
  margin: 22px 0 14px;
}

.dashboard-section-heading h2 {
  color: var(--text-color, #fff);
  font-size: 20px;
  text-transform: uppercase;
}

.dashboard-section-description {
  margin-top: 7px;
  color: var(--muted-text, #a8b3cc);
  font-size: 13px;
  line-height: 1.5;
}

/* Summary cards */

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dashboard-summary-card {
  --summary-color: var(--accent-primary, #ffa000);

  min-width: 0;
  min-height: 128px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;

  border: 1px solid var(--border-color, #27324a);
  border-top: 4px solid var(--summary-color);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );

  color: var(--text-color, #fff);
  text-decoration: none;

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-summary-card:hover {
  border-color: var(--summary-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.summary-card-label {
  display: block;

  color: var(--muted-text, #a8b3cc);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-summary-card strong {
  display: block;
  margin-top: 14px;

  color: var(--summary-color);
  font-size: 30px;
  line-height: 1;
}

.summary-card-action {
  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
  font-weight: 700;
}

.summary-active {
  --summary-color: var(--success, #22d673);
}

.summary-expiring {
  --summary-color: var(--accent-primary, #ffa000);
}

.summary-expired {
  --summary-color: var(--danger, #ff6474);
}

.summary-attendance {
  --summary-color: #74a7ff;
}

.summary-revenue {
  --summary-color: var(--accent-primary, #ffa000);
}

/* Main dashboard columns */

.dashboard-primary-grid,
.dashboard-primary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
/* Shared dashboard panel */

.dashboard-panel {
  min-width: 0;
  padding: 18px;

  border: 1px solid var(--border-color, #27324a);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );
}

.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 16px;
}

.dashboard-panel-header h3 {
  color: var(--text-color, #fff);
  font-size: 17px;
}

.dashboard-panel-link {
  flex-shrink: 0;

  color: var(--accent-primary, #ffa000);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-panel-link:hover {
  text-decoration: underline;
}

/* Empty placeholders */

.dashboard-empty-placeholder {
  padding: 22px 16px;

  border: 1px dashed var(--border-color, #27324a);
  border-radius: 14px;

  background: var(--surface-deep, #0d1423);
  text-align: center;
}

.dashboard-empty-placeholder p {
  color: var(--muted-text, #a8b3cc);
  font-size: 13px;
  line-height: 1.5;
}

/* Quick actions */

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dashboard-action-link {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 64px;
  padding: 12px;

  border: 1px solid var(--border-color, #27324a);
  border-radius: 14px;

  background: var(--surface-deep, #0d1423);
  color: var(--text-color, #fff);
  text-decoration: none;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.dashboard-action-link:hover {
  border-color: var(--accent-primary, #ffa000);
  background: var(--surface-raised, #1c263b);
  transform: translateX(2px);
}

.dashboard-action-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  flex-shrink: 0;

  border-radius: 11px;

  background: var(--accent-soft, rgba(255, 160, 0, 0.14));
  color: var(--accent-primary, #ffa000);

  font-size: 16px;
  font-weight: 800;
}

.dashboard-action-link strong,
.dashboard-action-link small {
  display: block;
}

.dashboard-action-link strong {
  font-size: 13px;
}

.dashboard-action-link small {
  margin-top: 3px;

  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
  line-height: 1.3;
}

/* Activity lists used in Phase 2 */

.dashboard-attention-list,
.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px;

  border: 1px solid var(--border-color, #27324a);
  border-radius: 13px;

  background: var(--surface-deep, #0d1423);
}

.dashboard-activity-item-main {
  min-width: 0;
}

.dashboard-activity-item strong {
  display: block;

  color: var(--text-color, #fff);
  font-size: 13px;

  overflow-wrap: anywhere;
}

.dashboard-activity-item span {
  display: block;
  margin-top: 4px;

  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
}

.dashboard-activity-value {
  flex-shrink: 0;

  color: var(--accent-primary, #ffa000);
  font-size: 12px;
  font-weight: 800;
}

/* Tablet */

@media (min-width: 600px) {
  .admin-header-meta {
    flex-direction: row;
    align-items: center;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop */

@media (min-width: 1024px) {
  .dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }

  .dashboard-section-description {
    max-width: 460px;
    margin-top: 0;
    text-align: right;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .dashboard-summary-card {
    min-height: 150px;
    padding: 20px;
  }

  .dashboard-primary-grid {
    grid-template-columns:
      minmax(0, 1.8fr)
      minmax(300px, 1fr);

    gap: 18px;
  }


  .dashboard-panel {
    padding: 20px;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Large desktop */

@media (min-width: 1280px) {
  .dashboard-summary-card strong {
    font-size: 34px;
  }

  .dashboard-panel {
    padding: 22px;
  }
}

/* Dashboard attention status text */

.dashboard-activity-item span.expired {
  color: var(--danger, #ff6474);
  font-weight: 700;
}

.dashboard-activity-item span.expiring-soon {
  color: var(--accent-primary, #ffa000);
  font-weight: 700;
}

/* =========================================
   ADMIN DASHBOARD V3
   TRUE MOBILE-FIRST RESPONSIVE OVERRIDE
========================================= */

/* -----------------------------------------
   Fix the global centered body behavior
----------------------------------------- */

.admin-app-body {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;

  margin: 0;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 160, 0, 0.04),
      transparent 340px
    ),
    var(--background-color, #070d1b);

  overflow-x: hidden;
}

.admin-app-body .admin-app-shell,
.admin-app-body .admin-app-content {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

/* -----------------------------------------
   Mobile page container
----------------------------------------- */

.admin-app-content .admin-dashboard-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;

  margin: 0;

  padding:
    calc(16px + env(safe-area-inset-top))
    14px
    calc(28px + env(safe-area-inset-bottom));

  border-radius: 0;
  box-shadow: none;
}

/* -----------------------------------------
   Compact mobile header
----------------------------------------- */

.admin-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 18px;
}

.admin-dashboard-header > div {
  min-width: 0;
}

.admin-dashboard-header h1 {
  margin-top: 2px;

  font-size: clamp(21px, 7vw, 27px);
  line-height: 1.1;

  overflow-wrap: anywhere;
}

.admin-dashboard-header .small-text {
  margin-bottom: 2px;
  font-size: 12px;
}

.admin-dashboard-header .logout-btn {
  flex-shrink: 0;

  min-height: 38px;
  padding: 9px 14px;

  border-radius: 999px;

  font-size: 12px;
}

.admin-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;

  margin-top: 8px;
}

.dashboard-date {
  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
  line-height: 1.3;
}

/* -----------------------------------------
   Mobile page introduction
----------------------------------------- */

.dashboard-section-heading {
  margin: 0 0 14px;
}

.dashboard-section-heading h2 {
  margin-top: 2px;

  font-size: 18px;
  line-height: 1.2;
}

.dashboard-section-description {
  max-width: 330px;
  margin-top: 7px;

  color: var(--muted-text, #a8b3cc);

  font-size: 12px;
  line-height: 1.45;
}

/* -----------------------------------------
   Mobile summary cards
----------------------------------------- */

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-summary-card {
  min-width: 0;
  min-height: 112px;

  padding: 14px;

  border-radius: 16px;

  gap: 10px;
}

.dashboard-summary-card strong {
  margin-top: 10px;

  font-size: clamp(24px, 8vw, 30px);
  line-height: 1;
}

.summary-card-label {
  font-size: 11px;
  line-height: 1.3;
}

.summary-card-action {
  display: none;
}

/* Revenue uses full mobile width */

.dashboard-summary-card.summary-revenue {
  grid-column: 1 / -1;
  min-height: 102px;
}

.dashboard-summary-card.summary-revenue strong {
  font-size: clamp(25px, 8vw, 32px);
}

/* -----------------------------------------
   Main mobile dashboard sections
----------------------------------------- */

.dashboard-primary-grid,
.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;

  margin-top: 14px;
}

/*
  On mobile, Quick Actions should come before
  Members Needing Attention.
*/

.dashboard-quick-actions-panel {
  order: 1;
}

.dashboard-attention-panel {
  order: 2;
}

.dashboard-panel {
  min-width: 0;
  padding: 15px;

  border-radius: 16px;
}

.dashboard-panel-header {
  margin-bottom: 13px;
}

.dashboard-panel-header h3 {
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-panel-header .small-text {
  font-size: 10px;
}

.dashboard-panel-link {
  font-size: 11px;
}

/* -----------------------------------------
   Compact mobile Quick Actions
----------------------------------------- */

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-action-link {
  min-width: 0;
  min-height: 92px;

  padding: 11px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 9px;

  border-radius: 14px;
}

.dashboard-action-link:hover {
  transform: none;
}

.dashboard-action-icon {
  width: 34px;
  height: 34px;

  border-radius: 10px;

  font-size: 14px;
}

.dashboard-action-link strong {
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-action-link small {
  display: none;
}

/* -----------------------------------------
   Mobile attention and activity items
----------------------------------------- */

.dashboard-attention-list,
.dashboard-activity-list {
  gap: 8px;
}

.dashboard-activity-item {
  align-items: flex-start;
  gap: 10px;

  padding: 12px;

  border-radius: 13px;
}

.dashboard-activity-item-main {
  flex: 1;
  min-width: 0;
}

.dashboard-activity-item strong {
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-activity-item span {
  margin-top: 4px;

  font-size: 10px;
  line-height: 1.4;
}

.dashboard-empty-placeholder {
  padding: 18px 13px;

  border-radius: 13px;
}

.dashboard-empty-placeholder p {
  font-size: 12px;
}

/* -----------------------------------------
   Mobile Management Modules
----------------------------------------- */

.admin-dashboard-page .admin-mobile-modules {
  margin-top: 14px;
  padding: 15px;

  border-radius: 16px;
}

.admin-dashboard-page .admin-mobile-modules h3 {
  font-size: 15px;
}

/* -----------------------------------------
   Very narrow phones
----------------------------------------- */

@media (max-width: 359px) {
  .admin-app-content .admin-dashboard-page {
    padding-inline: 11px;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-card.summary-revenue {
    grid-column: auto;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-action-link {
    min-height: 70px;

    flex-direction: row;
    align-items: center;
  }

  .dashboard-action-link small {
    display: block;
  }
}

/* -----------------------------------------
   Medium and large phones
----------------------------------------- */

@media (min-width: 480px) {
  .admin-app-content .admin-dashboard-page {
    padding-inline: 20px;
  }

  .dashboard-summary-card {
    min-height: 120px;
    padding: 16px;
  }

  .dashboard-action-link small {
    display: block;
  }
}

/* -----------------------------------------
   Tablet
----------------------------------------- */

@media (min-width: 600px) {
  .admin-app-content .admin-dashboard-page {
    max-width: 820px;

    margin-inline: auto;
    padding: 24px;
  }

  .admin-header-meta {
    flex-direction: row;
    align-items: center;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-summary-card.summary-revenue {
    grid-column: auto;
  }

  .dashboard-summary-card {
    min-height: 130px;
  }

  .dashboard-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-action-link {
    min-height: 108px;
  }
}

/* -----------------------------------------
   Desktop
----------------------------------------- */

@media (min-width: 1024px) {
  .admin-app-content .admin-dashboard-page {
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;

    margin-inline: auto;

    padding: 32px 38px 48px;
  }

  .admin-dashboard-header {
    margin-bottom: 30px;
  }

  .admin-dashboard-header h1 {
    font-size: clamp(28px, 3vw, 38px);
  }

  .dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 16px;
  }

  .dashboard-section-heading h2 {
    font-size: 20px;
  }

  .dashboard-section-description {
    max-width: 470px;
    margin: 0;

    font-size: 13px;
    text-align: right;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .dashboard-summary-card,
  .dashboard-summary-card.summary-revenue {
    grid-column: auto;

    min-height: 150px;
    padding: 20px;
  }

  .summary-card-label {
    font-size: 13px;
  }

  .summary-card-action {
    display: block;
  }

  .dashboard-summary-card strong,
  .dashboard-summary-card.summary-revenue strong {
    font-size: 32px;
  }

  .dashboard-primary-grid {
    grid-template-columns:
      minmax(0, 1.8fr)
      minmax(300px, 1fr);

    gap: 18px;
  }

  .dashboard-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 18px;
  }

  .dashboard-attention-panel {
    order: 1;
  }

  .dashboard-quick-actions-panel {
    order: 2;
  }

  .dashboard-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .dashboard-panel-header h3 {
    font-size: 17px;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-action-link {
    min-height: 64px;

    padding: 12px;

    flex-direction: row;
    align-items: center;
  }

  .dashboard-action-link small {
    display: block;
  }
}

/* =========================================
   EQUIPMENT AVAILABILITY MODULE
   Mobile-first styles
========================================= */

.equipment-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.equipment-summary-card {
  min-height: 78px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border: 1px solid var(--border-color, #27324a);
  border-left: 4px solid currentColor;
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );
}

.equipment-summary-card span {
  color: var(--muted-text, #a8b3cc);
  font-size: 13px;
  font-weight: 700;
}

.equipment-summary-card strong {
  font-size: 25px;
}

.equipment-available {
  color: var(--success, #22d673);
}

.equipment-maintenance {
  color: var(--accent-primary, #ffa000);
}

.equipment-unavailable {
  color: var(--danger, #ff6474);
}

.equipment-filter-card {
  margin-bottom: 18px;
}

.equipment-admin-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.equipment-admin-card {
  padding: 17px;

  border: 1px solid var(--border-color, #27324a);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );
}

.equipment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 17px;
}

.equipment-card-header h3 {
  margin-top: 4px;

  color: var(--text-color, #fff);
  font-size: 17px;
  line-height: 1.3;
}

.equipment-code {
  color: var(--accent-primary, #ffa000);
  font-size: 11px;
  font-weight: 800;
}

.equipment-status-badge {
  flex-shrink: 0;
  max-width: 130px;

  padding: 7px 10px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.equipment-status-badge.available {
  background: rgba(34, 214, 115, 0.14);
  color: var(--success, #22d673);
}

.equipment-status-badge.under_maintenance {
  background: rgba(255, 160, 0, 0.14);
  color: var(--accent-primary, #ffa000);
}

.equipment-status-badge.out_of_service {
  background: rgba(255, 100, 116, 0.14);
  color: var(--danger, #ff6474);
}

.equipment-admin-card textarea {
  width: 100%;
  resize: vertical;
}

.equipment-updated-text {
  margin-top: 11px;

  color: var(--muted-text, #a8b3cc);
  font-size: 10px;
}

.equipment-card-message {
  margin-top: 10px;
}

.equipment-card-message.success {
  color: var(--success, #22d673);
}

.equipment-card-message.error {
  color: var(--danger, #ff6474);
}

/* Member equipment notices */

.member-equipment-notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-equipment-notice {
  padding: 13px;

  border: 1px solid var(--border-color, #27324a);
  border-left: 4px solid var(--accent-primary, #ffa000);
  border-radius: 14px;

  background: var(--surface-deep, #0d1423);
}

.member-equipment-notice.out_of_service {
  border-left-color: var(--danger, #ff6474);
}

.member-equipment-notice h4 {
  color: var(--text-color, #fff);
  font-size: 14px;
}

.member-equipment-notice-status {
  display: inline-block;
  margin-top: 7px;

  color: var(--accent-primary, #ffa000);
  font-size: 11px;
  font-weight: 800;
}

.member-equipment-notice.out_of_service
.member-equipment-notice-status {
  color: var(--danger, #ff6474);
}

.member-equipment-notice p {
  margin-top: 7px;

  color: var(--muted-text, #a8b3cc);
  font-size: 12px;
  line-height: 1.45;
}

.member-equipment-return-date {
  color: var(--text-color, #fff) !important;
  font-weight: 700;
}

/* Tablet */

@media (min-width: 600px) {
  .equipment-summary-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .equipment-admin-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* Desktop */

@media (min-width: 1024px) {
  .equipment-admin-page {
    max-width: 1100px;
  }
}

/* =========================================
   MEMBER DASHBOARD V2
   Mobile-first interactive dashboard
========================================= */

.member-dashboard-v2 {
  padding-bottom:
    calc(110px + env(safe-area-inset-bottom));
}

.member-dashboard-v2 #announcementCard,
.member-dashboard-v2 #equipmentOverviewCard {
  scroll-margin-top: 18px;
}

/* Section headings */

.member-section-heading {
  margin-top: 24px;
  margin-bottom: 12px;
}

.member-section-heading .small-text {
  margin-bottom: 3px;
}

.member-section-heading h2 {
  font-size: 18px;
  line-height: 1.2;
}

/* Four interactive overview cards */

.member-overview-grid-v2 {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-overview-grid-v2 .overview-card {
  width: 100%;
  min-width: 0;
  min-height: 142px;
  margin: 0;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  border: 1px solid
    var(--border-color, #2c3853);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );

  color: var(--text-color, #ffffff);
  text-align: left;
  text-decoration: none;

  cursor: pointer;
  touch-action: manipulation;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.member-overview-button {
  appearance: none;
  font: inherit;
}

.member-overview-grid-v2 .overview-card:active {
  transform: scale(0.98);
}

.member-overview-grid-v2
.overview-card:focus-visible {
  outline: 3px solid
    rgba(255, 160, 0, 0.3);

  outline-offset: 2px;
}

.member-card-top-row {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-card-arrow {
  color: var(--muted-text, #a8b3cc);
  font-size: 22px;
  line-height: 1;
}

.member-overview-grid-v2
.overview-card h3 {
  max-width: 100%;
  margin-top: 12px;

  color: var(--accent-primary, #ffa000);
  font-size: clamp(20px, 6vw, 25px);
  line-height: 1.05;

  overflow-wrap: anywhere;
}

.member-overview-grid-v2
.overview-card p {
  margin-top: 8px;

  font-size: 11px;
  line-height: 1.4;
}

.member-overview-grid-v2
.overview-card strong {
  margin-top: 7px;

  color: var(--accent-primary, #ffa000);
  font-size: 12px;
}

.member-card-helper {
  margin-top: auto;
  padding-top: 9px;

  color: var(--muted-text, #a8b3cc);
  font-size: 10px;
  line-height: 1.3;
}

/* Equipment overview states */

.equipment-overview-card
#unavailableEquipmentCount {
  font-size: clamp(27px, 8vw, 34px);
}

.equipment-status-ok {
  border-top: 3px solid
    var(--success, #22d673) !important;
}

.equipment-status-ok
#unavailableEquipmentCount {
  color: var(--success, #22d673);
}

.equipment-status-ok
#equipmentSummaryText {
  color: var(--success, #22d673);
}

.equipment-status-warning {
  border-top: 3px solid
    var(--accent-primary, #ffa000) !important;
}

.equipment-status-warning
#unavailableEquipmentCount {
  color: var(--accent-primary, #ffa000);
}

.equipment-status-danger,
.equipment-status-error {
  border-top: 3px solid
    var(--danger, #ff6474) !important;
}

.equipment-status-danger
#unavailableEquipmentCount,
.equipment-status-error
#unavailableEquipmentCount {
  color: var(--danger, #ff6474);
}

.qr-pin-overview-card {
  border-top: 3px solid
    #79a8ff !important;
}

.qr-pin-overview-card h3 {
  color: #79a8ff !important;
}

/* Expandable details */

.member-inline-details {
  margin-top: 12px;
  padding: 16px;

  border: 1px solid
    var(--border-color, #2c3853);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );
}

.member-inline-details[hidden] {
  display: none !important;
}

.member-inline-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;
}

.member-inline-details-header h3 {
  margin-top: 3px;
  font-size: 16px;
}

.member-inline-details-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border: 1px solid
    var(--border-color, #2c3853);
  border-radius: 50%;

  background: var(--surface-deep, #0d1423);
  color: var(--text-color, #ffffff);

  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.member-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.member-detail-list > div {
  padding: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border: 1px solid
    var(--border-color, #2c3853);
  border-radius: 13px;

  background: var(--surface-deep, #0d1423);
}

.member-detail-list span {
  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
}

.member-detail-list strong {
  color: var(--text-color, #ffffff);
  font-size: 12px;
  text-align: right;
}

/* Equipment details */

.member-equipment-notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-equipment-notice {
  padding: 13px;

  border: 1px solid
    var(--border-color, #2c3853);
  border-left: 4px solid
    var(--accent-primary, #ffa000);
  border-radius: 14px;

  background: var(--surface-deep, #0d1423);
}

.member-equipment-notice.out_of_service {
  border-left-color:
    var(--danger, #ff6474);
}

.member-equipment-notice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.member-equipment-notice h4 {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.3;
}

.member-equipment-notice
.equipment-code {
  color: var(--muted-text, #a8b3cc);
  font-size: 9px;
}

.member-equipment-notice-status {
  flex-shrink: 0;
  max-width: 115px;

  padding: 6px 8px;

  border-radius: 999px;

  background: rgba(255, 160, 0, 0.12);
  color: var(--accent-primary, #ffa000);

  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.member-equipment-notice.out_of_service
.member-equipment-notice-status {
  background: rgba(255, 100, 116, 0.12);
  color: var(--danger, #ff6474);
}

.member-equipment-notice > p {
  margin-top: 9px;

  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
  line-height: 1.45;
}

.member-equipment-return-date {
  color: var(--text-color, #ffffff) !important;
  font-weight: 700;
}

.member-equipment-empty {
  padding: 14px;

  display: flex;
  align-items: flex-start;
  gap: 11px;

  border: 1px solid
    var(--border-color, #2c3853);
  border-radius: 14px;

  background: var(--surface-deep, #0d1423);
}

.member-equipment-empty-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(34, 214, 115, 0.14);
  color: var(--success, #22d673);

  font-weight: 900;
}

.member-equipment-empty strong {
  color: var(--success, #22d673);
  font-size: 12px;
}

.member-equipment-empty p {
  margin-top: 4px;

  color: var(--muted-text, #a8b3cc);
  font-size: 11px;
  line-height: 1.4;
}

/* Main action cards */

.member-main-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-main-action {
  min-width: 0;
  min-height: 112px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;

  border: 1px solid
    var(--border-color, #2c3853);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      var(--card-color, #172033),
      var(--card-color-alt, #121a2a)
    );

  color: var(--text-color, #ffffff);
  text-decoration: none;

  touch-action: manipulation;
}

.member-main-action:active {
  transform: scale(0.98);
}

.member-main-action-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: rgba(255, 160, 0, 0.14);
  color: var(--accent-primary, #ffa000);

  font-size: 17px;
  font-weight: 900;
}

.member-main-action strong {
  display: block;

  font-size: 13px;
  line-height: 1.25;
}

.member-main-action small {
  display: block;
  margin-top: 5px;

  color: var(--muted-text, #a8b3cc);
  font-size: 10px;
  line-height: 1.4;
}

/* Logout at the top of More menu */

.more-menu-logout-top {
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid
    rgba(255, 100, 116, 0.35);
  border-radius: 14px;

  background:
    rgba(255, 100, 116, 0.08);
  color: var(--danger, #ff6474);

  font: inherit;
  font-weight: 800;
  text-align: left;

  cursor: pointer;
  touch-action: manipulation;
}

.more-menu-logout-top:active {
  transform: scale(0.98);
}

/* Very small phones */

@media (max-width: 350px) {
  .member-overview-grid-v2,
  .member-main-actions {
    grid-template-columns: 1fr;
  }

  .member-overview-grid-v2
  .overview-card {
    min-height: 118px;
  }

  .member-main-action {
    min-height: 82px;

    flex-direction: row;
    align-items: center;
  }
}

/* Tablet */

@media (min-width: 600px) {
  .member-dashboard-v2 {
    max-width: 520px;
  }
}
.notification-count.has-updates {
  background: #e53935;
  color: #ffffff;

  border-color: rgba(255, 255, 255, 0.18);

  box-shadow:
    0 0 0 4px rgba(229, 57, 53, 0.12);
}

.notification-count.no-updates {
  background: #283249;
  color: var(--muted-text, #a8b3cc);

  border-color: var(--border-color, #36415c);
  box-shadow: none;
}

.notification-dropdown-arrow {
  display: inline-block;

  transition:
    transform 0.2s ease;
}

.notification-dropdown-btn[aria-expanded="true"]
.notification-dropdown-arrow {
  transform: rotate(180deg);
}

.notification-dropdown-btn[aria-expanded="false"]
.notification-dropdown-arrow {
  transform: rotate(0deg);
}

/* =========================================
   MEMBER FLOATING BOTTOM NAV V2
   Dependency-free animated navigation
========================================= */

/*
  Ensure the fixed navigation does not cover
  the last content on member pages.
*/

.member-screen {
  padding-bottom:
    calc(118px + env(safe-area-inset-bottom));
}

/* Floating navigation container */

.member-bottom-nav.member-bottom-nav-new {
  --member-nav-indicator-x: 0px;
  --member-nav-indicator-width: 20%;

  position: fixed;
  left: 50%;
  right: auto;
  bottom:
    calc(10px + env(safe-area-inset-bottom));

  transform: translateX(-50%);

  z-index: 1200;

  width: min(
    calc(100% - 24px),
    480px
  );

  min-height: 74px;
  margin: 0;
  padding: 8px;

  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 3px;

  border: 1px solid
    rgba(118, 137, 177, 0.32);
  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      rgba(18, 27, 48, 0.92),
      rgba(8, 14, 27, 0.94)
    );

  -webkit-backdrop-filter:
    blur(20px);
  backdrop-filter:
    blur(20px);

  box-shadow:
    0 18px 45px
      rgba(0, 0, 0, 0.42),
    inset 0 1px 0
      rgba(255, 255, 255, 0.05);

  overflow: hidden;
  isolation: isolate;
}

/* Moving orange indicator */

.member-nav-active-indicator {
  position: absolute;
  top: 8px;
  left: 0;

  width:
    var(--member-nav-indicator-width);
  height: calc(100% - 16px);

  transform:
    translate3d(
      var(--member-nav-indicator-x),
      0,
      0
    );

  z-index: 0;

  border: 1px solid
    rgba(255, 169, 25, 0.32);
  border-radius: 21px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 166, 0, 0.25),
      rgba(255, 137, 0, 0.12)
    );

  box-shadow:
    0 0 24px
      rgba(255, 153, 0, 0.16),
    inset 0 1px 0
      rgba(255, 255, 255, 0.08);

  opacity: 0;

  pointer-events: none;
}

/*
  Animation begins only after JavaScript has
  calculated the initial indicator location.
*/

.member-bottom-nav-new.member-nav-ready
.member-nav-active-indicator {
  opacity: 1;

  transition:
    transform 420ms
      cubic-bezier(
        0.22,
        1.32,
        0.36,
        1
      ),
    width 420ms
      cubic-bezier(
        0.22,
        1.32,
        0.36,
        1
      ),
    opacity 180ms ease;
}

/* Navigation items */

.member-bottom-nav-new
.member-nav-item {
  position: relative;
  z-index: 1;

  min-width: 0;
  min-height: 56px;
  padding: 6px 2px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  border: 0;
  border-radius: 19px;

  background: transparent;

  color:
    var(--muted-text, #9da9c2);

  font: inherit;
  text-align: center;
  text-decoration: none;

  cursor: pointer;
  touch-action: manipulation;

  transition:
    color 180ms ease,
    transform 220ms ease;
}

/*
  Remove the old solid active background.
  The moving indicator now supplies it.
*/

.member-bottom-nav-new
.member-nav-item.active,
.member-bottom-nav-new
.member-nav-item.is-nav-active {
  background: transparent;
}

/* Icons */

.member-bottom-nav-new
.nav-icon {
  display: block;

  font-size: 20px;
  line-height: 1;

  transform:
    translateY(0)
    scale(1);

  transform-origin: center;

  transition:
    transform 360ms
      cubic-bezier(
        0.22,
        1.32,
        0.36,
        1
      ),
    filter 180ms ease;
}

/* Labels */

.member-bottom-nav-new
.member-nav-item > span:last-child {
  display: block;
  max-width: 100%;

  color: inherit;

  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition:
    transform 220ms ease;
}

/* Active navigation item */

.member-bottom-nav-new
.member-nav-item.is-nav-active {
  color:
    var(--accent-primary, #ffa000);
}

.member-bottom-nav-new
.member-nav-item.is-nav-active
.nav-icon {
  transform:
    translateY(-4px)
    scale(1.1);

  filter:
    drop-shadow(
      0 4px 8px
      rgba(255, 160, 0, 0.24)
    );
}

.member-bottom-nav-new
.member-nav-item.is-nav-active
> span:last-child {
  transform: translateY(-1px);
}

/* Keyboard focus */

.member-bottom-nav-new
.member-nav-item:focus-visible {
  outline: 2px solid
    var(--accent-primary, #ffa000);

  outline-offset: -2px;
}

/* Touch feedback */

.member-bottom-nav-new
.member-nav-item:active {
  transform: scale(0.94);
}

/* Hover only on devices with a pointer */

@media (hover: hover) and (pointer: fine) {
  .member-bottom-nav-new
  .member-nav-item:hover {
    color: #ffffff;
  }

  .member-bottom-nav-new
  .member-nav-item:hover
  .nav-icon {
    transform:
      translateY(-2px)
      scale(1.06);
  }

  .member-bottom-nav-new
  .member-nav-item.is-nav-active:hover
  .nav-icon {
    transform:
      translateY(-4px)
      scale(1.1);
  }
}

/* Smaller phones */

@media (max-width: 350px) {
  .member-bottom-nav.member-bottom-nav-new {
    width: calc(100% - 14px);
    min-height: 70px;
    padding: 7px 5px;
    gap: 1px;

    border-radius: 25px;
  }

  .member-bottom-nav-new
  .member-nav-item {
    min-height: 54px;
  }

  .member-bottom-nav-new
  .nav-icon {
    font-size: 18px;
  }

  .member-bottom-nav-new
  .member-nav-item > span:last-child {
    font-size: 9px;
  }
}

/* Tablet and desktop */

@media (min-width: 600px) {
  .member-bottom-nav.member-bottom-nav-new {
    width: min(
      calc(100% - 32px),
      490px
    );
  }
}

/* Reduced-motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .member-nav-active-indicator,
  .member-bottom-nav-new
  .member-nav-item,
  .member-bottom-nav-new
  .nav-icon,
  .member-bottom-nav-new
  .member-nav-item > span:last-child {
    transition: none !important;
  }

  .member-bottom-nav-new
  .member-nav-item.is-nav-active
  .nav-icon {
    transform: none;
  }

  .member-bottom-nav-new
  .member-nav-item:active {
    transform: none;
  }
}

/* =========================================
   EQUIPMENT MUST-SEE ALERT
========================================= */

.equipment-overview-card {
  position: relative;
  overflow: hidden;
}

.equipment-status-danger {
  border-top-color: #ff4d5a !important;

  box-shadow:
    0 0 0 1px rgba(255, 77, 90, 0.18),
    0 10px 24px rgba(255, 77, 90, 0.08);
}

.equipment-status-danger
#unavailableEquipmentCount {
  color: #ff4d5a !important;
}

.equipment-status-danger
#equipmentSummaryText {
  color: #ff7a84;
  font-weight: 700;
}

/* Small urgency indicator beside the label */

.equipment-status-danger
.card-label::after {
  content: "";

  display: inline-block;

  width: 7px;
  height: 7px;

  margin-left: 7px;

  border-radius: 50%;

  background: #ff4d5a;

  box-shadow:
    0 0 0 4px rgba(255, 77, 90, 0.13);

  animation:
    equipment-alert-pulse 1.8s ease-in-out infinite;
}

@keyframes equipment-alert-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.25);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .equipment-status-danger
  .card-label::after {
    animation: none;
  }
}

/* =========================================
   SECURE ADMIN REPORTS MODULE
   Mobile-first filters, table and printing
========================================= */

.reports-screen {
  overflow-y: auto;
  padding-bottom: 48px;
}

.reports-page-header {
  margin-bottom: 22px;
}

.reports-control-section,
.reports-summary-section {
  margin-bottom: 20px;
}

.reports-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reports-section-heading h2 {
  color: var(--text-color);
  font-size: 18px;
  text-transform: uppercase;
}

.reports-section-heading > p {
  color: var(--muted-text);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

/* Report type filters */

.report-type-filter-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-filter-button {
  --member-status-color:
    var(--accent-primary);
}

.report-filter-attendance {
  --member-status-color:
    var(--info);
}

.report-filter-new-members {
  --member-status-color:
    #a78bfa;
}

.report-filter-payments {
  --member-status-color:
    var(--accent-primary);
}

.report-filter-button[hidden] {
  display: none !important;
}

.report-filter-button:disabled,
.report-date-filter:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* Date and search controls */

.reports-filter-card,
.reports-search-card {
  padding: 18px;
}

.report-date-filter-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.report-date-filter {
  min-width: 0;
  min-height: 46px;
  padding: 10px;

  border: 1px solid
    var(--border-strong);
  border-radius: 13px;

  background:
    var(--surface-deep);
  color:
    var(--muted-text);

  font: inherit;
  font-size: 12px;
  font-weight: 800;

  cursor: pointer;
}

.report-date-filter:hover {
  border-color:
    var(--accent-primary);
  color:
    var(--text-color);
}

.report-date-filter.is-selected {
  border-color:
    var(--accent-primary);

  background:
    var(--accent-soft);

  color:
    var(--accent-primary);

  box-shadow:
    0 0 0 2px
    var(--focus-ring);
}

.report-date-filter:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px
    var(--focus-ring);
}

.report-custom-date-panel {
  margin-top: 16px;
  padding-top: 16px;

  border-top: 1px solid
    var(--border-color);
}

.report-custom-date-panel[hidden] {
  display: none !important;
}

.report-custom-date-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.report-inline-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.report-control-btn {
  width: 100%;
  max-width: none;
  min-height: 46px;

  margin: 0;
  padding: 11px 14px;

  border-radius: 13px;

  font-size: 13px;
}

.report-filter-description {
  margin-top: 14px;

  color:
    var(--muted-text);

  font-size: 12px;
  line-height: 1.45;
}

.report-page-message {
  min-height: 20px;
  margin-top: 10px;
  text-align: left;
}

/* Summary cards */

.reports-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-summary-card {
  --report-summary-color:
    var(--accent-primary);

  min-width: 0;
  min-height: 94px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;

  border: 1px solid
    var(--border-color);

  border-top: 3px solid
    var(--report-summary-color);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      var(--card-color),
      var(--card-color-alt)
    );
}

.report-summary-card span {
  color:
    var(--muted-text);

  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.report-summary-card strong {
  color:
    var(--report-summary-color);

  font-size:
    clamp(20px, 7vw, 28px);

  line-height: 1.05;
  overflow-wrap: anywhere;
}

.report-summary-success {
  --report-summary-color:
    var(--success);
}

.report-summary-danger {
  --report-summary-color:
    var(--danger);
}

.report-summary-info {
  --report-summary-color:
    var(--info);
}

.report-summary-accent,
.report-summary-revenue {
  --report-summary-color:
    var(--accent-primary);
}

/* Detailed table */

.reports-table-card {
  padding: 16px;
  overflow: hidden;
}

.reports-table-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;

  margin-bottom: 16px;
}

.reports-table-heading h2 {
  margin-bottom: 5px;

  color:
    var(--text-color);

  font-size: 18px;
}

.reports-table-heading
> div
> p:last-child {
  color:
    var(--muted-text);

  font-size: 11px;
}

.report-print-btn {
  width: 100%;
  max-width: none;

  margin: 0;
  padding: 12px 15px;

  border-radius: 13px;

  font-size: 13px;
}

.report-state-message {
  padding: 20px 14px;

  border: 1px dashed
    var(--border-strong);

  border-radius: 14px;

  background:
    var(--surface-deep);

  color:
    var(--muted-text);

  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.report-error-state {
  border-color:
    var(--danger);

  color:
    var(--danger);
}

.report-state-message[hidden],
.reports-table-wrapper[hidden],
.report-pagination[hidden] {
  display: none !important;
}

.reports-table-wrapper {
  width: 100%;
  overflow-x: auto;

  border: 1px solid
    var(--border-color);

  border-radius: 14px;

  background:
    var(--surface-deep);

  scrollbar-width: thin;
}

.reports-detail-table {
  width: 100%;
  min-width: 720px;

  border-collapse: collapse;
}

.reports-detail-table th,
.reports-detail-table td {
  padding: 12px;

  border-bottom: 1px solid
    var(--border-color);

  color:
    var(--text-color);

  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
}

.reports-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;

  background:
    var(--surface-raised);

  color:
    var(--muted-text);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-detail-table
tbody
tr:last-child
td {
  border-bottom: none;
}

.reports-detail-table
tbody
tr:hover
td {
  background:
    rgba(255, 255, 255, 0.025);
}

.report-amount-cell {
  color:
    var(--accent-primary)
    !important;

  font-weight: 800;
  white-space: nowrap;
}

.report-pagination {
  margin-top: 15px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: center;
}

.report-pagination-btn {
  width: 100%;
  max-width: none;
  min-height: 42px;

  margin: 0;
  padding: 9px 12px;

  border-radius: 12px;

  font-size: 12px;
}

.report-pagination-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#reportPageIndicator {
  color:
    var(--muted-text);

  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Print content is hidden on screen */

.print-report-section {
  display: none;
}

/* Mobile detailed table cards */

@media (max-width: 599px) {
  .reports-detail-table,
  .reports-detail-table thead,
  .reports-detail-table tbody,
  .reports-detail-table tr,
  .reports-detail-table th,
  .reports-detail-table td {
    display: block;

    width: 100%;
    min-width: 0;
  }

  .reports-detail-table thead {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip:
      rect(0 0 0 0);
  }

  .reports-detail-table tbody {
    padding: 10px;
  }

  .reports-detail-table tr {
    margin-bottom: 10px;
    padding: 11px;

    border: 1px solid
      var(--border-color);

    border-radius: 13px;

    background:
      var(--card-color);
  }

  .reports-detail-table
  tr:last-child {
    margin-bottom: 0;
  }

  .reports-detail-table td {
    display: grid;

    grid-template-columns:
      minmax(92px, 0.8fr)
      minmax(0, 1.2fr);

    gap: 10px;

    padding: 8px 0;

    border-bottom: 1px solid
      rgba(42, 51, 72, 0.65);

    overflow-wrap: anywhere;
  }

  .reports-detail-table
  td:last-child {
    border-bottom: none;
  }

  .reports-detail-table
  td::before {
    content:
      attr(data-label);

    color:
      var(--muted-text);

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (min-width: 480px) {
  .report-inline-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .report-pagination {
    grid-template-columns:
      1fr auto 1fr;
  }
}

@media (min-width: 600px) {
  .reports-screen {
    width:
      min(100%, 980px);

    max-width: 980px;
  }

  .report-type-filter-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .report-date-filter-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .report-custom-date-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .reports-summary-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .reports-table-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .report-print-btn {
    width: auto;
    min-width: 190px;
  }
}

@media (min-width: 1024px) {
  .reports-screen {
    max-width: 1180px;

    padding:
      32px 38px 50px;
  }

  .report-type-filter-grid {
    grid-template-columns:
      repeat(6, minmax(0, 1fr));
  }

  .reports-summary-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .reports-table-card {
    padding: 20px;
  }
}

/* =========================================
   DETAILED REPORT PRINT LAYOUT
========================================= */

@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  html,
  body {
    width: 100%;
    min-height: auto;

    margin: 0 !important;
    padding: 0 !important;

    background:
      #ffffff !important;

    color:
      #000000 !important;
  }

  body {
    display: block !important;
  }

  .mobile-screen,
  .admin-screen,
  .reports-screen {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow:
      visible !important;

    background:
      #ffffff !important;

    color:
      #000000 !important;

    box-shadow:
      none !important;
  }

  .no-print,
  .admin-desktop-sidebar,
  .admin-sidebar-nav,
  .admin-mobile-modules,
  .reports-control-section,
  .reports-filter-card,
  .reports-search-card,
  .reports-summary-section,
  .reports-table-card {
    display: none !important;
  }

  .print-report-section {
    display: block !important;

    color:
      #000000 !important;

    font-family:
      Arial,
      Helvetica,
      sans-serif;
  }

  .print-report-header {
    padding-bottom: 10px;

    border-bottom:
      2px solid #000000;

    text-align: center;
  }

  .print-report-header h1 {
    margin: 0;

    color:
      #000000 !important;

    font-size: 18pt;
  }

  .print-report-header h2 {
    margin:
      4px 0 0;

    color:
      #000000 !important;

    font-size: 13pt;
  }

  .print-report-metadata {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      6px 18px;

    margin:
      14px 0;
  }

  .print-report-metadata div {
    display: grid;

    grid-template-columns:
      125px minmax(0, 1fr);

    gap: 7px;
  }

  .print-report-metadata dt,
  .print-report-metadata dd {
    margin: 0;

    color:
      #000000 !important;

    font-size: 8.5pt;
  }

  .print-report-metadata dt {
    font-weight: 700;
  }

  .print-report-summary,
  .print-report-records {
    margin-top: 14px;
  }

  .print-report-summary h3,
  .print-report-records h3 {
    margin:
      0 0 7px;

    color:
      #000000 !important;

    font-size: 10pt;
  }

  #printSummaryList {
    display: grid;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 5px;
  }

  #printSummaryList > div {
    padding: 6px;

    border:
      1px solid #777777;
  }

  #printSummaryList span,
  #printSummaryList strong {
    display: block;

    color:
      #000000 !important;

    font-size: 8pt;
  }

  #printSummaryList strong {
    margin-top: 3px;
    font-size: 9pt;
  }

  .print-detail-table {
    width: 100%;

    border-collapse: collapse;
    table-layout: auto;
  }

  .print-detail-table thead {
    display:
      table-header-group;
  }

  .print-detail-table tbody {
    display:
      table-row-group;
  }

  .print-detail-table tr {
    display: table-row;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-detail-table th,
  .print-detail-table td {
    display: table-cell;

    padding: 4px;

    border:
      1px solid #555555;

    background:
      #ffffff !important;

    color:
      #000000 !important;

    font-size: 7.2pt;
    line-height: 1.25;

    text-align: left;
    vertical-align: top;

    overflow-wrap: anywhere;
  }

  .print-detail-table th {
    font-weight: 700;
  }

  .print-total-records {
    margin-top: 10px;

    color:
      #000000 !important;

    font-size: 9pt;
    text-align: right;
  }

  .print-total-records strong {
    color:
      #000000 !important;
  }
}
/* =========================================
   GUARANTEED HIDDEN ELEMENT BEHAVIOR
========================================= */

[hidden] {
  display: none !important;
}

/* =========================================
   MEMBER EMAIL REMINDER PREFERENCE
========================================= */

.email-reminder-preference {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid #334155;
  border-radius: 16px;
  background: #0f172a;
}

.email-reminder-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.email-reminder-copy {
  flex: 1;
  min-width: 0;
}

.email-reminder-copy strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
}

.email-reminder-copy p {
  margin: 6px 0 0;
  color: #a9b5ca;
  font-size: 13px;
  line-height: 1.5;
}

.email-reminder-footer {
  margin-top: 12px;
}

.email-reminder-status {
  display: inline-block;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.email-reminder-status.enabled {
  color: #22c55e;
}

.email-reminder-status.disabled {
  color: #f87171;
}


/* =========================================
   EMAIL REMINDER TOGGLE SWITCH
========================================= */

.preference-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  cursor: pointer;
}

.preference-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.preference-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #475569;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.preference-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.preference-switch input:checked + .preference-slider {
  background: #22c55e;
}

.preference-switch input:checked + .preference-slider::before {
  transform: translateX(22px);
}

.preference-switch input:focus-visible + .preference-slider {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 3px;
}

.preference-switch input:disabled + .preference-slider {
  cursor: not-allowed;
  opacity: 0.55;
}

.email-reminder-preference .form-message {
  margin: 10px 0 0;
  min-height: 0;
  font-size: 13px;
}


/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media (max-width: 360px) {
  .email-reminder-content {
    gap: 12px;
  }

  .email-reminder-copy strong {
    font-size: 14px;
  }

  .email-reminder-copy p {
    font-size: 12px;
  }

  .preference-switch {
    width: 48px;
    height: 28px;
  }

  .preference-slider::before {
    width: 20px;
    height: 20px;
  }

  .preference-switch input:checked + .preference-slider::before {
    transform: translateX(20px);
  }
}