/* NXW LMS & VIP Member Portal Styling - Dark Navy Gold Luxury */
.nxw-portal-auth-container {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
}
.nxw-portal-card-login {
  background: #0B1E38;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 36px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  color: #E2E8F0;
  text-align: center;
}
.nxw-portal-header h2 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 700;
}
.nxw-portal-header p {
  color: #8892B0;
  font-size: 13px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.nxw-form-group {
  margin-bottom: 16px;
  text-align: left;
}
.nxw-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 6px;
}
.nxw-form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #061224;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.nxw-form-group input:focus {
  outline: none;
  border-color: #C9A227;
}
.nxw-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8892B0;
  margin-bottom: 10px;
}
.nxw-forgot-link {
  color: #C9A227;
  text-decoration: none;
}
.nxw-forgot-link:hover {
  text-decoration: underline;
}
.nxw-btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #C9A227, #E8BB43);
  color: #061224 !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nxw-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}
.nxw-btn-outline-gold {
  display: inline-block;
  background: transparent;
  color: #E8BB43 !important;
  border: 1px solid #C9A227;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}
.nxw-btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.15);
}
.nxw-portal-vip-cta {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.nxw-portal-vip-cta h4 {
  color: #C9A227;
  margin: 0 0 6px;
}
.nxw-portal-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 15px;
  text-align: left;
}
.nxw-portal-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #FCA5A5;
}
.nxw-portal-alert.success {
  background: rgba(58, 154, 122, 0.15);
  border: 1px solid #3A9A7A;
  color: #86EFAC;
}

/* MEMBER PORTAL LOGGED IN DASHBOARD */
.nxw-portal-wrapper {
  max-width: 1140px;
  margin: 30px auto 60px;
  padding: 0 20px;
  color: #E2E8F0;
}
.nxw-portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0B1E38;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.nxw-portal-user-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nxw-portal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A227, #E8BB43);
  color: #061224;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.3);
}
.nxw-portal-name {
  color: #fff;
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 700;
}
.nxw-portal-email {
  color: #8892B0;
  font-size: 13px;
}
.nxw-portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nxw-portal-badge-vip {
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid #C9A227;
  color: #E8BB43;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nxw-portal-badge-book {
  background: rgba(58, 154, 122, 0.15);
  border: 1px solid #3A9A7A;
  color: #86EFAC;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.nxw-portal-badge-free {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.nxw-portal-btn-logout {
  color: #F87171;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  transition: background 0.2s;
}
.nxw-portal-btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* PORTAL NAVIGATION TABS */
.nxw-portal-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.nxw-nav-tab {
  background: transparent;
  border: none;
  color: #8892B0;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.nxw-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nxw-nav-tab.active {
  color: #E8BB43;
  background: #0B1E38;
  border-bottom: 2px solid #C9A227;
}

/* TAB PANES */
.nxw-tab-pane {
  display: none;
}
.nxw-tab-pane.active {
  display: block;
}

/* STATS GRID */
.nxw-portal-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.nxw-stat-card {
  background: #0B1E38;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
}
.nxw-stat-title {
  font-size: 12px;
  color: #8892B0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.nxw-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 4px;
}
.nxw-stat-sub {
  font-size: 12px;
  color: #94A3B8;
}

/* SECTION CARDS */
.nxw-portal-section-card {
  background: #0B1E38;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.nxw-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.nxw-section-header h4 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}
.nxw-progress-track {
  width: 100%;
  height: 8px;
  background: #061224;
  border-radius: 4px;
  overflow: hidden;
}
.nxw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A227, #E8BB43);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* BOOKSHELF GRID */
.nxw-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.nxw-book-card {
  background: #0B1E38;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.nxw-book-card:hover {
  transform: translateY(-3px);
}
.nxw-book-card.unlocked {
  border-color: rgba(201, 162, 39, 0.4);
}
.nxw-book-cover-area {
  height: 130px;
  background: linear-gradient(135deg, #102A4E, #061224);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  position: relative;
}
.nxw-book-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.nxw-book-card.unlocked .nxw-book-badge {
  background: #3A9A7A;
  color: #fff;
}
.nxw-book-card.locked .nxw-book-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}
.nxw-book-vol-num {
  font-size: 20px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  text-align: right;
}
.nxw-book-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.nxw-book-info h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.nxw-book-meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8892B0;
  margin-bottom: 10px;
}

/* CERTIFICATE DISPLAY */
.nxw-cert-container {
  max-width: 720px;
  margin: 0 auto;
}
.nxw-cert-preview-card {
  background: #0B1E38;
  border: 2px solid #C9A227;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
.nxw-cert-inner-border {
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 30px 24px;
  border-radius: 8px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(16, 42, 78, 0.6) 0%, rgba(6, 18, 36, 0.9) 100%);
}
.nxw-cert-qr-badge {
  width: 55px;
  height: 55px;
  background: #E8BB43;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LABS & CODE LIST */
.nxw-labs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nxw-lab-item {
  background: #0B1E38;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nxw-lab-icon {
  font-size: 28px;
}
.nxw-lab-details {
  flex: 1;
  min-width: 250px;
}
.nxw-lab-details h4 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 15px;
}
.nxw-lab-details p {
  color: #8892B0;
  margin: 0;
  font-size: 13px;
}

/* PROFILE GRID */
.nxw-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
