/* Meta Account Center Components */

/* Info Banner */
.info-banner {
  background-color: var(--bg-banner);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.info-banner.dismissed {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  display: none;
}

.banner-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  flex: 1;
}

.banner-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.banner-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.banner-close-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.banner-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Page Section Header */
.section-header {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Cards */
.card-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-clickable {
  cursor: pointer;
}

.card-clickable:hover {
  background-color: var(--bg-card-hover);
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.card-subtitle.alert-link {
  color: var(--text-link);
  font-weight: 500;
}

.card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Stacked Avatars */
.stacked-avatars {
  display: flex;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  margin-left: -10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 2px #FFFFFF;
}

.avatar-wrapper:first-child {
  margin-left: 0;
  z-index: 3;
}
.avatar-wrapper:nth-child(2) {
  z-index: 2;
}
.avatar-wrapper:nth-child(3) {
  z-index: 1;
}

.stacked-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
  background-color: #E4E6EB;
}

.platform-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #FFFFFF;
}

.platform-badge img,
.platform-badge svg {
  width: 14px;
  height: 14px;
}

.chevron-arrow {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

/* Forms & Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: #0056bd;
  text-decoration: none;
}

.btn-secondary {
  background-color: #E4E6EB;
  color: var(--text-primary);
}
.btn-secondary:hover {
  background-color: #D8DADF;
  text-decoration: none;
}

.btn-danger {
  background-color: #FDE8E8;
  color: var(--danger-red);
}
.btn-danger:hover {
  background-color: #FBD5D5;
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(0, 100, 224, 0.2);
  outline: none;
}

/* Badges */
.pill-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.pill-badge-blue {
  background-color: #E7F3FF;
  color: var(--accent-blue);
}

.pill-badge-green {
  background-color: #E7F7ED;
  color: var(--success-green);
}
