/* ==========================================================================
   FAM FITNESS - CSS STYLE SYSTEM
   Theme: Premium Cyber Gym Dark Theme (Charcoal, Slate, Crimson Red, Neon Glow)
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-card-hover: #2d3748;
  --border-color: #374151;
  --border-glow: rgba(220, 38, 38, 0.15);
  
  --color-primary: #dc2626;
  --color-primary-hover: #ef4444;
  --color-primary-glow: rgba(220, 38, 38, 0.4);
  --color-primary-rgb: 220, 38, 38;
  
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.1);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.1);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #111827;

  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(220, 38, 38, 0.25);
  
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--color-primary-hover);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.brand-icon {
  background-color: var(--color-primary);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-icon i {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.accent-text {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.mobile-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-link {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
  padding: 8px 0;
}

.mobile-link.active {
  color: var(--color-primary);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #fff;
}

.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   MAIN LAYOUT & HERO SECTION
   ========================================================================== */

.main-content {
  flex: 1;
  padding-top: 80px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.view-section {
  display: none;
  padding: 40px 24px;
  animation: fadeIn var(--transition-smooth);
}

.view-section.active {
  display: block;
}

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

/* HERO */
.hero-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding: 60px;
  margin-bottom: 60px;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.65) 0%, rgba(9, 13, 22, 0.95) 100%),
              url('assets/gym1.jpg') no-repeat center center / cover;
  border: 1px solid var(--border-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   PRICING / CARDS
   ========================================================================== */

.pricing-container {
  margin-top: 40px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 12px;
}

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

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: start;
  transition: all var(--transition-smooth);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.pricing-card.popular {
  border-color: var(--color-primary);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plan-price {
  font-size: 48px;
  font-family: var(--font-secondary);
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.plan-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  width: 100%;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  padding: 8px 0;
  font-size: 14px;
}

.plan-features i {
  color: var(--color-success);
  width: 18px;
  height: 18px;
}

.admin-portal-link {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   AUTH CARD
   ========================================================================== */

.auth-card {
  max-width: 440px;
  margin: 60px auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card.border-accent {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-wrapper input, .form-group input:not([type="checkbox"]) {
  width: 100%;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px 12px 48px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-group input:not([type="checkbox"]):focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.input-readonly {
  background-color: var(--bg-surface) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
  cursor: not-allowed;
}

.select-wrapper::after {
  content: '\eab6'; /* Lucide chevron-down icon representation or handled via css custom styling */
  position: absolute;
  right: 16px;
  pointer-events: none;
}

.input-wrapper select {
  width: 100%;
  appearance: none;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.input-wrapper select:focus {
  border-color: var(--color-primary);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-error { color: var(--color-danger); }

.btn:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

/* ==========================================================================
   MEMBER DASHBOARD
   ========================================================================== */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.selected-plan-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 13px;
}

.selected-plan-banner svg { width: 18px; height: 18px; flex: 0 0 auto; }

.welcome-heading {
  font-size: 32px;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.status-badge {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.card-header-icon {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.card-subscription.bg-gradient {
  background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(220, 38, 38, 0.03) 100%);
  border-color: rgba(220, 38, 38, 0.2);
}

/* Circular Progress Chart */
.days-remaining-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px auto;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #2d3748;
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray var(--transition-smooth);
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.days-number {
  display: block;
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.days-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.subscription-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  font-weight: 600;
}

/* Status Pills */
.status-pill {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.status-active {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.status-suspended {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-expired {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.status-terminated {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.status-inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Profile Info */
.profile-info-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-item i {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.info-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-val {
  font-size: 14px;
  font-weight: 500;
}

/* Notifications Feed */
.scrollable-feed {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.scrollable-feed::-webkit-scrollbar {
  width: 6px;
}

.scrollable-feed::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.feed-placeholder {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}

.notification-item {
  padding: 12px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item.billing {
  border-left-color: var(--color-info);
}

.notification-item.reminder {
  border-left-color: var(--color-warning);
}

.notification-item.system {
  border-left-color: var(--color-success);
}

.notif-msg {
  font-size: 13px;
  line-height: 1.4;
}

.notif-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.notif-date {
  font-size: 10px;
  color: var(--text-muted);
}

.notif-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 3px;
}

.notif-tag.billing {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

.notif-tag.reminder {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.notif-tag.system {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.notif-tag.general {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.section-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 48px 0;
}

.sub-section-title {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-section-title i {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.card-slate {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

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

.data-table th, .data-table td {
  padding: 16px 20px;
  font-size: 14px;
}

.data-table th {
  background-color: rgba(0, 0, 0, 0.15);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

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

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.metric-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon i {
  width: 22px;
  height: 22px;
}

.bg-red-opacity {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--color-primary);
}

.bg-green-opacity {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.bg-yellow-opacity {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.bg-red-opacity-dark {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.bg-blue-opacity {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 800;
  margin-top: 2px;
}

.management-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-box input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px 12px 48px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.filter-box select {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-box select:focus {
  border-color: var(--color-primary);
}

/* User listing customized grid table columns */
.action-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-xs {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInOverlay var(--transition-fast);
}

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

.modal-content {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  animation: scaleUp var(--transition-smooth);
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.info-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--color-info-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-info);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
}

.info-alert-box i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   CONFIRMATION SPECIFICS
   ========================================================================== */

.confirm-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.confirm-icon-wrapper.red-theme {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.confirm-icon {
  width: 32px;
  height: 32px;
}

.confirm-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.confirm-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.modal-action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Settings Plans Settings Panel */
.plans-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.plan-set-title {
  font-weight: 600;
  font-size: 14px;
}

.plan-set-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-set-price {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Member enrollment checkout */
.enrollment-checkout { max-width: 620px; }

.checkout-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary-hover);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 20px 24px 0;
  color: var(--text-muted);
  font-size: 11px;
}

.checkout-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.checkout-progress b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
}

.checkout-progress .complete,
.checkout-progress .active { color: var(--text-main); }
.checkout-progress .complete b { color: var(--color-success); border-color: var(--color-success); }
.checkout-progress .active b { color: #fff; border-color: var(--color-primary); background: var(--color-primary); }

.checkout-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 24px 18px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.checkout-member-row > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.checkout-member-row span { color: var(--text-muted); font-size: 12px; }

.member-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary-glow);
  color: #fff;
  font-weight: 800;
}

.enrollment-checkout form > .form-group,
.enrollment-checkout .terms-check,
.enrollment-checkout .enrollment-summary,
.enrollment-checkout .form-status { margin-left: 24px; margin-right: 24px; }

.enrollment-summary {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(220, 38, 38, .08), rgba(220, 38, 38, .02));
}

.enrollment-summary > div { display: flex; justify-content: space-between; margin-bottom: 8px; }
.enrollment-summary > div span { color: var(--text-muted); font-size: 12px; }
.enrollment-summary > div strong { font-size: 15px; }
.enrollment-summary ul { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; list-style: none; }
.enrollment-summary li { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 11px; }
.enrollment-summary li svg { width: 13px; height: 13px; color: var(--color-success); }

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.terms-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--color-primary); }
.field-hint { display: block; margin-top: 6px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn var(--transition-smooth);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-success .toast-icon { color: var(--color-success); }

.toast-error { border-left: 4px solid var(--color-danger); }
.toast-error .toast-icon { color: var(--color-danger); }

.toast-warning { border-left: 4px solid var(--color-warning); }
.toast-warning .toast-icon { color: var(--color-warning); }

.toast-info { border-left: 4px solid var(--color-info); }
.toast-info .toast-icon { color: var(--color-info); }

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SPINNERS AND LOADERS
   ========================================================================== */

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Skeletons */
.skeleton-card {
  height: 380px;
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  background: linear-gradient(90deg, var(--bg-surface) 25%, #2d3748 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

.skeleton-bar {
  height: 16px;
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
  border-radius: 4px;
  width: 100%;
}

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

/* ==========================================================================
   UTILITY HELPER CLASSES
   ========================================================================== */

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gap-4 { gap: 16px; }
.mb-4 { margin-bottom: 16px; }
.my-4 { margin: 16px 0; }
.mt-6 { margin-top: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.p-6 { padding: 24px; }
.pb-none { padding-bottom: 0; }
.border-none { border: none !important; }
.font-medium { font-weight: 500; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-section {
    padding: 40px 24px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .management-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-box {
    justify-content: space-between;
  }
  
  .action-btn-group {
    flex-direction: column;
    width: 100%;
  }
  
}

/* ==========================================================================
   ADDED CUSTOM PREMIUM CYBER GYM STYLES & ANIMATIONS
   ========================================================================== */

.brand-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast) ease-in-out;
}

.brand:hover .brand-logo {
  transform: rotate(10deg) scale(1.05);
}

/* Public Announcements Styling */
.announcements-container {
  margin-bottom: 60px;
  padding: 0 10px;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.announcement-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-primary);
}

.announcement-card.offer::before {
  background-color: var(--color-warning);
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  border-color: rgba(220, 38, 38, 0.4);
}

.announcement-card.offer:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.announcement-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.announcement-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.announcement-type-badge.announcement {
  background-color: var(--color-primary-glow);
  color: var(--color-primary-hover);
}

.announcement-type-badge.offer {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.announcement-date {
  font-size: 12px;
  color: var(--text-muted);
}

.announcement-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-main);
}

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

.announcement-card-skeleton {
  height: 140px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.announcement-card-skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: loading-scan 1.5s infinite;
}

@keyframes loading-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Showcase Facilities Gallery */
.showcase-container {
  margin-bottom: 60px;
  padding: 0 10px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-item {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.4) 60%, transparent 100%);
  color: var(--text-main);
  transition: all var(--transition-smooth);
}

.showcase-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-info h4 {
  font-size: 20px;
  margin-bottom: 4px;
  font-family: var(--font-secondary);
}

.showcase-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Admin Subnavigation Tabs */
.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn i {
  width: 16px;
  height: 16px;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
  color: var(--text-main);
  background-color: var(--bg-card);
}

.admin-tab-btn.active {
  background-color: var(--color-primary-glow);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.admin-tab-content {
  display: none;
  animation: fadeIn var(--transition-smooth);
}

.admin-tab-content.active {
  display: block;
}

.tab-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tab-section-header h3 {
  font-size: 22px;
}

/* Admin Plans Tab Styling */
.admin-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.admin-plan-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.admin-plan-row:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-plan-header {
  margin-bottom: 12px;
}

.admin-plan-title {
  font-size: 18px;
  font-weight: 600;
}

.admin-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary-hover);
  font-family: var(--font-secondary);
  margin: 8px 0;
}

.admin-plan-price span {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-plan-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.admin-plan-benefits-list {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  list-style: none;
}

.admin-plan-benefits-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-plan-benefits-list li i {
  color: var(--color-success);
  width: 14px;
  height: 14px;
}

/* Admin Announcements Tab Styling */
.admin-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-announcement-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition-smooth);
}

.admin-announcement-row:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-announcement-content {
  flex: 1;
}

.admin-announcement-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-announcement-head h4 {
  font-size: 16px;
  font-weight: 600;
}

.admin-announcement-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.admin-announcement-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Text pulse accent */
.text-accent-pulse {
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.2), 0 0 10px rgba(220, 38, 38, 0.2);
  }
  to {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.6), 0 0 20px rgba(220, 38, 38, 0.4);
  }
}

.btn-primary {
  animation: pulseGlow 3s infinite;
}

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

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Mobile-first finishing layer: comfortable touch targets and overflow-safe layouts. */
@media (max-width: 768px) {
  .navbar { height: 68px; }
  .main-content { padding-top: 68px; padding-bottom: 32px; }
  .mobile-menu { top: 68px; max-height: calc(100dvh - 68px); overflow-y: auto; }
  .nav-container { padding: 0 16px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .view-section { padding: 24px 16px; }
  .hero-section { padding: 48px 24px; min-height: 520px; margin-bottom: 44px; }
  .auth-card { width: 100%; max-width: 520px; margin: 16px auto; padding: 28px 22px; }
  .auth-header { margin-bottom: 24px; }
  .input-wrapper input,
  .form-group input:not([type="checkbox"]),
  .input-wrapper select { min-height: 48px; font-size: 16px; }
  .btn { min-height: 44px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .section-title { font-size: 27px; }
  .section-subtitle { margin-bottom: 26px; }
  .pricing-grid,
  .announcements-grid,
  .admin-plans-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-card { padding: 28px 22px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric-card { padding: 16px; }
  .table-container { margin-inline: -16px; border-radius: 0; }
  .data-table { min-width: 720px; }
  .modal { padding: 12px; }
  .modal-header, .modal-body, .modal-footer { padding: 18px; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
  .tab-section-header,
  .admin-announcement-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .hero-section { min-height: 480px; padding: 36px 20px; }
  .hero-title { font-size: clamp(32px, 10vw, 40px); }
  .hero-badge { font-size: 11px; }
  .welcome-heading { font-size: 26px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .showcase-item { height: 260px; }
  .showcase-info { padding: 20px; }
  .toast-container { top: 80px; right: 12px; width: calc(100% - 24px); }
  .modal-action-buttons { flex-direction: column-reverse; }
  .modal-action-buttons .btn { width: 100%; }
}
