/* Plans / Join page */
.ibpo-plans__toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.ibpo-toggle-btn {
  padding: 8px 20px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.ibpo-toggle-btn.is-active {
  background: #131313;
  color: #fff;
  border-color: #131313;
}

.ibpo-plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.ibpo-plan-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  background: #fff;
}

.ibpo-plan-card h3 {
  margin: 0 0 12px;
}

.ibpo-plan-price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ibpo-plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.ibpo-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.ibpo-plan-features li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ibpo-plan-cta {
  display: inline-block;
  padding: 10px 24px;
  background: #7c0d0e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

/* Login / Register forms */
.ibpo-login,
.ibpo-register {
  max-width: 400px;
  margin: 0 auto;
}

.ibpo-login form p,
.ibpo-register form p {
  margin-bottom: 16px;
}

.ibpo-login label,
.ibpo-register label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.ibpo-login input,
.ibpo-register input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.ibpo-login button,
.ibpo-register button {
  width: 100%;
  padding: 12px;
  background: #7c0d0e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.ibpo-login__error {
  color: #c0392b;
  margin-bottom: 16px;
}

/* Member dashboard app shell */
.ibpo-app {
  display: flex;
  min-height: 640px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ibpo-app__sidebar {
  width: 240px;
  background: #131313;
  color: #fff;
  padding: 24px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.ibpo-app__logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0 24px 28px;
  background: linear-gradient(90deg, #fddc5c, #7c0d0e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ibpo-app__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ibpo-app__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.ibpo-app__nav-item .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.ibpo-app__nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.ibpo-app__nav-item.is-active {
  background: rgba(253, 220, 92, 0.08);
  border-left-color: #fddc5c;
  color: #fddc5c;
  font-weight: 600;
}

.ibpo-app__nav-item--logout {
  margin-top: auto;
  color: #d97373;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.ibpo-app__main {
  flex: 1;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.ibpo-app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.ibpo-app__header h1 {
  font-size: 20px;
  margin: 0;
}

.ibpo-app__user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.ibpo-app__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fddc5c, #7c0d0e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.ibpo-app__content {
  padding: 32px;
  flex: 1;
}

/* Overview */
.ibpo-banner {
  background: linear-gradient(120deg, #131313, #2a2a2a);
  color: #fff;
  padding: 24px 28px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.ibpo-banner h2 {
  margin: 0 0 4px;
  color: #fddc5c;
}

.ibpo-banner p {
  margin: 0;
  color: #ccc;
  font-size: 14px;
}

.ibpo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.ibpo-stat {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.ibpo-stat:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.ibpo-stat .dashicons {
  font-size: 26px;
  width: 26px;
  height: 26px;
  color: #7c0d0e;
}

.ibpo-stat__label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.ibpo-stat__value {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.ibpo-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 24px;
}

.ibpo-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ibpo-badge--active {
  background: rgba(124, 13, 14, 0.1);
  color: #7c0d0e;
}

.ibpo-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(120deg, #7c0d0e, #131313);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.ibpo-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.ibpo-empty .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.ibpo-dashboard--inactive {
  text-align: center;
  padding: 60px 20px;
}

.ibpo-dashboard--inactive .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: #7c0d0e;
  margin-bottom: 12px;
}
.ibpo-profile-section {
  margin-bottom: 32px;
}

.ibpo-profile-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.ibpo-form__required {
  font-weight: 400;
  font-size: 12px;
  color: #7c0d0e;
}
.ibpo-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 13px;
}

.ibpo-form input[type="text"],
.ibpo-form input[type="email"],
.ibpo-form input[type="password"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.ibpo-form hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #eee;
}

.ibpo-form__hint {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.ibpo-form .ibpo-btn {
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.ibpo-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.ibpo-notice--success {
  background: #e6f7ea;
  color: #1e7e34;
}

.ibpo-notice--error {
  background: #fdeaea;
  color: #7c0d0e;
}

.ibpo-app__nav-item--disabled {
  opacity: 0.4;
  cursor: default;
}

.ibpo-app__nav-item--disabled em {
  font-style: normal;
  font-size: 11px;
}

.ibpo-table {
  width: 100%;
  border-collapse: collapse;
}

.ibpo-table th,
.ibpo-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.ibpo-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: #777;
}
.ibpo-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.ibpo-filter-bar select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.ibpo-section-heading {
  margin-top: 36px;
  font-size: 18px;
}

.ibpo-section-subtext {
  color: #777;
  font-size: 13px;
  margin-bottom: 16px;
}

.ibpo-badge--pending {
  background: #fddc5c;
  color: #131313;
}
[data-ibpo-results].is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.ibpo-status-action {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.ibpo-form textarea,
.ibpo-form select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.ibpo-badge--error {
  background: #fdeaea;
  color: #7c0d0e;
}
.ibpo-current-image {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ibpo-current-image img {
  border-radius: 6px;
}

.ibpo-current-image span {
  font-size: 12px;
  color: #777;
}

.ibpo-current-gallery {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.ibpo-current-gallery img {
  border-radius: 6px;
}

.ibpo-form input[type="file"] {
  margin-bottom: 6px;
}
.ibpo-directory-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ibpo-directory-filter-bar input[type="text"],
.ibpo-directory-filter-bar select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.ibpo-directory-filter-bar input[type="text"] {
  flex: 1;
  min-width: 200px;
}

.ibpo-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ibpo-directory-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.ibpo-directory-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ibpo-directory-card__photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ibpo-directory-card__placeholder {
  width: 100%;
  height: 160px;
  background: #131313;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ibpo-directory-card__placeholder .dashicons {
  color: #fddc5c;
  font-size: 40px;
  width: 40px;
  height: 40px;
}

.ibpo-directory-card__body {
  padding: 16px;
}

.ibpo-directory-card__body h3 {
  margin: 8px 0 4px;
  font-size: 17px;
}

.ibpo-directory-card__chapter {
  font-size: 13px;
  color: #7c0d0e;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.ibpo-directory-card__excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.ibpo-directory-card__details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.ibpo-directory-card__meta {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.ibpo-directory-card__meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ibpo-directory-card__gallery {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ibpo-directory-card__gallery img {
  border-radius: 6px;
}

[data-directory-results].is-loading {
  opacity: 0.5;
}
.ibpo-listing-summary {
  display: flex;
  gap: 16px;
}

.ibpo-listing-summary__photo img {
  border-radius: 8px;
}

.ibpo-listing-summary__placeholder {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: #131313;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ibpo-listing-summary__placeholder .dashicons {
  color: #fddc5c;
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.ibpo-listing-summary__meta {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.ibpo-listing-summary__meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}
.ibpo-app__nav-item--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
